C3D Toolkit
Kernel - 117982, Vision - 2.9.2.2
|
InstCustomItem class is an item responsible for a manual object selection and that has function implementation. More...
#include <vsn_selectionmanager.h>
Public Member Functions | |
InstCustomItem (const NodeKey &key, SelectionManager *pManager, int currenyindexBody=-1, uint currentPrimitiveId=0) | |
Default constructor. | |
virtual | ~InstCustomItem () |
Destructor. | |
virtual bool | Highlight () override |
Highlights the item. The function isn't used. | |
virtual bool | UnHighlight () override |
Unhighlights the item. The function isn't used. | |
virtual bool | Select () override |
Selects the item. | |
virtual bool | UnSelect () override |
Unselects the item. | |
Public Member Functions inherited from VSN::InstSelectionItem | |
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 | 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. | |
Additional Inherited Members | |
Protected Attributes inherited from VSN::InstSelectionItem | |
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. | |
InstCustomItem class is an item responsible for a manual object selection and that has function implementation.
InstCustomItem 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. InstCustomItem 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. InstCustomItem class doesn't operate with mouse events and is intended for a manual object selection.