Panda3D
|
00001 // Filename: physxSoftBodyMesh.h 00002 // Created by: enn0x (12Sep10) 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 PHYSXSOFTBODYMESH_H 00016 #define PHYSXSOFTBODYMESH_H 00017 00018 #include "pandabase.h" 00019 00020 #include "physxObject.h" 00021 #include "physx_includes.h" 00022 00023 //////////////////////////////////////////////////////////////////// 00024 // Class : PhysxSoftBodyMesh 00025 // Description : 00026 //////////////////////////////////////////////////////////////////// 00027 class EXPCL_PANDAPHYSX PhysxSoftBodyMesh : public PhysxObject { 00028 00029 PUBLISHED: 00030 unsigned int get_reference_count() const; 00031 00032 //////////////////////////////////////////////////////////////////// 00033 PUBLISHED: 00034 void release(); 00035 00036 INLINE void ls() const; 00037 INLINE void ls(ostream &out, int indent_level=0) const; 00038 00039 public: 00040 INLINE PhysxSoftBodyMesh(); 00041 INLINE ~PhysxSoftBodyMesh(); 00042 00043 INLINE NxSoftBodyMesh *ptr() const { return _ptr; }; 00044 00045 void link(NxSoftBodyMesh *meshPtr); 00046 void unlink(); 00047 00048 private: 00049 NxSoftBodyMesh *_ptr; 00050 00051 //////////////////////////////////////////////////////////////////// 00052 public: 00053 static TypeHandle get_class_type() { 00054 return _type_handle; 00055 } 00056 static void init_type() { 00057 PhysxObject::init_type(); 00058 register_type(_type_handle, "PhysxSoftBodyMesh", 00059 PhysxObject::get_class_type()); 00060 } 00061 virtual TypeHandle get_type() const { 00062 return get_class_type(); 00063 } 00064 virtual TypeHandle force_init_type() { 00065 init_type(); 00066 return get_class_type(); 00067 } 00068 00069 private: 00070 static TypeHandle _type_handle; 00071 }; 00072 00073 #include "physxSoftBodyMesh.I" 00074 00075 #endif // PHYSXSOFTBODYMESH_H