Public Member Functions | |
Node (QGraphicsScene *scene, FotoSHOCKcore::GraphManager *graph, FotoSHOCKcore::ImageOperationDescriptor *operationDescriptor) | |
Construct a new Node. More... | |
Node (QGraphicsScene *scene, FotoSHOCKcore::GraphManager *graph, FotoSHOCKcore::GraphNode *node) | |
Construct a new Node for an existing GraphNode. | |
QGraphicsScene * | parentScene () const |
virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) |
virtual QRectF | boundingRect () const |
bool | tryEnable () |
Try to enable the operation in the Node. | |
FotoSHOCKcore::GraphManager * | GraphManager () const |
FotoSHOCKcore::GraphNode * | GraphNode () const |
QVector< Connector * > | inputConnectors () const |
QVector< Connector * > | outputConnectors () const |
virtual void | mouseDoubleClickEvent (QGraphicsSceneMouseEvent *event) |
Protected Member Functions | |
virtual QVariant | itemChange (GraphicsItemChange change, const QVariant &value) |
Protected Attributes | |
FotoSHOCKcore::GraphNode * | m_node |
QVector< Connector * > | m_inputs |
QVector< Connector * > | m_outputs |
Node::Node | ( | QGraphicsScene * | scene, |
FotoSHOCKcore::GraphManager * | graph, | ||
FotoSHOCKcore::ImageOperationDescriptor * | operationDescriptor | ||
) |
Construct a new Node.
The operationDescriptor should never be null, unless you want inherit from this class.
|
protected |
Subclasses may want to provide their own set of inputs. This is usually connected with manually setting the m_node member too.
|
protected |
Subclasses may want to provide their own way to initialize m_node. In that case, the operationDescriptor should be set to 0 in the constructor.
|
protected |
Subclasses may want to provide their own set of outputs. This is usually connected with manually setting the m_node member too.