CAD Exchanger SDK
cadex::ModelData_ValidationPropertyProvider Class Reference

Computes validation properties of the element and adds them to a property table. More...

Inherits cadex::ModelData_RefPropertyProvider.

Public Types

enum  MaskType { SurfaceArea = 0x01, Volume = 0x02, Centroid = 0x04, All = SurfaceArea | Volume | Centroid }
 Defines a mask used to select validation properties to compute.
 

Public Member Functions

 ModelData_ValidationPropertyProvider (int theMask=All)
 Constructor. More...
 
 ModelData_ValidationPropertyProvider (const ModelData_SceneGraphElement &theRef, int theMask=All)
 Constructor. More...
 
virtual void Feed (ModelData_PropertyTable &theTable) const
 Feeds the property table. More...
 
int Mask () const
 Returns the mask. More...
 
int & Mask ()
 

Detailed Description

Computes validation properties of the element and adds them to a property table.

Validation properties for a graph element is stored in the property table associated with that graph element. The values are stored with the names as documented in the table in the section Validation properties.

See also
ModelAlgo_ValidationProperty, ModelData_BoundingBoxProvider.

Constructor & Destructor Documentation

◆ ModelData_ValidationPropertyProvider() [1/2]

cadex::ModelData_ValidationPropertyProvider::ModelData_ValidationPropertyProvider ( int  theMask = All)

Constructor.

Creates a provider not attached to any element. Use Ref() later on for attacment.

theMask is a bit mask using the Mask enumeration flags.

◆ ModelData_ValidationPropertyProvider() [2/2]

cadex::ModelData_ValidationPropertyProvider::ModelData_ValidationPropertyProvider ( const ModelData_SceneGraphElement theRef,
int  theMask = All 
)

Constructor.

theRef specifies the source element for which the bounding box will be computed in the Feed() method.

theMask is a bit mask using the Mask enumeration flags.

Member Function Documentation

◆ Feed()

void cadex::ModelData_ValidationPropertyProvider::Feed ( ModelData_PropertyTable theTable) const
virtual

Feeds the property table.

Computes bounding box of the element specified in the constructor and adds it to the property table.

Implements cadex::ModelData_PropertyTable::Provider.

◆ Mask() [1/2]

int& cadex::ModelData_ValidationPropertyProvider::Mask ( )
inline

Returns the Mask property.

◆ Mask() [2/2]

int cadex::ModelData_ValidationPropertyProvider::Mask ( ) const
inline

Returns the mask.

Returns the value specified in the constructor.

Returns the Mask property.