C3D Toolkit
Kernel - 117982, Vision - 2.9.2.2
|
An array of spatial curves for projection. More...
#include <map_lump.h>
Public Member Functions | |
MbSpaceCurves (uint _comp, uint16 _style, const MbMatrix3D &_from, const MbName &_name) | |
Constructor. More... | |
MbSpaceCurves (uint _comp, uint16 _style, const MbMatrix3D &_from) | |
Constructor. More... | |
virtual | ~MbSpaceCurves () |
Destructor. | |
virtual MbSpaceCurves & | Duplicate (MbRegDuplicate *iReg=nullptr) const |
Get a copy of the object. | |
Functions for access to data. | |
uint | GetComponent () const |
Get the name of a component. | |
uint16 | GetStyle () const |
Get the style. | |
const MbAttributeContainer & | GetAttributes () const |
Get the attribute container for reading. | |
MbAttributeContainer & | SetAttributes () |
Get the attribute container for writing. | |
const MbMatrix3D & | GetMatrixFrom () const |
Get the matrix of transformation to the world coordinate system. | |
const MbName & | GetName () const |
Get the name. | |
bool | IsHidden () const |
Get the flag of invisibility of curves for projection. | |
void | SetHidden (bool h) const |
Set the flag of invisibility of curves for projection. | |
Functions for changing data. | |
void | AddNamedCurve (MbCurve3D *curve, MbName *name, bool noSameCheck=false) |
Add a curve with a name. More... | |
template<class Curves > | |
void | AddNamedCurves (const Curves &curves, const RPArray< MbName > &names, bool noSameCheck=false) |
Add curves with names. More... | |
void | RemoveNamedCurves () |
Remove curves with names. More... | |
void | AdjustMemory () |
Free the unnecessary memory. More... | |
Access to curves. | |
size_t | GetCurvesCount () const |
The number of curves. | |
void | GetCurves (RPArray< MbCurve3D > &crvs) const |
Get the curves. More... | |
const MbCurve3D * | GetCurve (size_t k) const |
Get a curve. More... | |
Access to names. | |
size_t | GetNamesCount () const |
The number of names. | |
void | GetNames (RPArray< MbName > &ns) const |
Get the names. More... | |
const MbName * | GetName (size_t k) const |
Get the name. More... | |
![]() | |
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. | |
![]() | |
TapeBase (RegistrableRec regs=noRegistrable) | |
Constructor. | |
TapeBase (const TapeBase &) | |
Copy-constructor. | |
virtual | ~TapeBase () |
Destructor. | |
RegistrableRec | GetRegistrable () const |
Whether the stream class is registrable. | |
void | SetRegistrable (RegistrableRec regs=registrable) const |
Set the state of registration of the stream class. | |
virtual const char * | GetPureName (const VersionContainer &) const |
Get the class name. | |
virtual bool | IsFamilyRegistrable () const |
Whether the object belongs to a registrable family. | |
Additional Inherited Members | |
![]() | |
MbRefItem () | |
Constructor without parameters. | |
An array of spatial curves for projection.
An array of spatial curves for projection.
|
inline |
Constructor.
Constructor of empty array of visible spatial curves.
[in] | _comp | - A component in which a set of points is defined. |
[in] | _style | - A style. |
[in] | _from | - A matrix of transformation to the world coordinate system. |
[in] | _name | - A name of set. |
|
inline |
Constructor.
Constructor of empty array of visible spatial curves without names.
[in] | _comp | - A component in which a set of points is defined. |
[in] | _style | - A style. |
[in] | _from | - A matrix of transformation to the world coordinate system. |
|
inline |
Add a curve with a name.
Add a curve with a name.
Add a non-zero curve into the set of curves. If noSameCheck = false a curve is added into the array after checking of its absence in it. Generates a warning if the array of names of points has a flag of elements removing.
[in] | curve | - A curve. |
[in] | name | - A name of point. |
[in] | noSameCheck | - A flag to disable checking of curve existence in the array. |
void MbSpaceCurves::AddNamedCurves | ( | const Curves & | curves, |
const RPArray< MbName > & | names, | ||
bool | noSameCheck = false |
||
) |
Add curves with names.
Add curves with names.
The count of curves must be equal to the count of names. Otherwise generates a warning.
Adds sequentially a curve with a name by the "AddNamedCurve" method.
[in] | curves | - curves. |
[in] | names | - A name of point. |
[in] | noSameCheck | - A flag to disable checking of curve existence in the array. |
void MbSpaceCurves::RemoveNamedCurves | ( | ) |
Remove curves with names.
Remove curves with names.
Cleans arrays of curves and names.
|
inline |
Free the unnecessary memory.
Free the unnecessary memory.
Frees the unnecessary memory in arrays of points and names.
Get the curves.
Get the curves.
Adds curves into a given array.
[out] | crvs | - An array for curves adding. |
|
inline |
Get a curve.
Get a curve by an index.
[in] | k | - A curve index. |
Get the names.
Get the names.
Add the names into a given array.
[out] | ns | - An array for adding of names. |
|
inline |
Get the name.
Get the name by an index.
[in] | k | - A name index. |