00001 /* -*- C++ -*- */ 00002 00003 /* COPYRIGHT 00004 * 00005 * This file is part of the Visual Effects Engine - VEE 00006 * 00007 * Read the "VEE-LICENSE" file for the license. 00008 * 00009 * Authors & Copyright: 00010 * 00011 * Tommi Ilmonen, Tuukka Heikura, Marko Myllymaa and 00012 * Janne Kontkanen 2001-2004 00013 * 00014 * Additional copyrights: Tekes 2003-2004 00015 * 00016 * firstname.lastname@hut.fi 00017 * 00018 */ 00019 00020 #ifndef VEE_TCB_SPLINE3_H 00021 #define VEE_TCB_SPLINE3_H 00022 00023 #include <WmlTCBSpline3.h> 00024 00025 #include <vee_vector3.h> 00026 00031 class VEE_TCBSpline3 : public Wml::TCBSpline3<float> 00032 { 00033 public: 00034 00035 VEE_TCBSpline3(int maxknots, 00036 float tension = 0.5, 00037 float continuity = 0.5, 00038 float bias = 0.5); 00039 virtual ~VEE_TCBSpline3(); 00040 00041 void setKnots(int n); 00042 int allocatedKnots() const { return m_allocatedKnots; } 00043 00044 void setKnotParams(int n, float tension, float continuity, float bias); 00045 void setKnotTime(int n, float t); 00046 void setPoint(int n, const VEE_Vector3 &); 00047 00048 void recalculate(); 00049 00050 protected: 00051 int m_allocatedKnots; 00052 }; 00053 00054 #endif