96 lines
2.9 KiB
Plaintext
96 lines
2.9 KiB
Plaintext
// Filename: eggOptcharUserData.I
|
|
// Created by: drose (18Jul03)
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
//
|
|
// PANDA 3D SOFTWARE
|
|
// Copyright (c) Carnegie Mellon University. All rights reserved.
|
|
//
|
|
// All use of this software is subject to the terms of the revised BSD
|
|
// license. You should have received a copy of this license along
|
|
// with this source code in a file named "LICENSE."
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: EggOptcharUserData::Constructor
|
|
// Access: Public
|
|
// Description:
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE EggOptcharUserData::
|
|
EggOptcharUserData() {
|
|
_flags = 0;
|
|
_static_mat = LMatrix4d::ident_mat();
|
|
_static_value = 0.0;
|
|
}
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: EggOptcharUserData::Copy constructor
|
|
// Access: Public
|
|
// Description:
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE EggOptcharUserData::
|
|
EggOptcharUserData(const EggOptcharUserData ©) :
|
|
EggUserData(copy),
|
|
_flags(copy._flags),
|
|
_static_mat(copy._static_mat),
|
|
_static_value(copy._static_value)
|
|
{
|
|
}
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: EggOptcharUserData::Copy assignment operator
|
|
// Access: Public
|
|
// Description:
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE void EggOptcharUserData::
|
|
operator = (const EggOptcharUserData ©) {
|
|
EggUserData::operator = (copy);
|
|
_flags = copy._flags;
|
|
_static_mat = copy._static_mat;
|
|
_static_value = copy._static_value;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: EggOptcharUserData::is_static
|
|
// Access: Public
|
|
// Description:
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE bool EggOptcharUserData::
|
|
is_static() const {
|
|
return (_flags & F_static) != 0;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: EggOptcharUserData::is_identity
|
|
// Access: Public
|
|
// Description:
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE bool EggOptcharUserData::
|
|
is_identity() const {
|
|
return (_flags & F_identity) != 0;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: EggOptcharUserData::is_empty
|
|
// Access: Public
|
|
// Description:
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE bool EggOptcharUserData::
|
|
is_empty() const {
|
|
return (_flags & F_empty) != 0;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: EggOptcharUserData::is_top
|
|
// Access: Public
|
|
// Description:
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE bool EggOptcharUserData::
|
|
is_top() const {
|
|
return (_flags & F_top) != 0;
|
|
}
|