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_engine_dim4_impl_Frame_hxx
00035 #define esve_engine_dim4_impl_Frame_hxx
00036
00037 #include <esve/engine/dim4/Frame.hxx>
00038 #include <esve/message/impl/Update_Receiver.hxx>
00039 #include <memory>
00040
00041 namespace esve { namespace engine { namespace dim4 { namespace impl {
00042
00047
00048 class Frame
00049 : virtual public engine::dim4::Frame,
00050 virtual public message::impl::Update_Receiver
00051 {
00052 public:
00054 Frame() ;
00055
00057 explicit Frame( const Transform & ) ;
00058
00059 const engine::dim4::Transform &
00060 world_transform() const ;
00061
00062 void add( engine::dim4::Frame & ) ;
00063 void remove( engine::dim4::Frame & ) ;
00064 void remove_all() ;
00065
00066 void remove_parent() ;
00067
00069 const engine::dim4::Transform & peek_transform() const ;
00070 engine::dim4::Transform & peek_transform() ;
00072
00073 impl::Frame & frame() ;
00074 const impl::Frame & frame() const ;
00075
00076 ~Frame() ;
00077
00078 protected:
00079 void update() ;
00080 void update( double dt ) ;
00081
00082 private:
00083 Frame( const Frame & ) ;
00084 Frame & operator=( const Frame & ) ;
00085
00086 class Private ;
00087 const std::auto_ptr<Private> m ;
00088 } ;
00089
00090 }}}}
00091
00092 #endif
00093