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 * 00008 * David Pritchard 00009 * Side Effects Software Inc. 00010 * 123 Front Street West, Suite 1401 00011 * Toronto, Ontario 00012 * Canada M5J 2M2 00013 * 416-504-9876 00014 */ 00015 00016 #ifndef __RBD_Visualization_h__ 00017 #define __RBD_Visualization_h__ 00018 00019 #include "RBD_API.h" 00020 #include <SIM/SIM_Visualization.h> 00021 00022 /// Class for inspecting the state of a cloth simulation. 00023 /// Using prim/point/vertex attributes on the cloth geometry, it generates 00024 /// guide geometry showing internal forces, energy and impacts. 00025 /// 00026 class RBD_API RBD_Visualization : public SIM_Visualization 00027 { 00028 protected: 00029 explicit RBD_Visualization(const SIM_DataFactory *factory); 00030 virtual ~RBD_Visualization(); 00031 00032 virtual bool getShowImpacts() const; 00033 virtual UT_Vector3 getImpactColor() const; 00034 virtual fpreal getImpactScale() const; 00035 virtual bool getImpactShowAsVector() const { return true; } 00036 virtual bool getShowSubstepImpacts() const; 00037 00038 private: 00039 static const SIM_DopDescription *getVisualizationDopDescription(); 00040 00041 DECLARE_STANDARD_GETCASTTOTYPE(); 00042 DECLARE_DATAFACTORY(RBD_Visualization, 00043 SIM_Data, 00044 "RBD Visualization", 00045 getVisualizationDopDescription()); 00046 }; 00047 #endif
1.5.9