Home | Download | Screen shots | Discussion | Documentation |
---|
For internal use only.
Unlike most exposedFields which are implemented either with an instance of the exposedfield template or a class derived from it, MovieTexture's speed exposedField is implemented using the listener and emitter primitives. This is because unlike most exposedFields, changes to the speed field (that is, set_speed events) are ignored if the node is not active.
Public Member Functions | |
set_speed_listener (movie_texture_node &node) | |
Constructor. | |
virtual | ~set_speed_listener () throw () |
Destroy. | |
Private Member Functions | |
virtual void | do_process_event (const sffloat &speed, double timestamp) throw (std::bad_alloc) |
Process event. |
openvrml::vrml97_node::movie_texture_node::set_speed_listener::set_speed_listener | ( | movie_texture_node & | node | ) | [explicit] |
openvrml::vrml97_node::movie_texture_node::set_speed_listener::~set_speed_listener | ( | ) | throw () [virtual] |
Destroy.
void openvrml::vrml97_node::movie_texture_node::set_speed_listener::do_process_event | ( | const sffloat & | speed, | |
double | timestamp | |||
) | throw (std::bad_alloc) [private, virtual] |
Process event.
speed | speed value. | |
timestamp | the current time. |
std::bad_alloc | if memory allocation fails. |