Panda3D
eggOptcharUserData.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 eggOptcharUserData.I
10  * @author drose
11  * @date 2003-07-18
12  */
13 
14 /**
15  *
16  */
17 INLINE EggOptcharUserData::
18 EggOptcharUserData() {
19  _flags = 0;
20  _static_mat = LMatrix4d::ident_mat();
21  _static_value = 0.0;
22 }
23 
24 
25 /**
26  *
27  */
28 INLINE EggOptcharUserData::
29 EggOptcharUserData(const EggOptcharUserData &copy) :
30  EggUserData(copy),
31  _flags(copy._flags),
32  _static_mat(copy._static_mat),
33  _static_value(copy._static_value)
34 {
35 }
36 
37 
38 /**
39  *
40  */
41 INLINE void EggOptcharUserData::
42 operator = (const EggOptcharUserData &copy) {
43  EggUserData::operator = (copy);
44  _flags = copy._flags;
45  _static_mat = copy._static_mat;
46  _static_value = copy._static_value;
47 }
48 
49 /**
50  *
51  */
52 INLINE bool EggOptcharUserData::
53 is_static() const {
54  return (_flags & F_static) != 0;
55 }
56 
57 /**
58  *
59  */
60 INLINE bool EggOptcharUserData::
61 is_identity() const {
62  return (_flags & F_identity) != 0;
63 }
64 
65 /**
66  *
67  */
68 INLINE bool EggOptcharUserData::
69 is_empty() const {
70  return (_flags & F_empty) != 0;
71 }
72 
73 /**
74  *
75  */
76 INLINE bool EggOptcharUserData::
77 is_top() const {
78  return (_flags & F_top) != 0;
79 }
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:29