Home | Download | Screen shots | Discussion | Documentation |
---|
Public Member Functions | |
fog_class (openvrml::browser &browser) | |
Construct. | |
virtual | ~fog_class () throw () |
Destroy. | |
void | set_first (fog_node &fog) throw () |
Set the first Fog node in the world. | |
bool | has_first () const throw () |
Check to see if the first node has been set. | |
void | bind (fog_node &fog, double timestamp) throw (std::bad_alloc) |
Push a Fog on the top of the bound node stack. | |
void | unbind (fog_node &fog, double timestamp) throw () |
Remove a Fog from the bound node stack. | |
Private Types | |
typedef std::vector< fog_node * > | bound_nodes_t |
A bound Fog 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 | |
fog_node * | first |
The first Fog node in the initial scene graph. | |
bound_nodes_t | bound_nodes |
The bound Fog node stack. |
|
A bound Fog node stack.
|
|
Construct.
|
|
Destroy.
|
|
Set the first Fog node in the world. The first Fog node in the world is used for the initial fog. This method is used by fog_node::do_initialize.
|
|
Check to see if the first node has been set. This method is used by fog_node::do_initialize.
|
|
Push a Fog on the top of the bound node stack.
|
|
Remove a Fog from the bound node stack.
|
|
node_class-specific rendering. Render the active Fog node.
Reimplemented from openvrml::node_class. |
|
Create a node_type.
Implements openvrml::node_class. |
|
The first Fog node in the initial scene graph.
|
|
The bound Fog node stack.
|