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

openvrml::vrml97_node::point_set_node Class Reference

Represents PointSet node instances. More...

Inheritance diagram for openvrml::vrml97_node::point_set_node:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

virtual ~point_set_node () throw ()
 Destroy.

virtual bool modified () const
 Determine whether the node has been modified.

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 Member Functions

void process_set_color (const field_value &value, double timestamp) throw (std::bad_cast, std::bad_alloc)
 set_color eventIn handler.

void process_set_coord (const field_value &value, double timestamp) throw (std::bad_cast, std::bad_alloc)
 set_coord eventIn handler.

void recalcBSphere ()
 Recalculate the bounding volume.


Private Attributes

sfnode color
 color exposedField.

sfnode coord
 coord exposedField.

bounding_sphere bsphere
 Bounding volume.


Friends

class point_set_class
 Class object for PointSet instances.


Detailed Description

Represents PointSet node instances.


Constructor & Destructor Documentation

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

Construct.

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

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

Destroy.


Member Function Documentation

const bounding_volume & openvrml::vrml97_node::point_set_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::point_set_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.

bool openvrml::vrml97_node::point_set_node::modified  )  const [virtual]
 

Determine whether the node has been modified.

Returns:
true if the node or one of its children has been modified, false otherwise.

Reimplemented from openvrml::node.

void openvrml::vrml97_node::point_set_node::process_set_color const field_value value,
double  timestamp
throw (std::bad_cast, std::bad_alloc) [private]
 

set_color eventIn handler.

Parameters:
value an sfnode value.
timestamp the current time.
Exceptions:
std::bad_cast if value is not an sfnode.
std::bad_alloc if memory allocation fails.

void openvrml::vrml97_node::point_set_node::process_set_coord const field_value value,
double  timestamp
throw (std::bad_cast, std::bad_alloc) [private]
 

set_coord eventIn handler.

Parameters:
value an sfnode value.
timestamp the current time.
Exceptions:
std::bad_cast if value is not an sfnode.
std::bad_alloc if memory allocation fails.

void openvrml::vrml97_node::point_set_node::recalcBSphere  )  [private]
 

Recalculate the bounding volume.


Friends And Related Function Documentation

openvrml::vrml97_node::point_set_node::point_set_class [friend]
 

Class object for PointSet instances.


Member Data Documentation

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

Bounding volume.

sfnode openvrml::vrml97_node::point_set_node::color [private]
 

color exposedField.

sfnode openvrml::vrml97_node::point_set_node::coord [private]
 

coord exposedField.