Panda3D
 All Classes Functions Variables Enumerations
physxClothDesc.h
1 // Filename: physxClothDesc.h
2 // Created by: enn0x (30Mar10)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef PHYSXCLOTHDESC_H
16 #define PHYSXCLOTHDESC_H
17 
18 #include "pandabase.h"
19 #include "luse.h"
20 
21 #include "physxEnums.h"
22 #include "physx_includes.h"
23 
24 class PhysxClothMesh;
25 
26 ////////////////////////////////////////////////////////////////////
27 // Class : PhysxClothDesc
28 // Description : Descriptor for PhysxCloth.
29 ////////////////////////////////////////////////////////////////////
30 class EXPCL_PANDAPHYSX PhysxClothDesc : public PhysxEnums {
31 
32 PUBLISHED:
33  INLINE PhysxClothDesc();
34  INLINE ~PhysxClothDesc();
35 
36  INLINE void set_to_default();
37  INLINE bool is_valid() const;
38 
39  void set_cloth_mesh(PhysxClothMesh *mesh);
40 
41  void set_name(const char *name);
42  void set_global_pos(const LPoint3f &pos);
43  void set_global_mat(const LMatrix4f &mat);
44  void set_global_hpr(float h, float p, float r);
45  void set_thickness(float thickness);
46  void set_density(float density);
47  void set_bending_stiffness(float stiffness);
48  void set_stretching_stiffness(float stiffness);
49  void set_damping_coefficient(float damping);
50  void set_friction(float friction);
51  void set_pressure(float pressure);
52  void set_tear_factor(float tearFactor);
53  void set_solver_iterations(unsigned int interations);
54  void set_flag(PhysxClothFlag flag, bool value);
55 
56  const char *get_name() const;
57  LPoint3f get_global_pos() const;
58  LMatrix4f get_global_mat() const;
59  float get_thickness() const;
60  float get_density() const;
61  float get_bending_stiffness() const;
62  float get_stretching_stiffness() const;
63  float get_damping_coefficient() const;
64  float get_friction() const;
65  float get_pressure() const;
66  float get_tear_factor() const;
67  unsigned int get_solver_iterations() const;
68  bool get_flag(PhysxClothFlag flag) const;
69 
70 public:
71  NxClothDesc _desc;
72 
73 private:
74  string _name;
75 };
76 
77 #include "physxClothDesc.I"
78 
79 #endif // PHYSXCLOTHDESC_H
Descriptor for PhysxCloth.
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
Definition: lpoint3.h:99
This class exists just to provide scoping for the enums shared by PhysX classes.
Definition: physxEnums.h:357
This is a 4-by-4 transform matrix.
Definition: lmatrix.h:451