Panda3D
 All Classes Functions Variables Enumerations
bulletSoftBodyShape.h
1 // Filename: bulletSoftBodyShape.h
2 // Created by: enn0x (06May10)
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 __BULLET_SOFT_BODY_SHAPE_H__
16 #define __BULLET_SOFT_BODY_SHAPE_H__
17 
18 #include "pandabase.h"
19 
20 #include "bullet_includes.h"
21 #include "bulletShape.h"
22 
23 class BulletSoftBodyNode;
24 
25 ////////////////////////////////////////////////////////////////////
26 // Class : BulletSoftBodyShape
27 // Description :
28 ////////////////////////////////////////////////////////////////////
29 class EXPCL_PANDABULLET BulletSoftBodyShape : public BulletShape {
30 
31 PUBLISHED:
32  INLINE ~BulletSoftBodyShape();
33 
34  BulletSoftBodyNode *get_body() const;
35 
36 public:
37  BulletSoftBodyShape(btSoftBodyCollisionShape *shapePtr);
38 
39  virtual btCollisionShape *ptr() const;
40 
41 private:
42  btSoftBodyCollisionShape *_shape;
43 
44 ////////////////////////////////////////////////////////////////////
45 public:
46  static TypeHandle get_class_type() {
47  return _type_handle;
48  }
49  static void init_type() {
50  BulletShape::init_type();
51  register_type(_type_handle, "BulletSoftBodyShape",
52  BulletShape::get_class_type());
53  }
54  virtual TypeHandle get_type() const {
55  return get_class_type();
56  }
57  virtual TypeHandle force_init_type() {
58  init_type();
59  return get_class_type();
60  }
61 
62 private:
63  static TypeHandle _type_handle;
64 };
65 
66 #include "bulletSoftBodyShape.I"
67 
68 #endif // __BULLET_SOFT_BODY_SHAPE_H__
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:85