Panda3D
 All Classes Functions Variables Enumerations
compassEffect.I
1 // Filename: compassEffect.I
2 // Created by: drose (16Jul02)
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 // Function: CompassEffect::Constructor
18 // Access: Private
19 // Description: Use CompassEffect::make() to construct a new
20 // CompassEffect object.
21 ////////////////////////////////////////////////////////////////////
22 INLINE CompassEffect::
23 CompassEffect() {
24  _properties = 0;
25 }
26 
27 ////////////////////////////////////////////////////////////////////
28 // Function: CompassEffect::get_reference
29 // Access: Published
30 // Description: Returns the reference node from which the
31 // CompassEffect inherits its transform. If this is
32 // empty, it means the root of the scene graph.
33 ////////////////////////////////////////////////////////////////////
34 INLINE const NodePath &CompassEffect::
35 get_reference() const {
36  return _reference;
37 }
38 
39 ////////////////////////////////////////////////////////////////////
40 // Function: CompassEffect::get_properties
41 // Access: Published
42 // Description:
43 
44 // Returns the bitmask of properties that this
45 // CompassEffect object inherits from its reference node
46 // (or from the root).
47 ////////////////////////////////////////////////////////////////////
48 INLINE int CompassEffect::
49 get_properties() const {
50  return _properties;
51 }
const NodePath & get_reference() const
Returns the reference node from which the CompassEffect inherits its transform.
Definition: compassEffect.I:35
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...
Definition: nodePath.h:165