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

openvrml::grouping_node Class Reference

Abstract base class for grouping nodes. More...

Inheritance diagram for openvrml::grouping_node:

Inheritance graph
[legend]
Collaboration diagram for openvrml::grouping_node:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual ~grouping_node ()=0 throw ()
 Destroy.

virtual const grouping_node * to_grouping () const throw ()
 Cast to a grouping_node.

virtual grouping_node * to_grouping () throw ()
 Cast to a grouping_node.

virtual const std::vector<
node_ptr > & 
children () const=0 throw ()
 Get the children in the scene graph.

virtual void activate (double timestamp, bool over, bool active, double *p)=0
 Called in response to user interaction to activate any child pointing device sensor nodes.


Protected Member Functions

 grouping_node (const node_type &type, const scope_ptr &scope) throw ()
 Construct.


Detailed Description

Abstract base class for grouping nodes.


Constructor & Destructor Documentation

openvrml::grouping_node::~grouping_node  )  throw () [pure virtual]
 

Destroy.

openvrml::grouping_node::grouping_node const node_type type,
const scope_ptr scope
throw () [protected]
 

Construct.

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

Member Function Documentation

void openvrml::grouping_node::activate double  timestamp,
bool  over,
bool  active,
double *  p
[pure virtual]
 

Called in response to user interaction to activate any child pointing device sensor nodes.

Parameters:
timestamp the current time.
over whether the pointer is over sensitive geometry.
active whether the pointer has activated sensitive geometry.
p the activation point.

Implemented in openvrml::vrml97_node::group_node, openvrml::vrml97_node::inline_node, openvrml::vrml97_node::lod_node, and openvrml::vrml97_node::switch_node.

const std::vector< node_ptr > & openvrml::grouping_node::children  )  const throw () [pure virtual]
 

Get the children in the scene graph.

Returns:
the child nodes in the scene graph.

Implemented in openvrml::vrml97_node::group_node, openvrml::vrml97_node::inline_node, openvrml::vrml97_node::lod_node, and openvrml::vrml97_node::switch_node.

grouping_node * openvrml::grouping_node::to_grouping  )  throw () [virtual]
 

Cast to a grouping_node.

Returns:
a pointer to this grouping_node.

Reimplemented from openvrml::node.

const grouping_node * openvrml::grouping_node::to_grouping  )  const throw () [virtual]
 

Cast to a grouping_node.

Returns:
a pointer to this grouping_node.

Reimplemented from openvrml::node.