Panda3D
Loading...
Searching...
No Matches
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 */
17INLINE EggOptcharUserData::
18EggOptcharUserData() {
19 _flags = 0;
20 _static_mat = LMatrix4d::ident_mat();
21 _static_value = 0.0;
22}
23
24
25/**
26 *
27 */
28INLINE EggOptcharUserData::
29EggOptcharUserData(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 */
41INLINE void EggOptcharUserData::
42operator = (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 */
52INLINE bool EggOptcharUserData::
53is_static() const {
54 return (_flags & F_static) != 0;
55}
56
57/**
58 *
59 */
60INLINE bool EggOptcharUserData::
61is_identity() const {
62 return (_flags & F_identity) != 0;
63}
64
65/**
66 *
67 */
68INLINE bool EggOptcharUserData::
69is_empty() const {
70 return (_flags & F_empty) != 0;
71}
72
73/**
74 *
75 */
76INLINE bool EggOptcharUserData::
77is_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