C3D Toolkit  Kernel - 117982, Vision - 2.9.2.2

Index of object identification. More...

#include <op_binding_data.h>

+ Inheritance diagram for MbItemIndex:
+ Collaboration diagram for MbItemIndex:

Public Member Functions

 MbItemIndex ()
 Default constructor.
 
 MbItemIndex (size_t i)
 Constructor by the index without anchor point.
 
 MbItemIndex (size_t i, const MbCartPoint3D &p, SimpleName n)
 Constructor by the index with anchor point.
 
 MbItemIndex (size_t i, const MbFace &face)
 Constructor by the index with anchor point.
 
 MbItemIndex (size_t i, const MbCurveEdge &edge)
 Constructor by the index with anchor point.
 
 MbItemIndex (const MbItemIndex &other)
 Copy-constructor.
 
 ~MbItemIndex ()
 Destructor.
 
void Init (const MbItemIndex &other)
 Initialization function.
 
void Init (size_t ind, bool reset=true)
 Initialization function.
 
void Init (size_t i, const MbCartPoint3D &p, SimpleName n)
 Initialization function.
 
bool Init (const MbFaceShell &, size_t faceIndex)
 Initialization function.
 
void Init (const MbFace &, size_t faceIndex)
 Initialization function.
 
void Init (const MbCurveEdge &, size_t edgeIndex)
 Initialization function.
 
MbItemIndexoperator= (const MbItemIndex &other)
 Assignment operator.
 
size_t GetIndex () const
 Get index.
 
SimpleName GetName () const
 Get name.
 
const MbCartPoint3DGetPoint () const
 Get anchoring point.
 
void SetIndex (size_t index)
 Set index.
 
void SetName (SimpleName name)
 Set name.
 
void SetPoint (const MbFace &)
 Set anchoring point.
 
void SetPoint (const MbCurveEdge &)
 Set anchoring point.
 
void ChangeIndexPoint (size_t index, const MbCartPoint3D &pnt)
 Change index and anchoring point.
 
void ChangeIndexName (size_t index, const SimpleName &name)
 Change index and anchoring point.
 
void Transform (const MbMatrix3D &matr)
 Transform element according to the matrix.
 
void Move (const MbVector3D &to)
 Move an object along a vector.
 
void Rotate (const MbAxis3D &axis, double ang)
 Rotate an object at a given angle around an axis.
 
bool IsSame (const MbItemIndex &other, double accuracy) const
 Determine whether an object is equal?
 

Static Public Member Functions

static bool LessByItemIndex (const MbItemIndex &ind1, const MbItemIndex &ind2)
 Static operator "less".
 
static bool LessByItemName (const MbItemIndex &ind1, const MbItemIndex &ind2)
 Static operator "less".
 
static bool NoItemIndex (const MbItemIndex &ind)
 Static operator "no item index".
 

Protected Attributes

size_t itemIndex
 The index of object in the shell.
 
MbCartPoint3D point
 Control point of the object.
 
SimpleName itemName
 A name of an object.
 

Detailed Description

Index of object identification.

Index contains the name, the index in the solid and the control point, it is used to search for object (face, edge, vertex) in the shell. Object searching is performed by name. In failure case - by index, and checked by the control point.


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