VPTissue Reference Manual
|
Editable graphical representation for Node. More...
#include <EditableNodeItem.h>
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::Node * | Node () 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. | |
Editable graphical representation for Node.
Definition at line 40 of file EditableNodeItem.h.
SimPT_Editor::EditableNodeItem::EditableNodeItem | ( | SimPT_Sim::Node * | node, |
double | radius | ||
) |
Constructor.
node | The node which will be represented. |
radius | The radius of the node in the scene. |
Definition at line 32 of file EditableNodeItem.cpp.
bool SimPT_Editor::EditableNodeItem::Contains | ( | SimPT_Sim::Node * | node | ) | const |
Checks whether this item represents the given node.
node | The given node. |
Definition at line 48 of file EditableNodeItem.cpp.
|
virtual |
Highlights the node in the canvas.
highlighted | True 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.
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().
|
virtual |
Set the color the item should get when it gets highlighted.
color | The 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.
cells | The cells to which the logical node this item represents belongs. |
walls | The walls to which the logical node this item represents belongs. |
Definition at line 73 of file EditableNodeItem.cpp.