SMTK  @SMTK_VERSION@
Simulation Modeling Tool Kit
Public Member Functions | Protected Member Functions | Protected Attributes | Properties | Friends | List of all members
smtk::extension::qtComponentNode Class Reference

Rendering and interaction code for nodes that represent components of resources. More...

#include <qtComponentNode.h>

Inheritance diagram for smtk::extension::qtComponentNode:
[legend]
Collaboration diagram for smtk::extension::qtComponentNode:
[legend]

Public Member Functions

 smtkSuperclassMacro (qtBaseObjectNode)
 
 smtkTypeMacro (smtk::extension::qtComponentNode)
 
 qtComponentNode (qtDiagramGenerator *generator, smtk::resource::PersistentObject *resource, QGraphicsItem *parent=nullptr)
 
smtk::common::UUID nodeId () const override
 Return a UUID for this node.
 
smtk::resource::PersistentObjectobject () const override
 Return the task this node represents.
 
QRectF boundingRect () const override
 Get the bounding box of the node, which includes the border width and the label.
 
void dataUpdated () override
 Handle renames, etc.
 
smtk::resource::Componentcomponent () const
 
- Public Member Functions inherited from smtk::extension::qtBaseObjectNode
 smtkSuperclassMacro (qtBaseNode)
 
 smtkTypeMacro (smtk::extension::qtBaseObjectNode)
 
 qtBaseObjectNode (qtDiagramGenerator *generator, smtk::resource::PersistentObject *obj, QGraphicsItem *parent=nullptr)
 
std::string name () const override
 Return the object's name as the node's name.
 
- Public Member Functions inherited from smtk::extension::qtBaseNode
 smtkSuperclassMacro (QGraphicsItem)
 
 smtkTypeMacroBase (smtk::extension::qtBaseNode)
 
 qtBaseNode (qtDiagramGenerator *scene, QGraphicsItem *parent=nullptr)
 
QRectF boundingRect () const override
 Return a dummy bounding-rect. More...
 
qtDiagramGeneratorgenerator () const
 Return the generator responsible for this node.
 
qtDiagramdiagram () const
 Return the diagram which owns the generator of this node.
 
qtDiagramScenescene () const
 Return the scene this node belongs to.
 
virtual void setContentStyle (ContentStyle cs)
 Set/get how much data the node should render inside its boundary.
 
ContentStyle contentStyle () const
 

Protected Member Functions

void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
 
void hoverEnterEvent (QGraphicsSceneHoverEvent *event) override
 Handle pointer hovers.
 
void hoverLeaveEvent (QGraphicsSceneHoverEvent *event) override
 
- Protected Member Functions inherited from smtk::extension::qtBaseNode
QVariant itemChange (GraphicsItemChange change, const QVariant &value) override
 
virtual int updateSize ()
 Update the node bounds to fit its content.
 
void addToScene ()
 Adds the node to the scene. More...
 

Protected Attributes

smtk::resource::Componentm_component { nullptr }
 
ComponentNodeWidget * m_container { nullptr }
 
- Protected Attributes inherited from smtk::extension::qtBaseNode
qtDiagramGeneratorm_generator { nullptr }
 
ContentStyle m_contentStyle { ContentStyle::Minimal }
 

Properties

QPointF pos
 
qreal rotation
 
- Properties inherited from smtk::extension::qtBaseObjectNode
smtk::resource::PersistentObject object
 
- Properties inherited from smtk::extension::qtBaseNode
ContentStyle contentStyle
 

Friends

class ComponentNodeWidget
 

Additional Inherited Members

- Public Types inherited from smtk::extension::qtBaseNode
enum  ContentStyle : int { ContentStyle::Minimal, ContentStyle::Summary, ContentStyle::Details }
 Determine how the node is presented to users. More...
 
- Signals inherited from smtk::extension::qtBaseNode
void nodeResized ()
 
void nodeMoved ()
 

Detailed Description

Rendering and interaction code for nodes that represent components of resources.


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