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

openvrml::vrml97_node::sphere_node Class Reference

Sphere node instances. More...

Inheritance diagram for openvrml::vrml97_node::sphere_node:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

virtual ~sphere_node () throw ()
 Destroy.

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

virtual const openvrml::bounding_volume & bounding_volume () const
 Get the bounding volume.


Private Attributes

sffloat radius
 radius field.

bounding_sphere bsphere
 Bounding volume.


Friends

class sphere_class
 Class object for Sphere instances.


Detailed Description

Sphere node instances.


Constructor & Destructor Documentation

openvrml::vrml97_node::sphere_node::sphere_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.

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

Destroy.


Member Function Documentation

const bounding_volume & openvrml::vrml97_node::sphere_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::sphere_node::insert_geometry openvrml::viewer viewer,
rendering_context  context
[virtual]
 

Insert this geometry into viewer's display list.

Parameters:
viewer a Viewer.
context the rendering context.

Implements openvrml::geometry_node.


Friends And Related Function Documentation

openvrml::vrml97_node::sphere_node::sphere_class [friend]
 

Class object for Sphere instances.


Member Data Documentation

bounding_sphere openvrml::vrml97_node::sphere_node::bsphere [private]
 

Bounding volume.

sffloat openvrml::vrml97_node::sphere_node::radius [private]
 

radius field.