Panda3D

physxClothDesc.h

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 "luse.h"
00020 
00021 #include "physxEnums.h"
00022 #include "physx_includes.h"
00023 
00024 class PhysxClothMesh;
00025 
00026 ////////////////////////////////////////////////////////////////////
00027 //       Class : PhysxClothDesc
00028 // Description : Descriptor for PhysxCloth.
00029 ////////////////////////////////////////////////////////////////////
00030 class EXPCL_PANDAPHYSX PhysxClothDesc : public PhysxEnums {
00031 
00032 PUBLISHED:
00033   INLINE PhysxClothDesc();
00034   INLINE ~PhysxClothDesc();
00035 
00036   INLINE void set_to_default();
00037   INLINE bool is_valid() const;
00038 
00039   void set_cloth_mesh(PhysxClothMesh *mesh);
00040 
00041   void set_name(const char *name);
00042   void set_global_pos(const LPoint3f &pos);
00043   void set_global_mat(const LMatrix4f &mat);
00044   void set_global_hpr(float h, float p, float r);
00045   void set_thickness(float thickness);
00046   void set_density(float density);
00047   void set_bending_stiffness(float stiffness);
00048   void set_stretching_stiffness(float stiffness);
00049   void set_damping_coefficient(float damping);
00050   void set_friction(float friction);
00051   void set_pressure(float pressure);
00052   void set_tear_factor(float tearFactor);
00053   void set_solver_iterations(unsigned int interations);
00054   void set_flag(PhysxClothFlag flag, bool value);
00055 
00056   const char *get_name() const;
00057   LPoint3f get_global_pos() const;
00058   LMatrix4f get_global_mat() const;
00059   float get_thickness() const;
00060   float get_density() const;
00061   float get_bending_stiffness() const;
00062   float get_stretching_stiffness() const;
00063   float get_damping_coefficient() const;
00064   float get_friction() const;
00065   float get_pressure() const;
00066   float get_tear_factor() const;
00067   unsigned int get_solver_iterations() const;
00068   bool get_flag(PhysxClothFlag flag) const;
00069 
00070 public:
00071   NxClothDesc _desc;
00072 
00073 private:
00074   string _name;  
00075 };
00076 
00077 #include "physxClothDesc.I"
00078 
00079 #endif // PHYSXCLOTHDESC_H
 All Classes Functions Variables Enumerations