C3D Toolkit  Kernel - 117982, Vision - 2.9.2.2

An array of spatial curves for projection. More...

#include <map_lump.h>

+ Inheritance diagram for MbSpaceCurves:
+ Collaboration diagram for MbSpaceCurves:

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 MbSpaceCurvesDuplicate (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 MbAttributeContainerGetAttributes () const
 Get the attribute container for reading.
 
MbAttributeContainerSetAttributes ()
 Get the attribute container for writing.
 
const MbMatrix3DGetMatrixFrom () const
 Get the matrix of transformation to the world coordinate system.
 
const MbNameGetName () 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 MbCurve3DGetCurve (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 MbNameGetName (size_t k) const
 Get the name. More...
 
- 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.
 
- Public Member Functions inherited from TapeBase
 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

- Protected Member Functions inherited from MbRefItem
 MbRefItem ()
 Constructor without parameters.
 

Detailed Description

An array of spatial curves for projection.

An array of spatial curves for projection.

Constructor & Destructor Documentation

◆ MbSpaceCurves() [1/2]

MbSpaceCurves::MbSpaceCurves ( uint  _comp,
uint16  _style,
const MbMatrix3D _from,
const MbName _name 
)
inline

Constructor.

Constructor of empty array of visible spatial curves.

Parameters
[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.

◆ MbSpaceCurves() [2/2]

MbSpaceCurves::MbSpaceCurves ( uint  _comp,
uint16  _style,
const MbMatrix3D _from 
)
inline

Constructor.

Constructor of empty array of visible spatial curves without names.

Parameters
[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.

Member Function Documentation

◆ AddNamedCurve()

void MbSpaceCurves::AddNamedCurve ( MbCurve3D curve,
MbName name,
bool  noSameCheck = false 
)
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.

Parameters
[in]curve- A curve.
[in]name- A name of point.
[in]noSameCheck- A flag to disable checking of curve existence in the array.

◆ AddNamedCurves()

template<class Curves >
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.

Parameters
[in]curves- curves.
[in]names- A name of point.
[in]noSameCheck- A flag to disable checking of curve existence in the array.

◆ RemoveNamedCurves()

void MbSpaceCurves::RemoveNamedCurves ( )

Remove curves with names.

Remove curves with names.
Cleans arrays of curves and names.

◆ AdjustMemory()

void MbSpaceCurves::AdjustMemory ( )
inline

Free the unnecessary memory.

Free the unnecessary memory.
Frees the unnecessary memory in arrays of points and names.

◆ GetCurves()

void MbSpaceCurves::GetCurves ( RPArray< MbCurve3D > &  crvs) const
inline

Get the curves.

Get the curves.
Adds curves into a given array.

Parameters
[out]crvs- An array for curves adding.

◆ GetCurve()

const MbCurve3D* MbSpaceCurves::GetCurve ( size_t  k) const
inline

Get a curve.

Get a curve by an index.

Parameters
[in]k- A curve index.
Returns
A pointer to a curve, if the index is less than the number of curves,
otherwise nullptr is returned.

◆ GetNames()

void MbSpaceCurves::GetNames ( RPArray< MbName > &  ns) const
inline

Get the names.

Get the names.
Add the names into a given array.

Parameters
[out]ns- An array for adding of names.

◆ GetName()

const MbName* MbSpaceCurves::GetName ( size_t  k) const
inline

Get the name.

Get the name by an index.

Parameters
[in]k- A name index.
Returns
A pointer to a name, if the index is less than the number of curves, otherwise nullptr is returned. Get the name.

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