Panda3D
panda
src
bullet
bulletSoftBodyShape.h
Go to the documentation of this file.
1
/**
2
* PANDA 3D SOFTWARE
3
* Copyright (c) Carnegie Mellon University. All rights reserved.
4
*
5
* All use of this software is subject to the terms of the revised BSD
6
* license. You should have received a copy of this license along
7
* with this source code in a file named "LICENSE."
8
*
9
* @file bulletSoftBodyShape.h
10
* @author enn0x
11
* @date 2010-05-06
12
*/
13
14
#ifndef __BULLET_SOFT_BODY_SHAPE_H__
15
#define __BULLET_SOFT_BODY_SHAPE_H__
16
17
#include "
pandabase.h
"
18
19
#include "
bullet_includes.h
"
20
#include "
bulletShape.h
"
21
22
class
BulletSoftBodyNode
;
23
24
/**
25
*
26
*/
27
class
EXPCL_PANDABULLET
BulletSoftBodyShape
:
public
BulletShape
{
28
29
PUBLISHED:
30
INLINE ~
BulletSoftBodyShape
();
31
32
BulletSoftBodyNode
*get_body()
const
;
33
34
MAKE_PROPERTY(body, get_body);
35
36
public
:
37
BulletSoftBodyShape
(btSoftBodyCollisionShape *shapePtr);
38
39
virtual
btCollisionShape *ptr()
const
;
40
41
private
:
42
btSoftBodyCollisionShape *_shape;
43
44
public
:
45
static
TypeHandle
get_class_type() {
46
return
_type_handle;
47
}
48
static
void
init_type() {
49
BulletShape::init_type();
50
register_type
(_type_handle,
"BulletSoftBodyShape"
,
51
BulletShape::get_class_type());
52
}
53
virtual
TypeHandle
get_type()
const
{
54
return
get_class_type();
55
}
56
virtual
TypeHandle
force_init_type() {
57
init_type();
58
return
get_class_type();
59
}
60
61
private
:
62
static
TypeHandle
_type_handle;
63
};
64
65
#include "
bulletSoftBodyShape.I
"
66
67
#endif // __BULLET_SOFT_BODY_SHAPE_H__
register_type
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
Definition:
register_type.I:22
pandabase.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
bullet_includes.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
BulletSoftBodyShape
Definition:
bulletSoftBodyShape.h:27
bulletSoftBodyShape.I
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
BulletShape
Definition:
bulletShape.h:27
bulletShape.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
TypeHandle
TypeHandle is the identifier used to differentiate C++ class types.
Definition:
typeHandle.h:81
BulletSoftBodyNode
Definition:
bulletSoftBodyNode.h:71
Generated on Wed Jan 23 2019 21:39:52 for Panda3D by
1.8.15