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

openvrml::vrml97_node::navigation_info_node Class Reference

NavigationInfo node instances. More...

Inheritance diagram for openvrml::vrml97_node::navigation_info_node:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

virtual ~navigation_info_node () throw ()
 Destroy.

virtual navigation_info_nodeto_navigation_info () const
 Cast to a navigation_info_node.

const float * avatar_size () const
 The avatar size.

bool headlight () const
 The headlight state.

float speed () const
 The speed.

float visibility_limit () const
 The visibility limit.


Private Member Functions

virtual void do_initialize (double timestamp) throw (std::bad_alloc)
 Initialize.

virtual void do_shutdown (double timestamp) throw ()
 Shut down.

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

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

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

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

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

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


Private Attributes

mffloat avatarSize
 avatarSize exposedField.

sfbool headlight_
 headlight exposedField.

sffloat speed_
 speed exposedField.

mfstring type
 type exposedField.

sffloat visibilityLimit
 visibilityLimit exposedField.

sfbool bound
 isBound eventOut.


Friends

class navigation_info_class
 Class object for NavigationInfo nodes.


Detailed Description

NavigationInfo node instances.


Constructor & Destructor Documentation

openvrml::vrml97_node::navigation_info_node::navigation_info_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.

Member Function Documentation

const float * openvrml::vrml97_node::navigation_info_node::avatar_size  )  const
 

The avatar size.

Returns:
the avatar size.

void openvrml::vrml97_node::navigation_info_node::do_initialize double  timestamp  )  throw (std::bad_alloc) [private, virtual]
 

Initialize.

Parameters:
timestamp the current time.
Exceptions:
std::bad_alloc if memory allocation fails.

Reimplemented from openvrml::node.

void openvrml::vrml97_node::navigation_info_node::do_shutdown double  timestamp  )  throw () [private, virtual]
 

Shut down.

Parameters:
timestamp the current time.

Reimplemented from openvrml::node.

bool openvrml::vrml97_node::navigation_info_node::headlight  )  const
 

The headlight state.

Returns:
true if the headlight is on; false otherwise.

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

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

set_bind eventIn handler.

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

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

set_headlight eventIn handler.

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

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

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

set_type 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::navigation_info_node::process_set_visibilityLimit const field_value value,
double  timestamp
throw (std::bad_cast) [private]
 

set_visibilityLimit eventIn handler.

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

float openvrml::vrml97_node::navigation_info_node::speed  )  const
 

The speed.

Returns:
the speed.

navigation_info_node * openvrml::vrml97_node::navigation_info_node::to_navigation_info  )  const [virtual]
 

Cast to a navigation_info_node.

Returns:
A pointer to the navigation_info_node.

Reimplemented from openvrml::node.

float openvrml::vrml97_node::navigation_info_node::visibility_limit  )  const
 

The visibility limit.

Returns:
the visibility limit.