The AbstractItemInputOutputBase class provides common functionality for the ItemInput and ItemOutput classes.
More...
#include <abstract_item_input_output_base.h>
|
| void | positionChanged () |
| | This signal is emitted whenever this objects local or scene position has changed. More...
|
| |
|
|
class | AbstractItemPrivate |
| |
|
class | AbstractItem |
| |
The AbstractItemInputOutputBase class provides common functionality for the ItemInput and ItemOutput classes.
◆ AbstractItemInputOutputBase()
| AbstractItemInputOutputBase::AbstractItemInputOutputBase |
( |
class AbstractItem * |
parent, |
|
|
int |
transportType, |
|
|
QString const & |
description, |
|
|
QRectF const & |
shape |
|
) |
| |
Constructs an AbstractItemInputOutputBase.
- Parameters
-
| parent | The AbstractItem this object belongs to |
| transportType | The type of data this object handles |
| description | A description of this object that is shown to the user |
| shape | The shape of this object |
◆ data()
| virtual QObject* AbstractItemInputOutputBase::data |
( |
| ) |
const |
|
pure virtual |
Returns the data provided by this object.
- Returns
- The data provided by this object
Implemented in ItemOutput, and ItemInput.
◆ isConnected()
| virtual bool AbstractItemInputOutputBase::isConnected |
( |
| ) |
const |
|
pure virtual |
This is a virtual pure function. It is used to determine whether or not this input or output is currently connected.
- Returns
- true if the object is connected, false otherwise
Implemented in ItemOutput, and ItemInput.
◆ localPosition()
| QPointF AbstractItemInputOutputBase::localPosition |
( |
| ) |
const |
|
virtual |
Returns the local position of this object.
- Returns
- The local position of this object
- See also
- scenePosition
◆ owner()
Returns the owner of this object.
- Returns
- The owner of this object
◆ positionChanged
| void AbstractItemInputOutputBase::positionChanged |
( |
| ) |
|
|
signal |
This signal is emitted whenever this objects local or scene position has changed.
- See also
- updateScenePosition
◆ scenePosition()
| QPointF AbstractItemInputOutputBase::scenePosition |
( |
| ) |
const |
|
virtual |
◆ setLocalPosition()
| void AbstractItemInputOutputBase::setLocalPosition |
( |
QPointF const & |
position | ) |
|
|
protected |
Sets the local position of this object.
- Parameters
-
| position | The new center position of this object |
- See also
- positionChanged
◆ transportType()
| int AbstractItemInputOutputBase::transportType |
( |
| ) |
const |
Returns the type of data this object handles.
- Returns
- The type of data this object handles
◆ updateScenePosition()
| void AbstractItemInputOutputBase::updateScenePosition |
( |
| ) |
|
|
protected |
Updates the scene position. Causes this objects position within the item scene to be updated.
- See also
- positionChanged
The documentation for this class was generated from the following files:
- itemframework/itemframework/include/item/abstract_item_input_output_base.h
- itemframework/itemframework/moc/moc_abstract_item_input_output_base.cpp
- itemframework/itemframework/src/item/abstract_item_input_output_base.cpp