C3D Toolkit  Kernel - 117982, Vision - 2.9.2.2
VSN::SelectionItem Class Referenceabstract

SelectionItem class is a definition of the interface for a selected item. More...

#include <vsn_selectionmanager.h>

+ Inheritance diagram for VSN::SelectionItem:
+ Collaboration diagram for VSN::SelectionItem:

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 SceneSegmentGetSceneSegment () const
 Returns a pointer to the graph segment.
 
const MbItemGetMathItem () const
 Returns a pointer to the math object. The pointer can be null.
 
SelectionManagerGetParent () const
 Returns a pointer to the SelectionManager.
 

Detailed Description

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.


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