Panda3D
 All Classes Functions Variables Enumerations
eggOptcharUserData.I
1 // Filename: eggOptcharUserData.I
2 // Created by: drose (18Jul03)
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: EggOptcharUserData::Constructor
18 // Access: Public
19 // Description:
20 ////////////////////////////////////////////////////////////////////
21 INLINE EggOptcharUserData::
22 EggOptcharUserData() {
23  _flags = 0;
24  _static_mat = LMatrix4d::ident_mat();
25  _static_value = 0.0;
26 }
27 
28 
29 ////////////////////////////////////////////////////////////////////
30 // Function: EggOptcharUserData::Copy constructor
31 // Access: Public
32 // Description:
33 ////////////////////////////////////////////////////////////////////
34 INLINE EggOptcharUserData::
35 EggOptcharUserData(const EggOptcharUserData &copy) :
36  EggUserData(copy),
37  _flags(copy._flags),
38  _static_mat(copy._static_mat),
39  _static_value(copy._static_value)
40 {
41 }
42 
43 
44 ////////////////////////////////////////////////////////////////////
45 // Function: EggOptcharUserData::Copy assignment operator
46 // Access: Public
47 // Description:
48 ////////////////////////////////////////////////////////////////////
49 INLINE void EggOptcharUserData::
50 operator = (const EggOptcharUserData &copy) {
51  EggUserData::operator = (copy);
52  _flags = copy._flags;
53  _static_mat = copy._static_mat;
54  _static_value = copy._static_value;
55 }
56 
57 ////////////////////////////////////////////////////////////////////
58 // Function: EggOptcharUserData::is_static
59 // Access: Public
60 // Description:
61 ////////////////////////////////////////////////////////////////////
62 INLINE bool EggOptcharUserData::
63 is_static() const {
64  return (_flags & F_static) != 0;
65 }
66 
67 ////////////////////////////////////////////////////////////////////
68 // Function: EggOptcharUserData::is_identity
69 // Access: Public
70 // Description:
71 ////////////////////////////////////////////////////////////////////
72 INLINE bool EggOptcharUserData::
73 is_identity() const {
74  return (_flags & F_identity) != 0;
75 }
76 
77 ////////////////////////////////////////////////////////////////////
78 // Function: EggOptcharUserData::is_empty
79 // Access: Public
80 // Description:
81 ////////////////////////////////////////////////////////////////////
82 INLINE bool EggOptcharUserData::
83 is_empty() const {
84  return (_flags & F_empty) != 0;
85 }
86 
87 ////////////////////////////////////////////////////////////////////
88 // Function: EggOptcharUserData::is_top
89 // Access: Public
90 // Description:
91 ////////////////////////////////////////////////////////////////////
92 INLINE bool EggOptcharUserData::
93 is_top() const {
94  return (_flags & F_top) != 0;
95 }
static const LMatrix4d & ident_mat()
Returns an identity matrix.
Definition: lmatrix.h:5168
This class contains extra user data which is piggybacked onto EggGroup objects for the purpose of the...
This is a base class for a user-defined data type to extend egg structures in processing code...
Definition: eggUserData.h:34