|
| ModelDescriptor ()=default |
|
| ModelDescriptor (ModelDescriptor &&rhs)=default |
|
ModelDescriptor & | operator= (ModelDescriptor &&rhs)=default |
|
| ModelDescriptor (ModelPtr model, const std::string &path) |
|
| ModelDescriptor (ModelPtr model, const std::string &path, const ModelMetadata &metadata) |
|
| ModelDescriptor (ModelPtr model, const std::string &name, const std::string &path, const ModelMetadata &metadata) |
|
ModelDescriptor & | operator= (const ModelParams &rhs) |
|
bool | getEnabled () const |
|
void | setMetadata (const ModelMetadata &metadata) |
|
const ModelMetadata & | getMetadata () const |
|
const Model & | getModel () const |
|
Model & | getModel () |
|
void | addInstance (const ModelInstance &instance) |
|
void | removeInstance (const size_t id) |
|
void | clearInstances () |
|
ModelInstance * | getInstance (const size_t id) |
|
const ModelInstances & | getInstances () const |
|
Boxd | getBounds () const |
|
void | computeBounds () |
|
void | setProperties (const PropertyMap &properties) |
|
const PropertyMap & | getProperties () const |
|
void | onRemoved (const RemovedCallback &callback) |
|
void | callOnRemoved () |
|
void | markForRemoval () |
|
bool | isMarkedForRemoval () const |
|
ModelDescriptorPtr | clone (ModelPtr model) const |
|
PLATFORM_API | ModelParams ()=default |
|
PLATFORM_API | ModelParams (const std::string &path) |
| Constructor to create ModelParams object from a given path. More...
|
|
PLATFORM_API | ModelParams (const std::string &name, const std::string &path) |
| Constructor to create ModelParams object with a given name and path. More...
|
|
PLATFORM_API | ModelParams (const std::string &name, const std::string &path, const PropertyMap &loaderProperties) |
| Constructor to create ModelParams object with a given name, path and loader properties. More...
|
|
PLATFORM_API | ModelParams (ModelParams &&rhs)=default |
|
PLATFORM_API ModelParams & | operator= (ModelParams &&rhs)=default |
|
PLATFORM_API | ModelParams (const ModelParams &rhs)=default |
|
PLATFORM_API ModelParams & | operator= (const ModelParams &rhs)=default |
|
PLATFORM_API void | setName (const std::string &name) |
| setName sets the name of the model More...
|
|
PLATFORM_API const std::string & | getName () const |
| getName gets the name of the model More...
|
|
PLATFORM_API void | setPath (const std::string &path) |
| setPath sets the path of the model More...
|
|
PLATFORM_API const std::string & | getPath () const |
| getPath gets the path of the model More...
|
|
PLATFORM_API void | setLoaderName (const std::string &loaderName) |
| setLoaderName sets the loader name of the model More...
|
|
PLATFORM_API const std::string & | getLoaderName () const |
| getLoaderName gets the loader name of the model More...
|
|
PLATFORM_API const PropertyMap & | getLoaderProperties () const |
| getLoaderProperties gets the loader properties of the model More...
|
|
PLATFORM_API void | setLoaderProperties (const PropertyMap &pm) |
| setLoaderProperties sets the loader properties of the model More...
|
|
PLATFORM_API | ModelInstance ()=default |
| Default constructor. More...
|
|
PLATFORM_API | ModelInstance (const bool visible, const bool boundingBox, const Transformation &transformation) |
| Constructor with parameters. More...
|
|
PLATFORM_API bool | getVisible () const |
| Get the value of _visible. More...
|
|
PLATFORM_API void | setVisible (const bool visible) |
| Set the value of _visible. More...
|
|
PLATFORM_API bool | getBoundingBox () const |
| Get the value of _boundingBox. More...
|
|
PLATFORM_API void | setBoundingBox (const bool enabled) |
| Set the value of _boundingBox. More...
|
|
PLATFORM_API const Transformation & | getTransformation () const |
| Get the value of _transformation. More...
|
|
PLATFORM_API void | setTransformation (const Transformation &transformation) |
| Set the value of _transformation. More...
|
|
PLATFORM_API void | setModelID (const size_t id) |
| Set the value of _modelID. More...
|
|
PLATFORM_API size_t | getModelID () const |
| Get the value of _modelID. More...
|
|
PLATFORM_API void | setInstanceID (const size_t id) |
| Set the value of _instanceID. More...
|
|
PLATFORM_API size_t | getInstanceID () const |
| Get the value of _instanceID. 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 () |
|
The ModelDescriptor struct defines the metadata attached to a model.
Model descriptor are exposed via the HTTP/WS interface. Enabling a model means that the model is part of scene. If disabled, the model still exists in Core, but is removed from the rendered scene. The visible attribute defines if the model should be visible or not. If invisible, the model is removed from the BVH. If set to true, the bounding box attribute displays a bounding box for the current model.
Definition at line 284 of file Model.h.