vee_operator_dt.h

Go to the documentation of this file.
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_OPERATOR_DT_H
00021 #define VEE_OPERATOR_DT_H
00022 
00023 #include <vee_operator.h>
00024 
00025 class VEE_OperatorDt : public VEE_Operator
00026 {
00027 public:
00028   VEE_OperatorDt(float addDt = 0.0, 
00029      bool  moveBack = true, 
00030      bool  resetAge = true,
00031      float maxStep = 0.05)
00032     : m_dt(addDt), m_maxStep(maxStep), m_moveBack(moveBack), 
00033       m_resetAge(resetAge)  {}
00034 
00035   virtual ~VEE_OperatorDt();
00036 
00037   virtual bool setValue(const char *, VEE_Value *);
00038 
00039   virtual void operate(VEE_Object *, float);
00040   virtual VEE_Operator * clone() const;
00041 
00042   void set(float addDt, bool moveBack, bool resetAge)
00043   { m_dt = addDt; m_moveBack = moveBack; m_resetAge = resetAge; }
00044 
00045   void setMaxStep(float step) { m_maxStep = step; }
00046 
00047 protected:
00048   float m_dt;
00049   float m_maxStep;
00050   bool  m_moveBack;
00051   bool  m_resetAge;
00052 };
00053 
00054 #endif

Generated on Mon Mar 12 21:09:01 2007 for VEE - The Visual Effects Engine by  doxygen 1.4.6