![]() |
Workspace 7.1.0
|
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 |
![]() | |
~SceneProcessor () override | |
bool | visit (Annotation &annotation) override final |
bool | visit (Camera &camera) override final |
bool | visit (ClipRegion &clipRegion) override final |
bool | visit (Light &light) override final |
bool | visit (MeshModelInstance &model) override final |
bool | visit (SceneItemInstance &sceneItemInstance) override final |
bool | visit (Transform &transform) override final |
![]() | |
~SceneItemProcessor () override | |
bool | process (Scene &scene) |
bool | process (Transform &transform) |
virtual bool | visit (Annotation &annotation) |
virtual bool | visit (Camera &camera) |
virtual bool | visit (ClipRegion &clipRegion) |
virtual bool | visit (Light &light) |
virtual bool | visit (MeshModelInstance &model) |
virtual bool | visit (SceneItemInstance &sceneItemInstance) |
virtual bool | visit (Transform &transform) |
![]() | |
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 |
![]() | |
SceneProcessor () | |
SceneProcessor (const SceneProcessor &p) | |
SceneProcessor & | operator= (const SceneProcessor &p) |
bool | postVisits (Scene &scene) override |
bool | preVisits (Scene &scene) override |
bool | traverseScene (Scene &scene) override |
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) |
![]() | |
SceneItemProcessor () | |
SceneItemProcessor (const SceneItemProcessor &p) | |
bool | isProcessing () const |
SceneItemProcessor & | operator= (const SceneItemProcessor &p) |
virtual bool | postVisits (Scene &scene) |
virtual bool | preVisits (Scene &scene) |
virtual bool | traverseScene (Scene &scene) |
![]() | |
Observable () | |
Observable (const Observable &) | |
Additional Inherited Members | |
![]() | |
static const Application::LogManager::MessageCategory | LOG_SCENEPROCESSOR |
![]() | |
static const Application::LogManager::MessageCategory | LOG_SCENEITEMPROCESSOR |
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 SceneItemProcessor.
|
overrideprotectedvirtual |
modelInstance | The model to visit. |
The default implementation does nothing. Most subclasses will override this function.
Reimplemented from SceneProcessor.