VPTissue Reference Manual
SimPT_Editor::EditableNodeItem Class Reference

Editable graphical representation for Node. More...

#include <EditableNodeItem.h>

Inheritance diagram for SimPT_Editor::EditableNodeItem:
Inheritance graph
Collaboration diagram for SimPT_Editor::EditableNodeItem:
Collaboration graph

Public Slots

void Update ()
 Update the node.
 
- Public Slots inherited from SimPT_Editor::EditableItem
virtual void Update ()
 Update this item.
 

Signals

void Moved ()
 Emitted when this node has been moved in the scene.
 

Public Member Functions

 EditableNodeItem (SimPT_Sim::Node *node, double radius)
 Constructor. More...
 
virtual ~EditableNodeItem ()
 Destructor.
 
bool Contains (SimPT_Sim::Node *node) const
 Checks whether this item represents the given node. More...
 
virtual void Highlight (bool highlighted)
 Highlights the node in the canvas. More...
 
virtual bool IsAtBoundary () const
 Checks whether the node is at the boundary of the complex.
 
SimPT_Sim::NodeNode () const
 Get the node associated with this item. More...
 
void Revert ()
 Revert the node to its previous position.
 
virtual void SetHighlightColor (const QColor &color=DEFAULT_HIGHLIGHT_COLOR)
 Set the color the item should get when it gets highlighted. More...
 
void SetToolTip (std::list< SimPT_Sim::Cell * > cells, std::list< SimPT_Sim::Wall * > walls)
 Update the tool tip of this item. More...
 
- Public Member Functions inherited from SimPT_Editor::EditableItem
 EditableItem ()
 Constructor.
 
virtual ~EditableItem ()
 Destructor.
 

Detailed Description

Editable graphical representation for Node.

Definition at line 40 of file EditableNodeItem.h.

Constructor & Destructor Documentation

SimPT_Editor::EditableNodeItem::EditableNodeItem ( SimPT_Sim::Node node,
double  radius 
)

Constructor.

Parameters
nodeThe node which will be represented.
radiusThe radius of the node in the scene.

Definition at line 32 of file EditableNodeItem.cpp.

Member Function Documentation

bool SimPT_Editor::EditableNodeItem::Contains ( SimPT_Sim::Node node) const

Checks whether this item represents the given node.

Parameters
nodeThe given node.
Returns
True if this item represents the given node.

Definition at line 48 of file EditableNodeItem.cpp.

void SimPT_Editor::EditableNodeItem::Highlight ( bool  highlighted)
virtual

Highlights the node in the canvas.

Parameters
highlightedTrue if the node should be highlighted.

Implements SimPT_Editor::EditableItem.

Definition at line 53 of file EditableNodeItem.cpp.

SimPT_Sim::Node * SimPT_Editor::EditableNodeItem::Node ( ) const

Get the node associated with this item.

Returns
The node.

Definition at line 90 of file EditableNodeItem.cpp.

Referenced by SimPT_Editor::EditableEdgeItem::Edge(), SimPT_Editor::TissueGraphicsView::SelectedIsDeletable(), SimPT_Editor::TissueGraphicsView::SelectedIsSplitable(), and SimPT_Editor::TissueGraphicsView::SplitCell().

Here is the caller graph for this function:

void SimPT_Editor::EditableNodeItem::SetHighlightColor ( const QColor &  color = DEFAULT_HIGHLIGHT_COLOR)
virtual

Set the color the item should get when it gets highlighted.

Parameters
colorThe given color.

Implements SimPT_Editor::EditableItem.

Definition at line 68 of file EditableNodeItem.cpp.

void SimPT_Editor::EditableNodeItem::SetToolTip ( std::list< SimPT_Sim::Cell * >  cells,
std::list< SimPT_Sim::Wall * >  walls 
)

Update the tool tip of this item.

Parameters
cellsThe cells to which the logical node this item represents belongs.
wallsThe walls to which the logical node this item represents belongs.

Definition at line 73 of file EditableNodeItem.cpp.


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