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

openvrml::vrml97_node::texture_transform_node Class Reference

TextureTransform node instances. More...

Inheritance diagram for openvrml::vrml97_node::texture_transform_node:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

virtual ~texture_transform_node () throw ()
 Destroy.

virtual void render (openvrml::viewer &viewer, rendering_context context)
 Render the node.


Private Member Functions

void process_set_center (const field_value &value, double timestamp) throw (std::bad_cast)
 set_center eventIn handler.

void process_set_rotation (const field_value &value, double timestamp) throw (std::bad_cast)
 set_rotation eventIn handler.

void process_set_scale (const field_value &value, double timestamp) throw (std::bad_cast)
 set_scale eventIn handler.

void process_set_translation (const field_value &value, double timestamp) throw (std::bad_cast)
 set_translation eventIn handler.


Private Attributes

sfvec2f center
 center exposedField.

sffloat rotation
 rotation exposedField.

sfvec2f scale
 scale exposedField.

sfvec2f translation
 translation exposedField.


Friends

class texture_transform_class
 Class object for TextureTransform instances.


Detailed Description

TextureTransform node instances.


Constructor & Destructor Documentation

openvrml::vrml97_node::texture_transform_node::texture_transform_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_transform_node.


Member Function Documentation

void openvrml::vrml97_node::texture_transform_node::process_set_center const field_value value,
double  timestamp
throw (std::bad_cast) [private]
 

set_center eventIn handler.

Parameters:
value an sfvec2f value.
timestamp the current time.
Exceptions:
std::bad_cast if value is not an sfvec2f.

void openvrml::vrml97_node::texture_transform_node::process_set_rotation const field_value value,
double  timestamp
throw (std::bad_cast) [private]
 

set_rotation eventIn handler.

Parameters:
value an sffloat value.
timestamp the current time.
Exceptions:
std::bad_cast if value is not an sffloat.

void openvrml::vrml97_node::texture_transform_node::process_set_scale const field_value value,
double  timestamp
throw (std::bad_cast) [private]
 

set_scale eventIn handler.

Parameters:
value an sfvec2f value.
timestamp the current time.
Exceptions:
std::bad_cast if value is not an sfvec2f.

void openvrml::vrml97_node::texture_transform_node::process_set_translation const field_value value,
double  timestamp
throw (std::bad_cast) [private]
 

set_translation eventIn handler.

Parameters:
value an sfvec2f value.
timestamp the current time.
Exceptions:
std::bad_cast if value is not an sfvec2f.

void openvrml::vrml97_node::texture_transform_node::render openvrml::viewer viewer,
rendering_context  context
[virtual]
 

Render the node.

Parameters:
viewer a Viewer.
context a rendering context.

Reimplemented from openvrml::node.