Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members | Related Pages

openvrml::vrml97_node::billboard_node Class Reference

Billboard node instances. More...

Inheritance diagram for openvrml::vrml97_node::billboard_node:

Inheritance graph
[legend]
Collaboration diagram for openvrml::vrml97_node::billboard_node:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 billboard_node (const node_type &type, const scope_ptr &scope)
 Construct.

virtual ~billboard_node () throw ()
 Destroy.

virtual void render (openvrml::viewer &viewer, rendering_context context)
 Render the node.


Static Public Member Functions

const mat4f billboard_to_matrix (const billboard_node &node, const mat4f &modelview)
 Get the bounding box transformation matrix.


Private Member Functions

void process_set_axisOfRotation (const field_value &value, double timestamp) throw (std::bad_cast)
 set_axisOfRotation eventIn handler.


Private Attributes

sfvec3f axisOfRotation
 axisOfRotation exposedField.

viewer::object_t xformObject
 Handle for the renderer.


Friends

class billboard_class
 Class object for Billboard nodes.


Detailed Description

Billboard node instances.


Constructor & Destructor Documentation

openvrml::vrml97_node::billboard_node::billboard_node const node_type type,
const scope_ptr scope
 

Construct.

Parameters:
type the node_type associated with the node instance.
scope the scope to which the node belongs.

Member Function Documentation

const mat4f openvrml::vrml97_node::billboard_node::billboard_to_matrix const billboard_node node,
const mat4f modelview
[static]
 

Get the bounding box transformation matrix.

Parameters:
node a pointer to a billboard_node.
modelview input ModelView transformation matrix.
Returns:
the bounding box transformation matrix.

void openvrml::vrml97_node::billboard_node::process_set_axisOfRotation const field_value value,
double  timestamp
throw (std::bad_cast) [private]
 

set_axisOfRotation eventIn handler.

Parameters:
value an sfvec3f.
timestamp the current time.
Exceptions:
std::bad_cast if value is not an sfvec3f.

void openvrml::vrml97_node::billboard_node::render openvrml::viewer viewer,
rendering_context  context
[virtual]
 

Render the node.

Parameters:
viewer a viewer.
context the rendering context.

Reimplemented from openvrml::vrml97_node::group_node.