Panda3D
 All Classes Functions Variables Enumerations
bulletFilterCallbackData.h
1 // Filename: bulletFilterCallbackData.h
2 // Created by: enn0x (26Nov12)
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_FILTER_CALLBACK_DATA_H__
16 #define __BULLET_FILTER_CALLBACK_DATA_H__
17 
18 #include "pandabase.h"
19 #include "callbackData.h"
20 #include "callbackObject.h"
21 
22 #include "bullet_includes.h"
23 #include "bullet_utils.h"
24 
25 ////////////////////////////////////////////////////////////////////
26 // Class : BulletFilterCallbackData
27 // Description :
28 ////////////////////////////////////////////////////////////////////
29 class EXPCL_PANDABULLET BulletFilterCallbackData : public CallbackData {
30 
31 PUBLISHED:
32  INLINE BulletFilterCallbackData(PandaNode *node0,
33  PandaNode *node1);
34 
35  INLINE PandaNode *get_node_0() const;
36  INLINE PandaNode *get_node_1() const;
37 
38  INLINE void set_collide(bool collide);
39  INLINE bool get_collide() const;
40 
41 private:
42  PandaNode *_node0;
43  PandaNode *_node1;
44  bool _collide;
45 
46 ////////////////////////////////////////////////////////////////////
47 public:
48  static TypeHandle get_class_type() {
49  return _type_handle;
50  }
51  static void init_type() {
52  CallbackData::init_type();
53  register_type(_type_handle, "BulletFilterCallbackData",
54  CallbackData::get_class_type());
55  }
56  virtual TypeHandle get_type() const {
57  return get_class_type();
58  }
59  virtual TypeHandle force_init_type() {
60  init_type();
61  return get_class_type();
62  }
63 
64 private:
65  static TypeHandle _type_handle;
66 };
67 
68 #include "bulletFilterCallbackData.I"
69 
70 #endif // __BULLET_FILTER_CALLBACK_DATA_H__
A basic node of the scene graph or data graph.
Definition: pandaNode.h:72
This is a generic data block that is passed along to a CallbackObject when a callback is made...
Definition: callbackData.h:32
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:85