Computes validation properties of the element and adds them to a property table. More...
#include <cadex/ModelData_ValidationPropertyProvider.hxx>
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. | |
ModelData_ValidationPropertyProvider (const ModelData_SceneGraphElement &theRef, int theMask=All) | |
Constructor. | |
virtual void | Feed (ModelData_PropertyTable &theTable) const |
Feeds the property table. | |
int | Mask () const |
Returns the mask. | |
int & | Mask () |
Public Member Functions inherited from cadex::ModelData_RefPropertyProvider | |
ModelData_RefPropertyProvider () | |
Constructor. | |
ModelData_RefPropertyProvider (const ModelData_SceneGraphElement &theRef) | |
Constructor. | |
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. | |
virtual void | Feed (ModelData_PropertyTable &theTable) const =0 |
Feeds the property table. | |
Additional Inherited Members | |
Protected Attributes inherited from cadex::ModelData_RefPropertyProvider | |
internal::ModelData_SceneGraphElementImpl * | myRef |
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.
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.
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.
|
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.
|
inline |
Returns the Mask property.
|
inline |
Returns the mask.
Returns the value specified in the constructor.
Returns the Mask property.