Home | Download | Screen shots | Discussion | Documentation |
---|
#include <openvrml/node.h>
Inheritance diagram for openvrml::pointing_device_sensor_node:
Public Member Functions | |
virtual | ~pointing_device_sensor_node ()=0 throw () |
Destroy. | |
void | activate (double timestamp, bool over, bool active, const double(&point)[3]) |
Convey a pointing device state change. | |
Protected Member Functions | |
pointing_device_sensor_node (const node_type &type, const boost::shared_ptr< openvrml::scope > &scope) | |
Construct. | |
Private Member Functions | |
virtual void | do_activate (double timestamp, bool over, bool active, const double(&point)[3])=0 |
Called to convey a pointing device state change. | |
virtual pointing_device_sensor_node * | to_pointing_device_sensor () throw () |
Cast to a pointing_device_sensor_node . |
openvrml::pointing_device_sensor_node::~pointing_device_sensor_node | ( | ) | throw () [pure virtual] |
Destroy.
openvrml::pointing_device_sensor_node::pointing_device_sensor_node | ( | const node_type & | type, | |
const boost::shared_ptr< openvrml::scope > & | scope | |||
) | [protected] |
void openvrml::pointing_device_sensor_node::activate | ( | double | timestamp, | |
bool | over, | |||
bool | active, | |||
const double & | point[3] | |||
) |
Convey a pointing device state change.
This function delegates to pointing_device_sensor_node::do_activate
.
[in] | timestamp | the current time. |
[in] | over | whether the pointing device is over the geometry affected by the pointing device sensor. |
[in] | active | whether the pointing device is "active"; e.g., whether a mouse button is currently depressed. |
[in] | point | the position of the pointer on the affected geometry. |
void openvrml::pointing_device_sensor_node::do_activate | ( | double | timestamp, | |
bool | over, | |||
bool | active, | |||
const double & | point[3] | |||
) | [private, pure virtual] |
Called to convey a pointing device state change.
[in] | timestamp | the current time. |
[in] | over | whether the pointing device is over the geometry affected by the pointing device sensor. |
[in] | active | whether the pointing device is "active"; e.g., whether a mouse button is currently depressed. |
[in] | point | the position of the pointer on the affected geometry. |
openvrml::pointing_device_sensor_node * openvrml::pointing_device_sensor_node::to_pointing_device_sensor | ( | ) | throw () [private, virtual] |
Cast to a pointing_device_sensor_node
.
For internal use only.
Reimplemented from openvrml::node.