C3D Toolkit
Kernel - 117982, Vision - 2.9.2.2
|
InstSelectionItem class is a selection item that contains functions implementation. More...
#include <vsn_selectionmanager.h>
Public Member Functions | |
InstSelectionItem (const NodeKey &key, SelectionManager *pManager, int currenyindexBody=-1, uint currentPrimitiveId=0) | |
Default constructor. | |
virtual | ~InstSelectionItem () |
Destructor. | |
virtual NodeKey | GetItemKey () const |
Returns the identifier of the inserts in the geometry. | |
virtual int | GetIndexBody () const |
Returns the body index in the geometry. | |
virtual uint | GetPrimitiveId () const |
Returns the identifier of the primitive in the geometry. | |
virtual MbPath | GetMathPath () const |
Returns the unique path to the math object. | |
virtual uint32 | GetMathPrimitive () const |
Returns the unique identifier of the math object. | |
virtual bool | Highlight () override |
Highlights the item. | |
virtual bool | UnHighlight () override |
Unhighlights the item. | |
virtual bool | Select () override |
Selects the item. | |
virtual bool | UnSelect () override |
Unselects the item. | |
virtual bool | IsEquals (const SelectionItem *pItem) const |
Returns true if two selection items are equal. | |
Geometry * | GetGeometryItem () const |
Returns pointer to geometry. The pointer can be null. | |
const MbTopologyItem * | GetPrimitiveItem () const |
Returns a pointer to the math primitive. The pointer can be null. More... | |
Public Member Functions inherited from VSN::SelectionItem | |
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. | |
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. | |
Protected Attributes | |
NodeKey | m_itemKey |
The unique identifiers of the visual objects. | |
PointI | m_cursorPos |
The cursor position. | |
int | m_currenyindexBody |
The body index. | |
uint | m_currentPrimitiveId |
The unique identifier of the primitive. | |
InstSelectionItem class is a selection item that contains functions implementation.
InstSelectionItem class implementation processes selection of such entities as faces, edges, verteces, etc. The implementation sets a color to an additional material, in order to recognize selected objects. InstSelectionItem class also has functions that give the unique identifiers of each scene object, and the match identifiers of the primary representation, i.e. a math representation if any.
const MbTopologyItem* VSN::InstSelectionItem::GetPrimitiveItem | ( | ) | const |
Returns a pointer to the math primitive. The pointer can be null.
Returns cursor position.