Utility class for calculating the bounding box of a scene.
#include <Rendering/SceneComponents/calculatesceneboundingbox.h>
◆ SceneBoundingBoxCalculator()
◆ ~SceneBoundingBoxCalculator()
◆ getBoundingBox()
- Returns
- The bounding box that has been calculated from the supplied scene during the last call to process().
- Precondition
- The process() function must have been invoked.
◆ isEmpty()
- Returns
- true of the bounding box is empty, false otherwise.
◆ preVisits()
bool preVisits |
( |
Scene & |
scene | ) |
|
|
overrideprotectedvirtual |
- Parameters
-
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.
◆ visitImpl()
- Parameters
-
modelInstance | The model to visit. |
- Note
- This function will only be called if modelInstance is enabled (this is controlled by the visit(MeshModelInstance&) function which is the only place visitImpl(MeshModelInstance&) should be called from).
The default implementation does nothing. Most subclasses will override this function.
Reimplemented from SceneProcessor.