Panda3D

Loading...
Searching...
No Matches
bulletFilterCallbackData.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 bulletFilterCallbackData.h
10 * @author enn0x
11 * @date 2012-11-26
12 */
13
14#ifndef __BULLET_FILTER_CALLBACK_DATA_H__
15#define __BULLET_FILTER_CALLBACK_DATA_H__
16
17#include "pandabase.h"
18#include "callbackData.h"
19#include "callbackObject.h"
20
21#include "bullet_includes.h"
22#include "bullet_utils.h"
23
24/**
25 *
26 */
27 class EXPCL_PANDABULLET BulletFilterCallbackData : public CallbackData {
28
29PUBLISHED:
30 INLINE BulletFilterCallbackData(PandaNode *node0,
31 PandaNode *node1);
32
33 INLINE PandaNode *get_node_0() const;
34 INLINE PandaNode *get_node_1() const;
35
36 INLINE void set_collide(bool collide);
37 INLINE bool get_collide() const;
38
39 MAKE_PROPERTY(node_0, get_node_0);
40 MAKE_PROPERTY(node_1, get_node_1);
41 MAKE_PROPERTY(collide, get_collide, set_collide);
42
43 private:
44 PandaNode *_node0;
45 PandaNode *_node1;
46 bool _collide;
47
48 public:
49 static TypeHandle get_class_type() {
50 return _type_handle;
51 }
52 static void init_type() {
53 CallbackData::init_type();
54 register_type(_type_handle, "BulletFilterCallbackData",
55 CallbackData::get_class_type());
56 }
57 virtual TypeHandle get_type() const {
58 return get_class_type();
59 }
60 virtual TypeHandle force_init_type() {
61 init_type();
62 return get_class_type();
63 }
64
65 private:
66 static TypeHandle _type_handle;
67};
68
69#include "bulletFilterCallbackData.I"
70
71#endif // __BULLET_FILTER_CALLBACK_DATA_H__
bulletFilterCallbackData.I
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
bullet_includes.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
bullet_utils.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
callbackData.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
callbackObject.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PandaNode
A basic node of the scene graph or data graph.
Definition pandaNode.h:65
TypeHandle
TypeHandle is the identifier used to differentiate C++ class types.
Definition typeHandle.h:81
pandabase.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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