00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef __CLO_MaterialBehavior_h__
00022 #define __CLO_MaterialBehavior_h__
00023
00024 #include <SIM/SIM_DataUtils.h>
00025 #include <SIM/SIM_OptionsUser.h>
00026 #include <SIM/SIM_DopDescription.h>
00027 #include <SIM/SIM_Data.h>
00028 #include "CLO_Names.h"
00029
00030 class PRM_Template;
00031
00032 class CLO_API CLO_MaterialBehavior : public SIM_Data, public SIM_OptionsUser
00033 {
00034 public:
00035
00036 explicit CLO_MaterialBehavior(const SIM_DataFactory* factory);
00037 virtual ~CLO_MaterialBehavior();
00038
00039
00040 GETSET_DATA_FUNCS_B(CLO_NAME_ENABLE_BEHAVIOR, Enable)
00041
00042
00043 GETSET_DATA_FUNCS_F(CLO_NAME_STIFFNESS, Stiffness)
00044 GETSET_DATA_FUNCS_F(CLO_NAME_DAMPING, Damping)
00045
00046
00047 GETSET_DATA_FUNCS_F(CLO_NAME_PLASTIC_FLOW_THRESHOLD, PlasticFlowThreshold)
00048 GETSET_DATA_FUNCS_F(CLO_NAME_PLASTIC_FLOW_RATE, PlasticFlowRate)
00049 GETSET_DATA_FUNCS_F(CLO_NAME_PLASTIC_HARDENING, PlasticHardening)
00050
00051
00052 GETSET_DATA_FUNCS_F(CLO_NAME_TEAR_THRESHOLD, TearThreshold);
00053
00054 static const SIM_DopDescription* getMaterialBehaviorDopDescription();
00055
00056 DECLARE_STANDARD_GETCASTTOTYPE();
00057 DECLARE_DATAFACTORY(CLO_MaterialBehavior, SIM_Data,
00058 "Cloth Material Behavior",
00059 getMaterialBehaviorDopDescription());
00060 };
00061
00062 #endif