Hide menu
cadex::ModelData_ValidationPropertyProvider Class Reference

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

Inheritance diagram for cadex::ModelData_ValidationPropertyProvider:
cadex::ModelData_RefPropertyProvider cadex::ModelData_PropertyTable::Provider

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 ()
- Public Member Functions inherited from cadex::ModelData_RefPropertyProvider
 ModelData_RefPropertyProvider ()
 Constructor. More...
 ModelData_RefPropertyProvider (const ModelData_SceneGraphElement &theRef)
 Constructor. More...
ModelData_SceneGraphElement Ref () const
 Returns the element the provider is attached to.
void SetRef (const ModelData_SceneGraphElement &theRef)
 Sets the element the provider is attached to.
- Public Member Functions inherited from cadex::ModelData_PropertyTable::Provider
virtual ~Provider ()
 Destructor. More...

Additional Inherited Members

- Protected Attributes inherited from cadex::ModelData_RefPropertyProvider
internal::ModelData_SceneGraphElementImpl * myRef

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)


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 


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

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 ( )

Returns the Mask property.

◆ Mask() [2/2]

int cadex::ModelData_ValidationPropertyProvider::Mask ( ) const

Returns the mask.

Returns the value specified in the constructor.

Returns the Mask property.