VPTissue Reference Manual
SimPT_Editor::EditableItem Class Referenceabstract

Interface for an editable graphical representation. More...

#include <EditableItem.h>

Inheritance diagram for SimPT_Editor::EditableItem:
Inheritance graph
Collaboration diagram for SimPT_Editor::EditableItem:
Collaboration graph

Public Slots

virtual void Update ()
 Update this item.
 

Public Member Functions

 EditableItem ()
 Constructor.
 
virtual ~EditableItem ()
 Destructor.
 
virtual void Highlight (bool highlighted)=0
 Highlights the item in the canvas. More...
 
virtual bool IsAtBoundary () const =0
 Checks whether the item is at the boundary. More...
 
virtual void SetHighlightColor (const QColor &color)=0
 Set the highlight color to a given color. More...
 

Detailed Description

Interface for an editable graphical representation.

Definition at line 30 of file EditableItem.h.

Member Function Documentation

virtual void SimPT_Editor::EditableItem::Highlight ( bool  highlighted)
pure virtual

Highlights the item in the canvas.

Parameters
highlightedTrue if the item should be highlighted.

Implemented in SimPT_Editor::EditableEdgeItem, SimPT_Editor::EditableCellItem, and SimPT_Editor::EditableNodeItem.

virtual bool SimPT_Editor::EditableItem::IsAtBoundary ( ) const
pure virtual

Checks whether the item is at the boundary.

Returns
True if the item is at the boundary.

Implemented in SimPT_Editor::EditableEdgeItem, SimPT_Editor::EditableCellItem, and SimPT_Editor::EditableNodeItem.

Referenced by SimPT_Editor::TissueGraphicsView::SelectedIsAtBoundary().

Here is the caller graph for this function:

virtual void SimPT_Editor::EditableItem::SetHighlightColor ( const QColor &  color)
pure virtual

Set the highlight color to a given color.

Parameters
colorThe given color.

Implemented in SimPT_Editor::EditableCellItem, SimPT_Editor::EditableEdgeItem, and SimPT_Editor::EditableNodeItem.


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