Panda3D
physxActor.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 physxActor.I
10  * @author enn0x
11  * @date 2009-09-14
12  */
13 
14 /**
15  *
16  */
17 INLINE PhysxActor::
18 PhysxActor() : PhysxObject() {
19 
20 }
21 
22 /**
23  *
24  */
25 INLINE PhysxActor::
26 ~PhysxActor() {
27 
28 }
29 
30 /**
31  *
32  */
33 INLINE void PhysxActor::
34 ls() const {
35 
36  ls(nout);
37 }
38 
39 /**
40  *
41  */
42 INLINE void PhysxActor::
43 ls(std::ostream &out, int indent_level) const {
44 
45  indent(out, indent_level) << get_type().get_name()
46  << " " << _name
47  << " (at 0x" << this << ")";
48 
49  if (!_np.is_empty()) {
50  out << " NP:" << _np;
51  }
52 
53  if (_controller) {
54  out << " C:0x" << _controller;
55  }
56 
57  out << "\n";
58 
59  _shapes.ls(out, indent_level);
60 }
bool is_empty() const
Returns true if the NodePath contains no nodes.
Definition: nodePath.I:188
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