Panda3D
|
00001 // Filename: physxClothDesc.h 00002 // Created by: enn0x (30Mar10) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #ifndef PHYSXCLOTHDESC_H 00016 #define PHYSXCLOTHDESC_H 00017 00018 #include "pandabase.h" 00019 #include "lpoint3.h" 00020 #include "lmatrix.h" 00021 00022 #include "physxEnums.h" 00023 #include "physx_includes.h" 00024 00025 class PhysxClothMesh; 00026 00027 //////////////////////////////////////////////////////////////////// 00028 // Class : PhysxClothDesc 00029 // Description : Descriptor for PhysxCloth. 00030 //////////////////////////////////////////////////////////////////// 00031 class EXPCL_PANDAPHYSX PhysxClothDesc : public PhysxEnums { 00032 00033 PUBLISHED: 00034 INLINE PhysxClothDesc(); 00035 INLINE ~PhysxClothDesc(); 00036 00037 INLINE void set_to_default(); 00038 INLINE bool is_valid() const; 00039 00040 void set_cloth_mesh(PhysxClothMesh *mesh); 00041 00042 void set_name(const char *name); 00043 void set_global_pos(const LPoint3f &pos); 00044 void set_global_mat(const LMatrix4f &mat); 00045 void set_global_hpr(float h, float p, float r); 00046 void set_thickness(float thickness); 00047 void set_density(float density); 00048 void set_bending_stiffness(float stiffness); 00049 void set_stretching_stiffness(float stiffness); 00050 void set_damping_coefficient(float damping); 00051 void set_friction(float friction); 00052 void set_pressure(float pressure); 00053 void set_tear_factor(float tearFactor); 00054 void set_solver_iterations(unsigned int interations); 00055 void set_flag(PhysxClothFlag flag, bool value); 00056 00057 const char *get_name() const; 00058 LPoint3f get_global_pos() const; 00059 LMatrix4f get_global_mat() const; 00060 float get_thickness() const; 00061 float get_density() const; 00062 float get_bending_stiffness() const; 00063 float get_stretching_stiffness() const; 00064 float get_damping_coefficient() const; 00065 float get_friction() const; 00066 float get_pressure() const; 00067 float get_tear_factor() const; 00068 unsigned int get_solver_iterations() const; 00069 bool get_flag(PhysxClothFlag flag) const; 00070 00071 public: 00072 NxClothDesc _desc; 00073 00074 private: 00075 string _name; 00076 }; 00077 00078 #include "physxClothDesc.I" 00079 00080 #endif // PHYSXCLOTHDESC_H