Home | Download | Screen shots | Discussion | Documentation
--- | --- | --- | --- | ---

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

# openvrml::vrml97_node::time_sensor_node Class Reference

Inheritance diagram for openvrml::vrml97_node::time_sensor_node:

[legend]
List of all members.

## Detailed Description

TimeSensor node instances.

## Public Member Functions

| time_sensor_node (const node_type &type, const boost::shared_ptr< openvrml::scope > &scope)
| Construct.
virtual | ~time_sensor_node () throw ()
| Destroy.
virtual time_sensor_node * | to_time_sensor () const
| Cast to a time_sensor_node.
void | update (double time)

## Private Member Functions

virtual void | do_initialize (double timestamp) throw (std::bad_alloc)
| Initialize.
virtual void | do_shutdown (double timestamp) throw ()
| Shut down.

## Private Attributes

set_cycle_interval_listener | set_cycle_interval_listener_
| set_cycleInterval eventIn handler.
sftime | cycle_interval_
| cycleInterval exposedField value.
sftime_emitter | cycle_interval_changed_emitter_
| cycleInterval_changed event emitter.
enabled_exposedfield | enabled_
| enabled exposedField.
exposedfield< sfbool > | loop_
| loop exposedField.
set_start_time_listener | set_start_time_listener_
| set_startTime event handler.
sftime | start_time_
| startTime exposedField value.
sftime_emitter | start_time_changed_emitter_
| startTime_changed event emitter.
exposedfield< sftime > | stop_time_
| stopTime exposedField.
sftime | cycle_time_
| cycleTime eventOut value.
sftime_emitter | cycle_time_emitter_
| cycleTime eventOut emitter.
sffloat | fraction_changed_
| fraction_changed eventOut value.
sffloat_emitter | fraction_changed_emitter_
| fraction_changed eventOut emitter.
sfbool | is_active_
| isActive eventOut value.
sfbool_emitter | is_active_emitter_
| isActive eventOut emitter.
sftime | time_
| time eventOut value.
sftime_emitter | time_emitter_
| time eventOut emitter.
double | lastTime
| The timestamp previously received.

## Friends

class | time_sensor_class
| Class object for TimeSensor nodes.

## Classes

class | enabled_exposedfield
| enabled exposedField implementation. More...
class | set_cycle_interval_listener
| set_cycleInterval eventIn handler. More...
class | set_start_time_listener
| set_startTime eventIn handler. More...

## Constructor & Destructor Documentation

openvrml::vrml97_node::time_sensor_node::time_sensor_node | ( | const node_type & | type,
|  | const boost::shared_ptr< openvrml::scope > & | scope
| ) |

Construct.

Parameters:

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

openvrml::vrml97_node::time_sensor_node::~time_sensor_node | ( |  | ) | throw ()`[virtual]`

| Destroy.

## Member Function Documentation

time_sensor_node * openvrml::vrml97_node::time_sensor_node::to_time_sensor | ( |  | ) | const`[virtual]`

Cast to a time_sensor_node.

Returns:
  a pointer to the object.

Reimplemented from openvrml::node.

void openvrml::vrml97_node::time_sensor_node::update | ( | double | time | ) |

| Generate timer events. If necessary, events prior to the timestamp (inTime) are generated to respect stopTimes and cycleIntervals. The timestamp should never be increased. This assumes the event loop delivers pending events in order (ascending time stamps). Should inTime be modified? Should ensure continuous events are delivered before discrete ones (such as cycleTime, isActive).

void openvrml::vrml97_node::time_sensor_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::time_sensor_node::do_shutdown | ( | double | timestamp | ) | throw ()`[private, virtual]`

Shut down.

Parameters:

  | timestamp | the current time.

Reimplemented from openvrml::node.

## Friends And Related Function Documentation

class openvrml::vrml97_node::time_sensor_node::time_sensor_class`[friend]`

| Class object for TimeSensor nodes.

## Member Data Documentation

time_sensor_node::set_cycle_interval_listener openvrml::vrml97_node::time_sensor_node::set_cycle_interval_listener_`[private]`

| set_cycleInterval eventIn handler.

sftime openvrml::vrml97_node::time_sensor_node::cycle_interval_`[private]`

| cycleInterval exposedField value.

sftime_emitter openvrml::vrml97_node::time_sensor_node::cycle_interval_changed_emitter_`[private]`

| cycleInterval_changed event emitter.

enabled_exposedfield openvrml::vrml97_node::time_sensor_node::enabled_`[private]`

| enabled exposedField.

exposedfield< sfbool > openvrml::vrml97_node::time_sensor_node::loop_`[private]`

| loop exposedField.

time_sensor_node::set_start_time_listener openvrml::vrml97_node::time_sensor_node::set_start_time_listener_`[private]`

| set_startTime event handler.

sftime openvrml::vrml97_node::time_sensor_node::start_time_`[private]`

| startTime exposedField value.

sftime_emitter openvrml::vrml97_node::time_sensor_node::start_time_changed_emitter_`[private]`

| startTime_changed event emitter.

exposedfield< sftime > openvrml::vrml97_node::time_sensor_node::stop_time_`[private]`

| stopTime exposedField.

sftime openvrml::vrml97_node::time_sensor_node::cycle_time_`[private]`

| cycleTime eventOut value.

sftime_emitter openvrml::vrml97_node::time_sensor_node::cycle_time_emitter_`[private]`

| cycleTime eventOut emitter.

sffloat openvrml::vrml97_node::time_sensor_node::fraction_changed_`[private]`

| fraction_changed eventOut value.

sffloat_emitter openvrml::vrml97_node::time_sensor_node::fraction_changed_emitter_`[private]`

| fraction_changed eventOut emitter.

sfbool openvrml::vrml97_node::time_sensor_node::is_active_`[private]`

| isActive eventOut value.

sfbool_emitter openvrml::vrml97_node::time_sensor_node::is_active_emitter_`[private]`

| isActive eventOut emitter.

sftime openvrml::vrml97_node::time_sensor_node::time_`[private]`

| time eventOut value.

sftime_emitter openvrml::vrml97_node::time_sensor_node::time_emitter_`[private]`

| time eventOut emitter.

double openvrml::vrml97_node::time_sensor_node::lastTime`[private]`

| The timestamp previously received.