Workspace 6.21.5
|
Utility class for calculating the bounding box of a scene.
#include <Rendering/SceneComponents/calculatesceneboundingbox.h>
Public Member Functions | |
SceneBoundingBoxCalculator (const QString &locationInformationForLogging="") | |
~SceneBoundingBoxCalculator () override | |
const Mesh::BoundingBoxMinimal & | getBoundingBox () const |
bool | isEmpty () const |
Public Member Functions inherited from SceneProcessor | |
~SceneProcessor () override | |
bool | process (Scene &scene) |
bool | process (Transform &transform) |
bool | visit (Annotation &annotation) |
bool | visit (Camera &camera) |
bool | visit (ClipRegion &clipRegion) |
bool | visit (Light &light) |
bool | visit (MeshModelInstance &model) |
bool | visit (SceneItemInstance &sceneItemInstance) |
bool | visit (Transform &transform) |
Public Member Functions inherited from Observable | |
virtual | ~Observable () |
void | attachObserver (Observer &observer) |
void | destroy () |
void | detachObserver (Observer &observer) |
void | notifyEvent (const ObservableEvent &event) |
Protected Member Functions | |
bool | preVisits (Scene &scene) override |
bool | visitImpl (MeshModelInstance &modelInstance) override |
Protected Member Functions inherited from SceneProcessor | |
SceneProcessor () | |
SceneProcessor (const SceneProcessor &p) | |
SceneProcessor & | operator= (const SceneProcessor &p) |
virtual bool | postVisits (Scene &scene) |
virtual bool | preVisits (Scene &scene) |
virtual bool | traverseScene (Scene &scene) |
virtual bool | visitImpl (Annotation &annotation) |
virtual bool | visitImpl (Camera &camera) |
virtual bool | visitImpl (ClipRegion &clipRegion) |
virtual bool | visitImpl (Light &light) |
virtual bool | visitImpl (MeshModelInstance &modelInstance) |
virtual bool | visitImpl (SceneItemInstance &sceneItemInstance) |
virtual bool | visitImpl (Transform &transform) |
Protected Member Functions inherited from Observable | |
Observable () | |
Observable (const Observable &) | |
Additional Inherited Members | |
Static Public Attributes inherited from SceneProcessor | |
static const Application::LogManager::MessageCategory | LOG_SCENEPROCESSOR |
SceneBoundingBoxCalculator | ( | const QString & | locationInformationForLogging = "" | ) |
|
overridedefault |
const BoundingBoxMinimal & getBoundingBox | ( | ) | const |
bool isEmpty | ( | ) | const |
|
overrideprotectedvirtual |
scene | The scene being visited. |
This function should only ever be called by process(). Client code should not call it directly. The default implementation performs a check on this condition and returns true
if the function is being called within a call to process(), or false
otherwise. The default implementation performs no other action.
Subclasses may wish to provide their own implementation for preVisits() in order to set up their own internal data structures. They are not required to call this base class implementation if they do so.
Reimplemented from SceneProcessor.
|
overrideprotectedvirtual |
modelInstance | The model to visit. |
The default implementation does nothing. Most subclasses will override this function.
Reimplemented from SceneProcessor.