Property(/Parameter) of a node.
More...
#include <NodeProperty.h>
|
| | NodeProperty (Node *parentNode, QString name, int propNr, bool input, const ParameterFileModel *pFile) |
| | default constructor More...
|
| |
| | NodeProperty (Node *parentNode, QString name, QString displayname, int propNr, bool input, const ParameterFileModel *pFile) |
| | default constructor More...
|
| |
| void | addConnection (ConnectionLine *cl) |
| | add a connectionline to the property More...
|
| |
|
virtual QRectF | boundingRect () const |
| | area for hover event
|
| |
| bool | canConnect (NodeProperty *prop) |
| | checks if connection is possible More...
|
| |
|
void | changeConnectionLineColor (QColor lineColor, bool isHover=true) |
| | change color all connected line of hovering property isHover set to true when the property was hovered
|
| |
|
QString | getFullName () const |
| | property name including node instance name
|
| |
|
QPointF | getSocketCenter () const |
| | socket center including node position
|
| |
|
QString | getType () const |
| | get property type
|
| |
| bool | isInput () const |
| | returns the PropType of the property More...
|
| |
| void | moveBy (qreal dx, qreal dy) |
| | moves the property and if connected all connectionlines More...
|
| |
|
void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) |
| | draws the property
|
| |
|
void | setColor (QColor socketColor) |
| | Set the color of the socket.
|
| |
|
|
virtual void | hoverEnterEvent (QGraphicsSceneHoverEvent *event) |
| | update tool tip
|
| |
|
virtual void | hoverLeaveEvent (QGraphicsSceneHoverEvent *event) |
| | clear color of connected line when leave hoverevent
|
| |
|
|
QRectF | _getSocketRect () const |
| | center of the socket, used to draw end and start of connectionline
|
| |
Definition at line 35 of file NodeProperty.h.
| NodeProperty::NodeProperty |
( |
Node * |
parentNode, |
|
|
QString |
name, |
|
|
int |
propNr, |
|
|
bool |
input, |
|
|
const ParameterFileModel * |
pFile |
|
) |
| |
- Parameters
-
| parentNode | the node which the property belongs to |
| name | name of the property |
| propNr | number of the property (needed for correct positioning) |
| input | input output type of the property |
| pFile | link to given parameter file |
Definition at line 34 of file NodeProperty.cpp.
References _color, and _node.
| NodeProperty::NodeProperty |
( |
Node * |
parentNode, |
|
|
QString |
name, |
|
|
QString |
displayname, |
|
|
int |
propNr, |
|
|
bool |
input, |
|
|
const ParameterFileModel * |
pFile |
|
) |
| |
- Parameters
-
| parentNode | the node which the property belongs to |
| name | name of the property |
| displayname | display name of the property |
| propNr | number of the property (needed for correct positioning) |
| input | input output type of the property |
| pFile | link to given parameter file |
Definition at line 50 of file NodeProperty.cpp.
References _color, and _node.
- Parameters
-
| prop | property to connect to |
- Returns
- true if connection is possible
| bool NodeProperty::isInput |
( |
| ) |
const |
| void NodeProperty::moveBy |
( |
qreal |
dx, |
|
|
qreal |
dy |
|
) |
| |
The documentation for this class was generated from the following files: