FotoSHOCK
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Node Class Reference
Inheritance diagram for Node:

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::GraphManagerGraphManager () const
 
FotoSHOCKcore::GraphNodeGraphNode () 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::GraphNodem_node
 
QVector< Connector * > m_inputs
 
QVector< Connector * > m_outputs
 

Constructor & Destructor Documentation

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.

Member Data Documentation

QVector<Connector*> Node::m_inputs
protected

Subclasses may want to provide their own set of inputs. This is usually connected with manually setting the m_node member too.

FotoSHOCKcore::GraphNode* Node::m_node
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.

QVector<Connector*> Node::m_outputs
protected

Subclasses may want to provide their own set of outputs. This is usually connected with manually setting the m_node member too.


The documentation for this class was generated from the following files: