Home | Download | Screen shots | Discussion | Documentation |
---|
Public Member Functions | |
background_class (openvrml::browser &browser) | |
Construct. | |
virtual | ~background_class () throw () |
Destroy. | |
void | set_first (background_node &background) throw () |
Set the first Background node in the world. | |
bool | has_first () const throw () |
Check to see if the first node has been set. | |
void | bind (background_node &background, double timestamp) throw (std::bad_alloc) |
Push a background_node on the top of the bound node stack. | |
void | unbind (background_node &background, double timestamp) throw () |
Remove a background_node from the bound node stack. | |
Private Types | |
typedef std::vector < background_node * > | bound_nodes_t |
A bound Background node stack. | |
Private Member Functions | |
virtual void | do_initialize (viewpoint_node *initialViewpoint, double timestamp) throw () |
virtual void | do_render (viewer &v) const throw () |
node_class-specific rendering. | |
virtual const node_type_ptr | do_create_type (const std::string &id, const node_interface_set &interfaces) const throw (unsupported_interface, std::bad_alloc) |
Create a node_type. | |
Private Attributes | |
background_node * | first |
The first Background node in the initial scene graph. | |
bound_nodes_t | bound_nodes |
The bound Background node stack. |
A bound Background node stack.
openvrml::vrml97_node::background_class::background_class | ( | openvrml::browser & | browser | ) | [explicit] |
openvrml::vrml97_node::background_class::~background_class | ( | ) | throw () [virtual] |
Destroy.
void openvrml::vrml97_node::background_class::set_first | ( | background_node & | background | ) | throw () |
bool openvrml::vrml97_node::background_class::has_first | ( | ) | const throw () |
Check to see if the first node has been set.
This method is used by background_node::do_initialize.
true
if the first node has already been set; false
otherwise. void openvrml::vrml97_node::background_class::bind | ( | background_node & | background, | |
double | timestamp | |||
) | throw (std::bad_alloc) |
Push a background_node on the top of the bound node stack.
background | the node to bind. | |
timestamp | the current time. |
std::bad_alloc | if memory allocation fails. |
void openvrml::vrml97_node::background_class::unbind | ( | background_node & | background, | |
double | timestamp | |||
) | throw () |
Remove a background_node from the bound node stack.
background | the node to unbind. | |
timestamp | the current time. |
void openvrml::vrml97_node::background_class::do_render | ( | viewer & | v | ) | const throw () [private, virtual] |
node_class-specific rendering.
Render the active Background node.
v | viewer. |
Reimplemented from openvrml::node_class.
const node_type_ptr openvrml::vrml97_node::background_class::do_create_type | ( | const std::string & | id, | |
const node_interface_set & | interfaces | |||
) | const throw (unsupported_interface, std::bad_alloc) [private, virtual] |
Create a node_type.
unsupported_interface | if interfaces includes an interface not supported by background_class. | |
std::bad_alloc | if memory allocation fails. |
Implements openvrml::node_class.
The bound Background node stack.