The scene is the top-level element describing a subset of DB elements to be rendered. More...
Public Member Functions | |
virtual Sint32 | set_rootgroup (const char *root)=0 |
Sets the root group of this scene. More... |
|
virtual const IString * | get_rootgroup () const =0 |
Returns the name of the root group of this scene. More... |
|
virtual Sint32 | set_options (const char *options)=0 |
Sets the options of this scene. More... |
|
virtual const IString * | get_options () const =0 |
Returns the name of the options of this scene. More... |
|
virtual Sint32 | set_camera_instance (const char *camera)=0 |
Sets the camera instance of this scene. More... |
|
virtual const IString * | get_camera_instance () const =0 |
Returns the name of the camera instance of this scene. More... |
|
virtual Sint32 | get_bbox_min (Float32_3_struct &vector3)=0 |
Returns the minimal corner of the bounding box of this scene. More... |
|
virtual Sint32 | get_bbox_max (Float32_3_struct &vector3)=0 |
Returns the maximal corner of the bounding box of this scene. More... |
|
virtual IRender_context * | create_render_context (ITransaction *transaction, const char *render_mode, Sint32 *errors=0)=0 |
Creates a render context suitable for rendering the scene with a given render mode. More... |
|
Additional Inherited Members | |
Public Types inherited from mi::base::Interface_declare< 0x44e2a997, 0x8a86, 0x468d, 0x8d, 0x31, 0xed, 0x93, 0xc0, 0xb9, 0xac, 0x83 > | |
typedef Interface_declare< id1, id2, id3, id4, id5, id6, id7, id8, id9, id10, id11, IInterface > |
Self |
Own type. More... |
|
typedef Uuid_t< id1, id2, id3, id4, id5, id6, id7, id8, id9, id10, id11 > |
IID |
Declares the interface ID (IID) of this interface. More... |
|
Static Public Member Functions inherited from mi::base::Interface_declare< 0x44e2a997, 0x8a86, 0x468d, 0x8d, 0x31, 0xed, 0x93, 0xc0, 0xb9, 0xac, 0x83 > | |
static bool | compare_iid (const Uuid &iid) |
Compares the interface ID iid against the interface ID of this interface and of its ancestors. More... |
|
The scene is the top-level element describing a subset of DB elements to be rendered.
A scene is described by three elements:
Preprocessing of scene data is deferred until it is needed. In particular, get_bbox_min(), get_bbox_max(), and create_render_context() trigger preprocessing of the scene data.
|
pure virtual |
Creates a render context suitable for rendering the scene with a given render mode.
transaction | The transaction to be used. | |
render_mode | The render mode to be used, for example, "iray" . Possible values are documented in Section Render mode selection of the Programmer's Manual. |
|
[out] | errors | An optional pointer to an mi::Sint32 to which an error code will be written. The error codes have the following meaning:
|
NULL
in case of failure.
|
pure virtual |
Returns the maximal corner of the bounding box of this scene.
This method is not a const
method because it might trigger loading the actual scene data.
[out] | vector3 | The maximum bounding box. |
|
pure virtual |
Returns the minimal corner of the bounding box of this scene.
This method is not a const
method because it might trigger loading the actual scene data.
[out] | vector3 | The minimum bounding box. |
|
pure virtual |
Returns the name of the camera instance of this scene.
NULL
if there is no camera instance.
|
pure virtual |
Returns the name of the options of this scene.
NULL
if there is no options object.
|
pure virtual |
Returns the name of the root group of this scene.
NULL
if there is no root group.
|
pure virtual |
Sets the camera instance of this scene.
camera | The name of the camera instance. |
NULL
pointer).
|
pure virtual |
Sets the options of this scene.
options | The name of the options. |
NULL
pointer).
|
pure virtual |
Sets the root group of this scene.
root | The root group. |
NULL
pointer).