Home | Download | Screen shots | Discussion | Documentation |
---|
#include <openvrml/browser.h>
node_metatypes
.
For internal use only.
Public Member Functions | |
node_metatype_map () | |
Construct. | |
~node_metatype_map () throw () | |
Destroy. | |
node_metatype_map & | operator= (const node_metatype_map &ncm) |
Assign. | |
void | init (viewpoint_node *initial_viewpoint, double timestamp) |
Initialize the node_metatypes . | |
const boost::shared_ptr< openvrml::node_metatype > | insert (const std::string &id, const boost::shared_ptr< openvrml::node_metatype > &metatype) |
Insert a node_metatype . | |
bool | remove (const std::string &id) |
Remove a node_metatype . | |
const boost::shared_ptr< node_metatype > | find (const std::string &id) const |
Find a node_metatype . | |
const std::vector< node_metatype_id > | node_metatype_ids (const openvrml::node_metatype &metatype) const throw ( std::bad_alloc ) |
The node_metatype identifiers associated with node_metatype . | |
void | render (viewer &v) |
Render the node_metatypes . | |
void | shutdown (double timestamp) throw () |
Shut down the node_metatypes . | |
Private Types | |
typedef std::map< std::string, boost::shared_ptr< node_metatype > > | map_t |
Map type. | |
Private Member Functions | |
node_metatype_map (const node_metatype_map &map) | |
Not implemented. | |
Private Attributes | |
boost::mutex | mutex_ |
Object mutex. | |
map_t | map_ |
Map. |
Map type.
openvrml::browser::node_metatype_map::node_metatype_map | ( | ) |
Construct.
openvrml::browser::node_metatype_map::~node_metatype_map | ( | ) | throw () |
Destroy.
openvrml::browser::node_metatype_map::node_metatype_map | ( | const node_metatype_map & | map | ) | [private] |
Not implemented.
openvrml::browser::node_metatype_map & openvrml::browser::node_metatype_map::operator= | ( | const node_metatype_map & | ncm | ) |
Assign.
[in] | ncm | the value to assign. |
void openvrml::browser::node_metatype_map::init | ( | viewpoint_node * | initial_viewpoint, | |
double | timestamp | |||
) |
Initialize the node_metatypes
.
[in] | initial_viewpoint | the viewpoint_node that should be initially active. |
[in] | timestamp | the current time. |
const boost::shared_ptr< openvrml::node_metatype > openvrml::browser::node_metatype_map::insert | ( | const std::string & | id, | |
const boost::shared_ptr< openvrml::node_metatype > & | node_metatype | |||
) |
Insert a node_metatype
.
This operation will “fail” silently. That is, if a node_metatype
corresponding to id
already exists in the map, the existing element will simply be returned.
[in] | id | the implementation identifier. |
[in] | node_metatype | a node_metatype . |
id
. bool openvrml::browser::node_metatype_map::remove | ( | const std::string & | id | ) |
Remove a node_metatype
.
[in] | id | the implementation identifier. |
true
if a node_metatype
is removed; false
otherwise. const boost::shared_ptr< openvrml::node_metatype > openvrml::browser::node_metatype_map::find | ( | const std::string & | id | ) | const |
Find a node_metatype
.
[in] | id | an implementation identifier. |
node_metatype
corresponding to id
, or a null pointer if no such node_metatype
exists in the map. const std::vector< openvrml::node_metatype_id > openvrml::browser::node_metatype_map::node_metatype_ids | ( | const openvrml::node_metatype & | node_metatype | ) | const throw ( std::bad_alloc ) |
The node_metatype
identifiers associated with node_metatype
.
[in] | node_metatype | a node_metatype . |
node_metatype
identifiers associated with node_metatype
. void openvrml::browser::node_metatype_map::render | ( | openvrml::viewer & | v | ) |
void openvrml::browser::node_metatype_map::shutdown | ( | double | timestamp | ) | throw () |
boost::mutex openvrml::browser::node_metatype_map::mutex_ [mutable, private] |
Object mutex.
Map.