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

openvrml::vrml97_node::anchor_node Class Reference

Represents Anchor node instances. More...

Inheritance diagram for openvrml::vrml97_node::anchor_node:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

virtual ~anchor_node () throw ()
 Destroy.

virtual anchor_nodeto_anchor () const
 Cast to an anchor.

virtual const openvrml::bounding_volumebounding_volume () const
 Get the bounding volume.

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

void activate ()
 Handle a click by loading the url.


Private Member Functions

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

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

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


Private Attributes

sfstring description
 description exposedField

mfstring parameter
 parameter exposedField

mfstring url
 url exposedField


Friends

class anchor_class
 Class object for Anchor nodes.


Detailed Description

Represents Anchor node instances.


Constructor & Destructor Documentation

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

Construct.

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

Member Function Documentation

const bounding_volume & openvrml::vrml97_node::anchor_node::bounding_volume  )  const [virtual]
 

Get the bounding volume.

Returns:
the bounding volume associated with the node.

Reimplemented from openvrml::vrml97_node::group_node.

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

set_description eventIn handler.

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

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

set_parameter eventIn handler.

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

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

set_url eventIn handler.

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

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

Render the node.

Parameters:
viewer a Viewer.
context a rendering context.

Reimplemented from openvrml::vrml97_node::group_node.

anchor_node * openvrml::vrml97_node::anchor_node::to_anchor  )  const [virtual]
 

Cast to an anchor.

Returns:
a pointer to this node.

Reimplemented from openvrml::node.