00001 /* 00002 * PROPRIETARY INFORMATION. This software is proprietary to 00003 * Side Effects Software Inc., and is not to be reproduced, 00004 * transmitted, or disclosed in any way without written permission. 00005 * 00006 * Produced by: 00007 * Side Effects Software Inc. 00008 * 477 Richmond Street West, Suite 1001 00009 * Toronto, Ontario 00010 * Canada M5V 3E7 00011 * 416-504-9876 00012 */ 00013 00014 #ifndef __SIM_BlendFactor_h__ 00015 #define __SIM_BlendFactor_h__ 00016 00017 #include "SIM_API.h" 00018 #include "SIM_OptionsUser.h" 00019 #include "SIM_DataUtils.h" 00020 00021 /// This data type stres a single float value which is used by the Blend 00022 /// Solver to control the interpolation between the sources. 00023 class SIM_API SIM_BlendFactor : public SIM_Data, 00024 public SIM_OptionsUser 00025 { 00026 public: 00027 /// Control the translation attribute of the blended data. 00028 GETSET_DATA_FUNCS_F(SIM_NAME_BLENDFACTOR, BlendFactor); 00029 /// Specifies whether the solver should use the last blended value as 00030 /// its starting point each frame. The alternative is to use the value 00031 /// calculated just by this solver on the last timestep. 00032 GETSET_DATA_FUNCS_B(SIM_NAME_USEBLENDEDDATA, UseBlendedData); 00033 00034 protected: 00035 explicit SIM_BlendFactor(const SIM_DataFactory *factory); 00036 virtual ~SIM_BlendFactor(); 00037 00038 private: 00039 static const SIM_DopDescription *getBlendFactorDopDescription(); 00040 00041 DECLARE_STANDARD_GETCASTTOTYPE(); 00042 DECLARE_DATAFACTORY(SIM_BlendFactor, 00043 SIM_Data, 00044 "Blend Factor", 00045 getBlendFactorDopDescription()); 00046 }; 00047 00048 #endif 00049
1.5.9