C3D Toolkit
Kernel - 117982, Vision - 2.9.2.2
|
Identifier of the part of the solid. More...
#include <part_solid.h>
Public Member Functions | |
MbPartSolidIndex () | |
Default constructor. | |
MbPartSolidIndex (uint _id, const MbPath &_path, ptrdiff_t _ind, const MbCartPoint3D &_tiePnt, double _diag, const MbCartPoint3D &_refPnt, ptrdiff_t _allCount) | |
Constructor. More... | |
virtual | ~MbPartSolidIndex () |
Destructor. | |
bool | IsValid () const |
Whether index is correct. | |
bool | IsSelected () const |
Whether index is selected. | |
bool | IsChanged () const |
Whether index is changed. | |
uint | GetId () const |
Get solid identifier. | |
const MbPath & | GetPath () const |
Get path. | |
ptrdiff_t | GetIndex () const |
Get index of the part of the solid. | |
const MbCartPoint3D & | GetTiePoint () const |
Get anchor point of solid part. | |
double | GetDiag () const |
Get diagonal size of the solid part. | |
const MbCartPoint3D & | GetRefPoint () const |
Get anchor point of solid from parts. | |
ptrdiff_t | GetAllCount () const |
Get total count of solid parts. | |
bool | operator== (const MbPartSolidIndex &obj) const |
Comparison of indices (by content). | |
Public Member Functions inherited from MbRefItem | |
virtual MbeRefType | RefType () const |
Registration type (for copying, duplication). | |
refcount_t | GetUseCount () const |
Get count of references (get count of owners of an object). | |
refcount_t | AddRef () const |
Increase count of references by one. | |
refcount_t | DecRef () const |
Decrease count of references by one. | |
refcount_t | Release () const |
Decrease count of references by one and if count of references became zero, then remove itself. | |
Protected Member Functions | |
void | Reset () |
Reset data to undefined state. | |
bool | Init (uint _id, const MbPath &_path, ptrdiff_t _ind, const MbCartPoint3D &_tiePnt, double _diag, const MbCartPoint3D &_refPnt, ptrdiff_t _allCount) |
Initialization. More... | |
bool | Init (const MbPartSolidIndex &psInd) |
The initialization by another index. | |
void | SetSelected (bool b) const |
Set selected. | |
void | SetChanged (bool b) const |
Set modification. | |
Protected Member Functions inherited from MbRefItem | |
MbRefItem () | |
Constructor without parameters. | |
Protected Attributes | |
uint | id |
Solid identifier. | |
MbPath | path |
Path. | |
ptrdiff_t | ind |
Index of the part of the solid. | |
MbCartPoint3D | tiePnt |
Anchor point of solid part. | |
double | diag |
Diagonal size of the solid part. | |
MbCartPoint3D | refPnt |
Base point of the solid from parts. | |
ptrdiff_t | allCnt |
Total count of solid parts. | |
Friends | |
class | MbPartSolidIndices |
Identifier of the part of the solid.
Identifier of solid part with the anchor point and other information.
|
inline |
Constructor.
Constructor by data.
[in] | _id | - Solid identifier. |
[in] | _path | - Path. |
[in] | _ind | - Index of the part of the solid. |
[in] | _tiePnt | - Anchor point of solid part. |
[in] | _diag | - Diagonal size of the solid part. |
[in] | _refPnt | - Base point of the solid from parts. |
[in] | _allCount | - Total count of solid parts. |
|
inlineprotected |
Initialization.
Initialize by data.
[in] | _id | - Solid identifier. |
[in] | _path | - Path. |
[in] | _ind | - Index of the part of the solid. |
[in] | _tiePnt | - Anchor point of solid part. |
[in] | _diag | - Diagonal size of the solid part. |
[in] | _refPnt | - Base point of the solid from parts. |
[in] | _allCount | - Total count of solid parts. |