Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members

esve::components::dimn::Motion_Handler Class Reference

Base class for motion handlers (convenience). More...

#include <esve/components/dimn/Motion_Handler.hxx>

Inheritance diagram for esve::components::dimn::Motion_Handler:

esve::message::impl::Update_Receiver esve::kernel::Wake_State_Handler esve::message::Update_Receiver esve::kernel::impl::Handler esve::kernel::Handler esve::components::dim3::Keyboard_Rotation_Handler esve::components::dim3::Motion_Frame esve::components::dim4::Motion_Frame esve::components::dim4::Simple_Rotation_Handler esve::components::dimn::Supermouse_Motion_Handler esve::components::dimn::Differential_Motion_Handler< Transform, impl_Transform > esve::components::dimn::Differential_Motion_Handler< engine::dim3::Transform, engine::dim3::impl::Transform > esve::components::dimn::Differential_Motion_Handler< engine::dim4::Transform, engine::dim4::impl::Transform > esve::components::dim3::Oriented_Rotation_Handler esve::components::dim3::Rotation_Handler esve::components::dim4::Rotation_Handler List of all members.

Protected Member Functions

bool handle_wake ()
 The command to wake up.

bool handle_sleep ()
 The command to sleep.

virtual void update ()=0
 Receive the update() message.

virtual void update (double dt)=0
 Receive the update() message.

virtual bool handle_check_awake (bool currently_awake)=0
 Do you want to be awake?

bool awake () const
 Are we awake?


Detailed Description

Base class for motion handlers (convenience).

Since it is common to want synchronous time-delta updates along with the ability to wake up, this class is provided for convenience.

Your handler must connected in a manner to receive both synchronized updates and wake-state messages.


Member Function Documentation

virtual bool esve::kernel::Wake_State_Handler::handle_check_awake bool  currently_awake  )  [protected, pure virtual, inherited]
 

Do you want to be awake?

If currently awake, a return value of true indicates a desire to stay awake. If not currently awake, a return value of true indicates a desire to wake up.

Implemented in esve::kernel::Sync_Update_Server, esve::kernel::Wake_State_Server, esve::components::dim3::Keyboard_Rotation_Handler, esve::components::dim3::Motion_Frame, esve::components::dim4::Motion_Frame, esve::components::dim4::Simple_Rotation_Handler, esve::components::dimn::Differential_Motion_Handler< Transform, impl_Transform >, esve::components::dimn::Differential_Motion_Handler< engine::dim3::Transform, engine::dim3::impl::Transform >, and esve::components::dimn::Differential_Motion_Handler< engine::dim4::Transform, engine::dim4::impl::Transform >.


Generated on Tue May 30 11:40:55 2006 for esve by doxygen 1.3.4