C3D Toolkit  Kernel - 117982, Vision - 2.9.2.2

Parameters for faces highlighting for solid direct modification. More...

#include <op_direct_mod_parameter.h>

+ Inheritance diagram for MbCollectFacesParams:
+ Collaboration diagram for MbCollectFacesParams:

Public Member Functions

 MbCollectFacesParams (MbeModifyingMode modType, const c3d::ItemIndices &faces, VERSION version=Math::DefaultMathVersion())
 Constructor. More...
 
 MbCollectFacesParams (MbeModifyingMode type, const c3d::ItemIndices &faces, double value, VERSION version=Math::DefaultMathVersion())
 Constructor. More...
 
 ~MbCollectFacesParams ()
 Destructor.
 
void AddFace (const MbItemIndex &face)
 Add face to values. More...
 
void AddFaces (const c3d::ItemIndices &faces)
 Add faces to values. More...
 
template<class DMValues >
std::shared_ptr< DMValues > GetValues () const
 Get the values of the requested type.
 
bool IsValid (const MbFaceShell *shell=nullptr) const
 Whether the created parameters are valid. More...
 
MbeModifyingMode GetType () const
 Get the modification type.
 
- Public Member Functions inherited from MbPrecision
 MbPrecision ()
 Default constructor.
 
 MbPrecision (double _precision, double _deviation)
 Constructor by the specified precision.
 
 MbPrecision (const MbPrecision &other)
 Copy-constructor.
 
 ~MbPrecision ()
 Destructor.
 
void Init (const MbPrecision &other)
 Initialization function.
 
void Init (double _precision)
 Initialization function.
 
MbPrecisionoperator= (const MbPrecision &other)
 Assignment operator.
 
bool IsSame (const MbPrecision &other, double accuracy) const
 Determine whether an object is equal?
 
double GetPrecision () const
 Get precision.
 
void SetPrecision (double a)
 Set precision.
 

Protected Member Functions

 MbCollectFacesParams (MbeModifyingMode type, VERSION version=Math::DefaultMathVersion())
 Inner constructor. More...
 
template<class DMValues >
std::shared_ptr< DMValues > _GetValues () const
 Get the values of the requested type.
 

Protected Attributes

MbeModifyingMode _modificationType
 Type of modification.
 
std::shared_ptr< DirectModValues > _modValues
 The unique values, depending on the operation.
 
VERSION _version
 The operation version.
 
- Protected Attributes inherited from MbPrecision
double precision
 The metric precision of the construction of objects.
 
double deviation
 The angular precision of the construction of objects.
 

Additional Inherited Members

- Static Public Member Functions inherited from MbPrecision
static double GetMaxMetricTolerance ()
 Get the maximum metric tolerance. More...
 
static double GetMaxAngleTolerance ()
 Get the maximum angular tolerance. More...
 

Detailed Description

Parameters for faces highlighting for solid direct modification.

Parameters include the type of operation (MbeModifyingMode) and parameters necessary for faces highligting.

Constructor & Destructor Documentation

◆ MbCollectFacesParams() [1/3]

MbCollectFacesParams::MbCollectFacesParams ( MbeModifyingMode  type,
VERSION  version = Math::DefaultMathVersion() 
)
protected

Inner constructor.

Inner constructor by parameters.

Parameters
[in]type- Modification type.
[in]version- The operation version.

◆ MbCollectFacesParams() [2/3]

MbCollectFacesParams::MbCollectFacesParams ( MbeModifyingMode  modType,
const c3d::ItemIndices &  faces,
VERSION  version = Math::DefaultMathVersion() 
)

Constructor.

Constructor by parameters.

Parameters
[in]modType- Modification type.
[in]faces- Faces for the modification.
[in]version- The operation version.

◆ MbCollectFacesParams() [3/3]

MbCollectFacesParams::MbCollectFacesParams ( MbeModifyingMode  type,
const c3d::ItemIndices &  faces,
double  value,
VERSION  version = Math::DefaultMathVersion() 
)

Constructor.

Constructor by parameters.

Parameters
[in]type- Modification type.
[in]faces- Faces for the modification.
[in]value- Max value of a radius for dmm_Remove* and dmm_Purify*.
[in]version- The operation version.

Member Function Documentation

◆ AddFace()

void MbCollectFacesParams::AddFace ( const MbItemIndex face)

Add face to values.

Add face to values wihout repeats.

Parameters
[in]face- Face pointer.

◆ AddFaces()

void MbCollectFacesParams::AddFaces ( const c3d::ItemIndices &  faces)
inline

Add faces to values.

Add faces to values wihout repeats.

Parameters
[in]faces- Array of faces pointers.

◆ IsValid()

bool MbCollectFacesParams::IsValid ( const MbFaceShell shell = nullptr) const

Whether the created parameters are valid.

Whether the created parameters are valid for the specified shell. Checks the input objects arrays (faces, edges, sufaces), input operation values, consistency between type and parameters.

Parameters
[in]shell- Pointer to the to-be-modified shell .

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