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 __CLO_PhysicalParms_h__ 00017 #define __CLO_PhysicalParms_h__ 00018 00019 #include "CLO_API.h" 00020 #include "CLO_Names.h" 00021 #include <SIM/SIM_PhysicalParms.h> 00022 00023 /// 00024 /// This class contains physical attributes that apply to cloth objects, 00025 /// such as surface density, thickness and friction. 00026 /// 00027 /// Unlike RBD, this isn't really the "state" of the simulation; 00028 /// this isn't a SIM_Motion or SIM_Position subclass. 00029 /// The positions and velocities of the individual cloth points 00030 /// are stored in the simulation geometry. 00031 /// 00032 00033 class CLO_API CLO_PhysicalParms : public SIM_PhysicalParms 00034 { 00035 public: 00036 GETSET_DATA_FUNCS_B(CLO_NAME_COMPUTE_MASS, ComputeMass); 00037 GETSET_DATA_FUNCS_F(CLO_NAME_SURFACE_DENSITY, SurfaceDensity); 00038 GETSET_DATA_FUNCS_F(CLO_NAME_MASS, Mass); 00039 00040 protected: 00041 explicit CLO_PhysicalParms(const SIM_DataFactory *factory); 00042 virtual ~CLO_PhysicalParms(); 00043 00044 private: 00045 static const SIM_DopDescription *getPhysicalParmsDopDescription(); 00046 00047 DECLARE_STANDARD_GETCASTTOTYPE(); 00048 DECLARE_DATAFACTORY(CLO_PhysicalParms, 00049 SIM_PhysicalParms, 00050 "Cloth Physical Parameters", 00051 getPhysicalParmsDopDescription()); 00052 }; 00053 00054 #endif
1.5.9