C3D Toolkit
Kernel - 117982, Vision - 2.9.2.2
|
SelectionItem class is a definition of the interface for a selected item. More...
#include <vsn_selectionmanager.h>
Public Member Functions | |
SelectionItem (const NodeKey &key, SelectionManager *pManager) | |
Default constructor. | |
virtual | ~SelectionItem () |
Destructor. | |
virtual NodeKey | GetNodeKey () const |
Returns the unique key. | |
virtual ObjectType | GetType () const |
Returns the object type. | |
virtual bool | Highlight ()=0 |
Highlights the item. | |
virtual bool | UnHighlight ()=0 |
Unhighlights the item. | |
virtual bool | Select ()=0 |
Selects the item. | |
virtual bool | UnSelect ()=0 |
Unselects the item. | |
virtual bool | IsEquals (const SelectionItem *pItem) const |
Returns true if two selection items are equal. | |
const SceneSegment * | GetSceneSegment () const |
Returns a pointer to the graph segment. | |
const MbItem * | GetMathItem () const |
Returns a pointer to the math object. The pointer can be null. | |
SelectionManager * | GetParent () const |
Returns a pointer to the SelectionManager. | |
SelectionItem class is a definition of the interface for a selected item.
It is an abstract class for the selection items that is contained in the list of SelectionManager class. SelectionItem class defines a set of functions of SelectionManager, and operators for interaction at the selection moment. Use this class as the base class if you need to implement new classes for selection items. Note: you cannot create an instace of the class, as it contains some pure virtual functions that have got no implementation.