Panda3D

eggOptcharUserData.I

00001 // Filename: eggOptcharUserData.I
00002 // Created by:  drose (18Jul03)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 
00016 ////////////////////////////////////////////////////////////////////
00017 //     Function: EggOptcharUserData::Constructor
00018 //       Access: Public
00019 //  Description:
00020 ////////////////////////////////////////////////////////////////////
00021 INLINE EggOptcharUserData::
00022 EggOptcharUserData() {
00023   _flags = 0;
00024   _static_mat = LMatrix4d::ident_mat();
00025   _static_value = 0.0;
00026 }
00027 
00028 
00029 ////////////////////////////////////////////////////////////////////
00030 //     Function: EggOptcharUserData::Copy constructor
00031 //       Access: Public
00032 //  Description:
00033 ////////////////////////////////////////////////////////////////////
00034 INLINE EggOptcharUserData::
00035 EggOptcharUserData(const EggOptcharUserData &copy) : 
00036   EggUserData(copy),
00037   _flags(copy._flags),
00038   _static_mat(copy._static_mat),
00039   _static_value(copy._static_value)
00040 {
00041 }
00042 
00043 
00044 ////////////////////////////////////////////////////////////////////
00045 //     Function: EggOptcharUserData::Copy assignment operator
00046 //       Access: Public
00047 //  Description:
00048 ////////////////////////////////////////////////////////////////////
00049 INLINE void EggOptcharUserData::
00050 operator = (const EggOptcharUserData &copy) {
00051   EggUserData::operator = (copy);
00052   _flags = copy._flags;
00053   _static_mat = copy._static_mat;
00054   _static_value = copy._static_value;
00055 }
00056 
00057 ////////////////////////////////////////////////////////////////////
00058 //     Function: EggOptcharUserData::is_static
00059 //       Access: Public
00060 //  Description:
00061 ////////////////////////////////////////////////////////////////////
00062 INLINE bool EggOptcharUserData::
00063 is_static() const {
00064   return (_flags & F_static) != 0;
00065 }
00066 
00067 ////////////////////////////////////////////////////////////////////
00068 //     Function: EggOptcharUserData::is_identity
00069 //       Access: Public
00070 //  Description:
00071 ////////////////////////////////////////////////////////////////////
00072 INLINE bool EggOptcharUserData::
00073 is_identity() const {
00074   return (_flags & F_identity) != 0;
00075 }
00076 
00077 ////////////////////////////////////////////////////////////////////
00078 //     Function: EggOptcharUserData::is_empty
00079 //       Access: Public
00080 //  Description:
00081 ////////////////////////////////////////////////////////////////////
00082 INLINE bool EggOptcharUserData::
00083 is_empty() const {
00084   return (_flags & F_empty) != 0;
00085 }
00086 
00087 ////////////////////////////////////////////////////////////////////
00088 //     Function: EggOptcharUserData::is_top
00089 //       Access: Public
00090 //  Description:
00091 ////////////////////////////////////////////////////////////////////
00092 INLINE bool EggOptcharUserData::
00093 is_top() const {
00094   return (_flags & F_top) != 0;
00095 }
 All Classes Functions Variables Enumerations