00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00033
00034 #ifndef esve_components_dim3_Motion_Frame_hxx
00035 #define esve_components_dim3_Motion_Frame_hxx
00036
00037 #include <esve/components/dimn/Motion_Handler.hxx>
00038 #include <esve/engine/dim3/impl/Frame.hxx>
00039 #include <esve/engine/dim3/Transform.hxx>
00040 #include <esve/types/pure.hxx>
00041
00042 namespace esve { namespace components { namespace dim3 {
00043
00048
00049 class Motion_Frame
00050 : public components::dimn::Motion_Handler,
00051 public engine::dim3::impl::Frame
00052 {
00053 public:
00054 Motion_Frame() ;
00055
00058 void rotate_velocity( types::real dtheta_dt,
00059 const types::pure & axis,
00060 const engine::dim3::Transform & basis =
00061 engine::dim3::Transform::IDENTITY ) ;
00062
00064 void translate_velocity( const types::pure & dtranslate_dt,
00065 const engine::dim3::Transform & basis =
00066 engine::dim3::Transform::IDENTITY ) ;
00067
00068 ~Motion_Frame() ;
00069
00070 protected:
00071 bool handle_check_awake( bool currently_awake ) ;
00072
00073 void update() ;
00074 void update( double dt ) ;
00075
00076 private:
00077 Motion_Frame( const Motion_Frame & ) ;
00078 Motion_Frame & operator=( const Motion_Frame & ) ;
00079
00080 types::pure m_dtranslate_dt ;
00081 types::real m_dtheta_dt ;
00082 types::pure m_axis ;
00083 const engine::dim3::Transform* m_translate_basis ;
00084 const engine::dim3::Transform* m_rotate_basis ;
00085 } ;
00086
00087 }}}
00088
00089 #endif
00090