Home | Download | Screen shots | Discussion | Documentation |
---|
Public Member Functions | |
scene (openvrml::browser &browser, const std::vector< std::string > &url, scene *parent=0) throw (invalid_vrml, no_alternative_url, std::bad_alloc) | |
Construct a scene from a URI. | |
void | initialize (double timestamp) throw (std::bad_alloc) |
Initialize the scene. | |
const std::vector< node_ptr > & | nodes () const throw () |
Root nodes for the scene. | |
const std::string | url () const throw (std::bad_alloc) |
Get the absolute URI for the scene. | |
void | render (openvrml::viewer &viewer, rendering_context context) |
Render the scene. | |
void | load_url (const std::vector< std::string > &url, const std::vector< std::string > ¶meter) throw (std::bad_alloc) |
Load a resource into browser. | |
void | shutdown (double timestamp) throw () |
Shut down the nodes in the scene. | |
Public Attributes | |
openvrml::browser & | browser |
A reference to the browser associated with the scene. | |
scene *const | parent |
A pointer to the parent scene. | |
Private Attributes | |
std::vector< node_ptr > | nodes_ |
The nodes for the scene. | |
std::string | url_ |
The URI for the scene. |
|
Construct a scene from a URI.
|
|
Initialize the scene.
|
|
Root nodes for the scene.
|
|
Get the absolute URI for the scene.
|
|
Render the scene.
|
|
Load a resource into browser.
This method simply resolves any relative references in
|
|
Shut down the nodes in the scene. This function must be called before the scene is destroyed.
|
|
The nodes for the scene.
|
|
The URI for the scene. uri may be a relative or an absolute reference. |
|
A reference to the browser associated with the scene.
|
|
A pointer to the parent scene. If the scene is the root scene, parent will be 0. |