RTFX  0.3
Real time special effects collaborative visualization and production library.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends
RTFXCustom.h
1 #ifndef __RTFX_CUSTOM__
2 #define __RTFX_CUSTOM__
3 
14 #include <iostream>
15 #include <sstream>
16 #include "RTFXObject.h"
17 #include "RTFX_API.h"
18 
19 namespace RTFX
20 {
26  class RTFXAPI RTFXCustom : public RTFXObject
27  {
28  public:
29 
32  RTFXCustom();
33 
36  RTFXCustom( bool _genID );
37 
39  ~RTFXCustom();
40 
42  RTFXCustom( const RTFXCustom &_c );
43 
47  void Update( RTFXObject * _cam );
48 
49 
51  void ToNative( AXISFRAME _frame );
52 
54  void FromNative( AXISFRAME _frame );
55 
57  void ChangeFrame( AXISFRAME _from, AXISFRAME _to );
58 
59  private:
60 
62  void Init( bool _genID );
63 
64  friend class boost::serialization::access;
65  template<class Archive>
66  void serialize( Archive &_ar, const unsigned int _version )
67  {
68  debug( ostringstream().flush() << "RTFXCustom::serialize" << endl );
69  _ar & boost::serialization::base_object<RTFXObject>( *this );
70  }
71  };
72 }
73 
74 BOOST_CLASS_EXPORT_KEY( RTFX::RTFXCustom )
75 
76 #endif
77