00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef VRS_SG_PHYSICALMODELSETTINGS_H
00026 #define VRS_SG_PHYSICALMODELSETTINGS_H
00027
00028 #include <vrs/sharedobj.h>
00029
00030 namespace VRS {
00031
00032 class PhysicalModel;
00033
00040 class VRS_CORE_API PhysicalModelSettings : public SharedObj {
00041
00042 public:
00043
00044 PhysicalModelSettings(bool preserveViewDirection);
00045
00047 void apply(SO<PhysicalModel> target) const;
00048
00050 void setViscosity(double viscosity = .5);
00051 double getViscosity() const;
00052 void setSpringStrength(double strength = 50.0);
00053 double getSpringStrength() const;
00054 double getMeterDefinition() const;
00055 void setMeterDefinition(double factor = 1.0);
00056
00061 void setPreserveViewDirection(bool yesNo);
00062 bool getPreserveViewDirection() const;
00063
00064 VRS_TYPEINFO(PhysicalModelSettings, SharedObj);
00065 VRS_SERIALIZABLE(PhysicalModelSettings);
00066
00067 private:
00068
00069 PhysicalModelSettings();
00070 double viscosity_;
00071 double springStrength_;
00072 double meterDefinition_;
00073 bool preserveViewDirection_;
00074 };
00075
00076 }
00077
00078 #endif // VRS_SG_PHYSICALMODELSETTINGS_H