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

openvrml::vrml97_node::texture_coordinate_node Class Reference

TextureCoordinate node instances. More...

Inheritance diagram for openvrml::vrml97_node::texture_coordinate_node:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

virtual ~texture_coordinate_node () throw ()
 Destroy.

virtual const std::vector<
vec2f > & 
point () const throw ()
 Get the points encapsulated by this node.


Private Member Functions

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


Private Attributes

mfvec2f point_
 point exposedField.


Friends

class texture_coordinate_class
 Class object for TextureCoordinate instances.


Detailed Description

TextureCoordinate node instances.


Constructor & Destructor Documentation

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

Construct.

Parameters:
type the node_type associated with the instance.
scope the scope that the new node will belong to.

Reimplemented from openvrml::texture_coordinate_node.


Member Function Documentation

const std::vector< vec2f > & openvrml::vrml97_node::texture_coordinate_node::point  )  const throw () [virtual]
 

Get the points encapsulated by this node.

Returns:
the mfvec2f array of points for this node.

Implements openvrml::texture_coordinate_node.

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

set_point eventIn handler.

Parameters:
value an array of vectors representing points.
timestamp the current time.
Exceptions:
std::bad_cast if value is not an mfvec2f.
std::bad_alloc if memory allocation fails.