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

openvrml::vrml97_node::elevation_grid_node Class Reference

ElevationGrid node instances. More...

Inheritance diagram for openvrml::vrml97_node::elevation_grid_node:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

virtual ~elevation_grid_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.


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_height (const field_value &value, double timestamp) throw (std::bad_cast, std::bad_alloc)
 set_height eventIn handler.

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

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


Private Attributes

sfnode color
 color exposedField.

sfnode normal
 normal exposedField.

sfnode texCoord
 texCoord exposedField.

sfbool ccw
 ccw field.

sfbool colorPerVertex
 colorPerVertex field.

sffloat creaseAngle
 creaseAngle field.

mffloat height
 height field.

sfbool normalPerVertex
 normalPerVertex field.

sfbool solid
 solid field.

sfint32 xDimension
 xDimension field.

sffloat xSpacing
 xSpacing field.

sfint32 zDimension
 zDimension field.

sffloat zSpacing
 zSpacing field.


Friends

class elevation_grid_class
 Class object for ElevationGrid nodes.


Detailed Description

ElevationGrid node instances.


Constructor & Destructor Documentation

openvrml::vrml97_node::elevation_grid_node::elevation_grid_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::elevation_grid_node::~elevation_grid_node  )  throw () [virtual]
 

Destroy.


Member Function Documentation

viewer::object_t openvrml::vrml97_node::elevation_grid_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::elevation_grid_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::elevation_grid_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::elevation_grid_node::process_set_height const field_value value,
double  timestamp
throw (std::bad_cast, std::bad_alloc) [private]
 

set_height eventIn handler.

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

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

set_normal 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::elevation_grid_node::process_set_texCoord const field_value value,
double  timestamp
throw (std::bad_cast, std::bad_alloc) [private]
 

set_texCoord 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.

Friends And Related Function Documentation

openvrml::vrml97_node::elevation_grid_node::elevation_grid_class [friend]
 

Class object for ElevationGrid nodes.


Member Data Documentation

sfbool openvrml::vrml97_node::elevation_grid_node::ccw [private]
 

ccw field.

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

color exposedField.

sfbool openvrml::vrml97_node::elevation_grid_node::colorPerVertex [private]
 

colorPerVertex field.

sffloat openvrml::vrml97_node::elevation_grid_node::creaseAngle [private]
 

creaseAngle field.

mffloat openvrml::vrml97_node::elevation_grid_node::height [private]
 

height field.

sfnode openvrml::vrml97_node::elevation_grid_node::normal [private]
 

normal exposedField.

sfbool openvrml::vrml97_node::elevation_grid_node::normalPerVertex [private]
 

normalPerVertex field.

sfbool openvrml::vrml97_node::elevation_grid_node::solid [private]
 

solid field.

sfnode openvrml::vrml97_node::elevation_grid_node::texCoord [private]
 

texCoord exposedField.

sfint32 openvrml::vrml97_node::elevation_grid_node::xDimension [private]
 

xDimension field.

sffloat openvrml::vrml97_node::elevation_grid_node::xSpacing [private]
 

xSpacing field.

sfint32 openvrml::vrml97_node::elevation_grid_node::zDimension [private]
 

zDimension field.

sffloat openvrml::vrml97_node::elevation_grid_node::zSpacing [private]
 

zSpacing field.