|
roviz
0.7
Code Documentation of roviz
|
The ItemInput class represents an input that belongs to an item. More...
#include <item_input.h>


Signals | |
| void | outputDisconnected () |
| This signal is emitted whenever the output this input is connected to is disconnected. More... | |
| void | outputConnected () |
| This signal is emitted whenever this input is connected to a new output. More... | |
| void | dataChanged () |
| This signal is emitted whenever the data provided by this input has changed. | |
Signals inherited from AbstractItemInputOutputBase | |
| void | positionChanged () |
| This signal is emitted whenever this objects local or scene position has changed. More... | |
Public Member Functions | |
| ItemInput (AbstractItem *owner, int transportType, QString const &description, QRectF const &shape={0, 0, 0, 0}) | |
| Constructs an ItemInput. More... | |
| virtual bool | isConnected () const |
| ItemOutput * | output () const |
| QObject * | data () const |
| virtual QPointF | scenePosition () const |
| Returns the scene position of this object. More... | |
| void | disconnectOutput () |
| Disconnects the output this input is connected to, if any. More... | |
| bool | connectOutput (ItemOutput *output) |
| Connects this input to the output output. More... | |
Public Member Functions inherited from AbstractItemInputOutputBase | |
| AbstractItemInputOutputBase (class AbstractItem *parent, int transportType, QString const &description, QRectF const &shape) | |
| Constructs an AbstractItemInputOutputBase. More... | |
| int | transportType () const |
| Returns the type of data this object handles. More... | |
| AbstractItem * | owner () const |
| Returns the owner of this object. More... | |
| virtual QPointF | localPosition () const |
| Returns the local position of this object. More... | |
| virtual QRectF | boundingRect () const |
| virtual void | paint (QPainter *painter, QStyleOptionGraphicsItem const *option, QWidget *widget) |
Additional Inherited Members | |
Protected Member Functions inherited from AbstractItemInputOutputBase | |
| void | setLocalPosition (QPointF const &position) |
| Sets the local position of this object. More... | |
| void | updateScenePosition () |
| Updates the scene position. Causes this objects position within the item scene to be updated. More... | |
The ItemInput class represents an input that belongs to an item.
An input can be connected to zero or one output from which it receives data.
An inputs transport type specifies what type of data it supports. Only inputs and outputs that have the same transport type may be connected to each other. See the AbstractItem class for a description of the transport type.
| ItemInput::ItemInput | ( | AbstractItem * | owner, |
| int | transportType, | ||
| QString const & | description, | ||
| QRectF const & | shape = {0, 0, 0, 0} |
||
| ) |
Constructs an ItemInput.
| owner | The Item this input belongs to |
| transportType | The type of data this input accepts |
| description | A description of this input that is shown to the user |
| shape | The shape of this input |
| bool ItemInput::connectOutput | ( | ItemOutput * | output | ) |
Connects this input to the output output.
| output | The output this input is to be connected to |

|
virtual |
Implements AbstractItemInputOutputBase.


| void ItemInput::disconnectOutput | ( | ) |
Disconnects the output this input is connected to, if any.


|
virtual |
Implements AbstractItemInputOutputBase.

| ItemOutput * ItemInput::output | ( | ) | const |

|
signal |
This signal is emitted whenever this input is connected to a new output.
|
signal |
This signal is emitted whenever the output this input is connected to is disconnected.
|
virtual |
Returns the scene position of this object.
Reimplemented from AbstractItemInputOutputBase.

1.8.13