|
roviz
0.7
Code Documentation of roviz
|
The ItemOutput class represents an output that belongs to an item. More...
#include <item_output.h>


Signals | |
| void | inputDisconnected () |
| This signal is emitted whenever an input this output is connected to is disconnected. More... | |
| void | inputConnected () |
| This signal is emitted whenever a new input is connected to this output. More... | |
| void | dataChanged () |
| This signal is emitted whenever the data provided by this output has changed. More... | |
Signals inherited from AbstractItemInputOutputBase | |
| void | positionChanged () |
| This signal is emitted whenever this objects local or scene position has changed. More... | |
Public Member Functions | |
| ItemOutput (AbstractItem *owner, int transportType, QString const &description, QRectF const &shape={0, 0, 0, 0}) | |
| Constructs an ItemOutput. More... | |
| virtual bool | isConnected () const |
| QList< ItemInput * > | inputs () const |
| QObject * | data () const |
| virtual QPointF | scenePosition () const |
| Returns the scene position of this object. More... | |
| void | disconnectInput (ItemInput *input) |
| Disconnects the input input from this output. More... | |
| void | disconnectInputs () |
| Disconnects all connected inputs from this output. More... | |
| bool | connectInput (ItemInput *input) |
| Connects this output to the input input. 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) |
Protected Member Functions | |
| void | setData (QObject *data) |
| Sets the data provided by this output to data. Causes this output and the connected inputs to emit the dataChanged signal. More... | |
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 ItemOutput class represents an output that belongs to an item.
An output can be connected to zero or more inputs which may read its data.
An outputs 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.
| ItemOutput::ItemOutput | ( | AbstractItem * | owner, |
| int | transportType, | ||
| QString const & | description, | ||
| QRectF const & | shape = {0, 0, 0, 0} |
||
| ) |
Constructs an ItemOutput.
| owner | The Item this output belongs to |
| transportType | The type of data this output provides |
| description | A description of this output that is shown to the user |
| shape | The shape of this output |
| bool ItemOutput::connectInput | ( | ItemInput * | input | ) |
Connects this output to the input input.
| input | The input this output is to be connected to |

|
virtual |
Implements AbstractItemInputOutputBase.

|
signal |
This signal is emitted whenever the data provided by this output has changed.

| void ItemOutput::disconnectInput | ( | ItemInput * | input | ) |
Disconnects the input input from this output.
| void ItemOutput::disconnectInputs | ( | ) |
Disconnects all connected inputs from this output.

|
signal |
This signal is emitted whenever a new input is connected to this output.
|
signal |
This signal is emitted whenever an input this output is connected to is disconnected.
| QList< ItemInput * > ItemOutput::inputs | ( | ) | const |
|
virtual |
Implements AbstractItemInputOutputBase.
|
virtual |
Returns the scene position of this object.
Reimplemented from AbstractItemInputOutputBase.

|
protected |
Sets the data provided by this output to data. Causes this output and the connected inputs to emit the dataChanged signal.
| data | A pointer to the new data |


1.8.13