Computes bounding box of the element and adds it to a property table. More...
#include <cadex/ModelData_BoundingBoxProvider.hxx>
Public Member Functions | |
ModelData_BoundingBoxProvider () | |
Constructor. | |
ModelData_BoundingBoxProvider (const ModelData_SceneGraphElement &theRef) | |
Constructor. | |
virtual void | Feed (ModelData_PropertyTable &theTable) const |
Feeds the property table. | |
![]() | |
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. | |
![]() | |
virtual | ~Provider () |
Destructor. | |
virtual void | Feed (ModelData_PropertyTable &theTable) const =0 |
Feeds the property table. | |
Additional Inherited Members | |
![]() | |
internal::ModelData_SceneGraphElementImpl * | myRef |
Computes bounding box of the element and adds it to a property table.
Bounding box for any graph element is stored in the property table associated with that graph element. The value is stored with the name "CADEX_BOUNDING_BOX", returned by ModelData_PropertyTable::BoundingBoxPropertyName().
Uses ModelAlgo_BoundingBox to perform actual computations. Invokes ModelAlgo_BoundingBox::Compute() with theForcedFlush set to true. Thus, constructs any representation which has been constructed with the help of providers which have not been flushed yet.
For details on computation of bounding boxes refer to ModelAlgo_BoundingBox.
cadex::ModelData_BoundingBoxProvider::ModelData_BoundingBoxProvider | ( | ) |
Constructor.
Creates a provider not attached to any element. Use Ref() later on for attacment.
cadex::ModelData_BoundingBoxProvider::ModelData_BoundingBoxProvider | ( | const ModelData_SceneGraphElement & | theRef | ) |
Constructor.
theRef specifies the source element for which the bounding box will be computed in the Feed() method.
|
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.