Panda3D
physxScene.I
1 // Filename: physxScene.I
2 // Created by: enn0x (14Sep09)
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 
16 
17 ////////////////////////////////////////////////////////////////////
18 // Function: PhysxScene::Constructor
19 // Access: Published
20 // Description:
21 ////////////////////////////////////////////////////////////////////
22 INLINE PhysxScene::
23 PhysxScene() : PhysxObject() {
24 
25  _debugNode = new PhysxDebugGeomNode();
26 }
27 
28 ////////////////////////////////////////////////////////////////////
29 // Function: PhysxScene::Destructor
30 // Access: Published
31 // Description:
32 ////////////////////////////////////////////////////////////////////
33 INLINE PhysxScene::
34 ~PhysxScene() {
35 
36  _debugNode = NULL;
37 }
38 
39 ////////////////////////////////////////////////////////////////////
40 // Function: PhysxScene::ls
41 // Access: Published
42 // Description:
43 ////////////////////////////////////////////////////////////////////
44 INLINE void PhysxScene::
45 ls() const {
46 
47  ls(nout);
48 }
49 
50 ////////////////////////////////////////////////////////////////////
51 // Function: PhysxScene::ls
52 // Access: Published
53 // Description:
54 ////////////////////////////////////////////////////////////////////
55 INLINE void PhysxScene::
56 ls(ostream &out, int indent_level) const {
57 
58  indent(out, indent_level) << get_type().get_name()
59  << " (at 0x" << this << ")\n";
60 
61  _materials.ls(out, indent_level);
62  _actors.ls(out, indent_level);
63  _joints.ls(out, indent_level);
64  _forcefields.ls(out, indent_level);
65  _ffgroups.ls(out, indent_level);
66  _controllers.ls(out, indent_level);
67  _vehicles.ls(out, indent_level);
68  _cloths.ls(out, indent_level);
69  _softbodies.ls(out, indent_level);
70 }
71 
72 ////////////////////////////////////////////////////////////////////
73 // Function: PhysxScene::set_controller_shape_hit_callback
74 // Access: Published
75 // Description:
76 ////////////////////////////////////////////////////////////////////
77 INLINE void PhysxScene::
78 set_controller_shape_hit_callback(PT(CallbackObject) cbobj) {
79 
80  _controller_report.set_shape_hit_callback(cbobj);
81 }
82 
83 ////////////////////////////////////////////////////////////////////
84 // Function: PhysxScene::set_controller_controller_hit_callback
85 // Access: Published
86 // Description:
87 ////////////////////////////////////////////////////////////////////
88 INLINE void PhysxScene::
89 set_controller_controller_hit_callback(PT(CallbackObject) cbobj) {
90 
91  _controller_report.set_controller_hit_callback(cbobj);
92 }
93 
string get_name(TypedObject *object=(TypedObject *) NULL) const
Returns the name of the type.
Definition: typeHandle.I:132
This is a generic object that can be assigned to a callback at various points in the rendering proces...
Renderable geometry which represents visualizations of physics objects.