Panda3D
physxScene.I
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 physxScene.I
10  * @author enn0x
11  * @date 2009-09-14
12  */
13 
14 /**
15  *
16  */
17 INLINE PhysxScene::
18 PhysxScene() : PhysxObject() {
19 
20  _debugNode = new PhysxDebugGeomNode();
21 }
22 
23 /**
24  *
25  */
26 INLINE PhysxScene::
27 ~PhysxScene() {
28 
29  _debugNode = nullptr;
30 }
31 
32 /**
33  *
34  */
35 INLINE void PhysxScene::
36 ls() const {
37 
38  ls(nout);
39 }
40 
41 /**
42  *
43  */
44 INLINE void PhysxScene::
45 ls(std::ostream &out, int indent_level) const {
46 
47  indent(out, indent_level) << get_type().get_name()
48  << " (at 0x" << this << ")\n";
49 
50  _materials.ls(out, indent_level);
51  _actors.ls(out, indent_level);
52  _joints.ls(out, indent_level);
53  _forcefields.ls(out, indent_level);
54  _ffgroups.ls(out, indent_level);
55  _controllers.ls(out, indent_level);
56  _vehicles.ls(out, indent_level);
57  _cloths.ls(out, indent_level);
58  _softbodies.ls(out, indent_level);
59 }
60 
61 /**
62  *
63  */
64 INLINE void PhysxScene::
65 set_controller_shape_hit_callback(PT(CallbackObject) cbobj) {
66 
67  _controller_report.set_shape_hit_callback(cbobj);
68 }
69 
70 /**
71  *
72  */
73 INLINE void PhysxScene::
74 set_controller_controller_hit_callback(PT(CallbackObject) cbobj) {
75 
76  _controller_report.set_controller_hit_callback(cbobj);
77 }
get_name
Returns the name of the type.
Definition: typeHandle.h:136
std::ostream & indent(std::ostream &out, int indent_level)
A handy function for doing text formatting.
Definition: indent.cxx:20
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.