00001 #ifndef OMK_TRAJECTORY_H 00002 #define OMK_TRAJECTORY_H 00003 00004 //----------------------------------------------------------------------------- 00005 #include "OMKSimplePoint.h" 00006 00007 namespace Wm4 00008 { 00009 template <class Real> class BSplineCurve3 ; 00010 typedef BSplineCurve3< float > BSplineCurve3f ; 00011 } 00012 namespace OMK 00013 { 00014 00015 //----------------------------------------------------------------------------- 00097 class OMKADDON_API Trajectory: public SimplePoint 00098 { 00099 DECLARE_OBJECT_FACTORY( Trajectory ) ; 00100 protected: 00101 00102 virtual void computeParameters() ; 00108 virtual bool loadParameters( const ConfigurationParameterDescriptor * node ) ; 00109 00111 std::vector< OMK::Type::Transform > _targets ; 00114 Wm4::BSplineCurve3f* _bSpline ; 00117 float _positionBetweenTargets ; 00119 int _currentTarget ; 00121 Wm4::Vector3f _refOrientation ; 00123 Type::Transform _refPosition ; 00125 bool _followOrientation ; 00126 00128 OMK::AttributeT< float > _step ; 00129 } ; 00130 00131 } // namespace OMK 00132 #endif // defined OMK_TRAJECTORY_H 00133 00134
Documentation generated on Mon Jun 9 11:45:57 2008 |
Generated with doxygen by Dimitri van Heesch , 1997-2007 |