openvrml::vrml97_node::box_node Class Reference

Inheritance diagram for openvrml::vrml97_node::box_node:
[legend]

List of all members.


Detailed Description

Box node instances.

Public Member Functions

 box_node (const node_type &type, const boost::shared_ptr< openvrml::scope > &scope)
 Construct.
virtual ~box_node () throw ()
 Destroy.
virtual const
openvrml::bounding_volume
bounding_volume () const
 Get the bounding volume.

Private Member Functions

virtual viewer::object_t do_render_geometry (openvrml::viewer &viewer, rendering_context context)
 Insert this geometry into viewer's display list.

Private Attributes

sfvec3f size
 size field.
bounding_sphere bsphere
 Bounding volume.

Friends

class box_class
 Class object for Box nodes.

Constructor & Destructor Documentation

openvrml::vrml97_node::box_node::box_node ( const node_type type,
const boost::shared_ptr< openvrml::scope > &  scope 
)

Construct.

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

openvrml::vrml97_node::box_node::~box_node (  )  throw () [virtual]

Destroy.


Member Function Documentation

const bounding_volume & openvrml::vrml97_node::box_node::bounding_volume (  )  const [virtual]

Get the bounding volume.

Returns:
the bounding volume associated with the node.

Reimplemented from openvrml::node.

viewer::object_t openvrml::vrml97_node::box_node::do_render_geometry ( openvrml::viewer viewer,
rendering_context  context 
) [private, virtual]

Insert this geometry into viewer's display list.

Parameters:
viewer a Viewer.
context the rendering context.
Returns:
display object identifier.

Reimplemented from openvrml::geometry_node.


Friends And Related Function Documentation

openvrml::vrml97_node::box_node::box_class [friend]

Class object for Box nodes.


Member Data Documentation

size field.

Bounding volume.