|
virtual PLATFORM_API void | commit () |
| Called after scene-related changes have been made before rendering the scene. More...
|
|
virtual PLATFORM_API bool | commitLights ()=0 |
| Commits lights to renderers. More...
|
|
virtual PLATFORM_API ModelPtr | createModel () const =0 |
| Factory method to create an engine-specific model. More...
|
|
PLATFORM_API | Scene (AnimationParameters &animationParameters, GeometryParameters &geometryParameters, VolumeParameters &volumeParameters, FieldParameters &fieldParameters) |
| Creates a scene object responsible for handling models, simulations and light sources. More...
|
|
PLATFORM_API const Boxd & | getBounds () const |
| Returns the bounding box of the scene. More...
|
|
PLATFORM_API LightManager & | getLightManager () |
| Gets the light manager. More...
|
|
PLATFORM_API size_t | addModel (ModelDescriptorPtr model) |
| Adds a model to the scene. More...
|
|
PLATFORM_API bool | removeModel (const size_t id) |
| Removes a model from the scene. More...
|
|
PLATFORM_API const ModelDescriptors & | getModelDescriptors () const |
| Get all model descriptors. More...
|
|
PLATFORM_API ModelDescriptorPtr | getModel (const size_t id) const |
| Get a model descriptor given its ID. More...
|
|
PLATFORM_API void | buildDefault () |
| Builds a default scene made of a Cornell box, a reflective cube, and a transparent sphere. More...
|
|
PLATFORM_API bool | empty () const |
| Checks whether the scene is empty. More...
|
|
PLATFORM_API size_t | addClipPlane (const Plane &plane) |
| Add a clip plane to the scene. More...
|
|
PLATFORM_API ClipPlanePtr | getClipPlane (const size_t id) const |
| Get a clip plane by its ID. More...
|
|
PLATFORM_API void | removeClipPlane (const size_t id) |
| Remove a clip plane by its ID, or no-op if not found. More...
|
|
PLATFORM_API const ClipPlanes & | getClipPlanes () const |
| Get all clip planes in the scene. More...
|
|
PLATFORM_API size_t | getSizeInBytes () const |
| Get the current size in bytes of the loaded geometry. More...
|
|
PLATFORM_API size_t | getNumModels () const |
| Get the current number of models in the scene. More...
|
|
PLATFORM_API void | setMaterialsColorMap (MaterialsColorMap colorMap) |
| Initializes materials for all models in the scene. More...
|
|
PLATFORM_API bool | setEnvironmentMap (const std::string &envMap) |
| Set a new environment map as the background image. More...
|
|
PLATFORM_API const std::string & | getEnvironmentMap () const |
| Get the current environment map texture file, or empty if no environment is set. More...
|
|
PLATFORM_API bool | hasEnvironmentMap () const |
| Check if an environment map is currently set in the scene. More...
|
|
PLATFORM_API MaterialPtr | getBackgroundMaterial () const |
| Get the background material. More...
|
|
PLATFORM_API ModelDescriptorPtr | loadModel (Blob &&blob, const ModelParams ¶ms, LoaderProgress cb) |
| Load a model from the given blob. More...
|
|
PLATFORM_API ModelDescriptorPtr | loadModel (const std::string &path, const ModelParams ¶ms, LoaderProgress cb) |
| Load a model from the given file. More...
|
|
PLATFORM_API void | visitModels (const std::function< void(Model &)> &functor) |
| Apply the given functor to every model in the scene. More...
|
|
PLATFORM_API LoaderRegistry & | getLoaderRegistry () |
| Get the registry for all supported loaders of this scene. More...
|
|
PLATFORM_API auto | acquireReadAccess () const |
|
PLATFORM_API void | copyFrom (const Scene &rhs) |
| Copy the scene from another scene. More...
|
|
PLATFORM_API void | computeBounds () |
| Compute the bounds of the geometry handled by the scene. More...
|
|
| BaseObject ()=default |
|
virtual | ~BaseObject ()=default |
|
| BaseObject (const BaseObject &) |
|
BaseObject & | operator= (const BaseObject &rhs) |
|
bool | isModified () const |
|
void | resetModified () |
|
void | markModified (const bool triggerCallback=true) |
|
void | onModified (const ModifiedCallback &callback) |
|
void | clearModifiedCallback () |
|
Scene object This object contains collections of geometries, materials and light sources that are used to describe the 3D scene to be rendered. Scene is the base class for rendering-engine-specific inherited scenes.
Definition at line 42 of file Scene.h.