#include <eggMaterial.h>
Inheritance diagram for EggMaterial:
Public Types | |
enum | Equivalence { E_attributes = 0x001, E_mref_name = 0x002 } |
Public Member Functions | |
EggMaterial (const string &mref_name) | |
EggMaterial (const EggMaterial ©) | |
virtual void | write (ostream &out, int indent_level) const |
bool | is_equivalent_to (const EggMaterial &other, int eq) const |
bool | sorts_less_than (const EggMaterial &other, int eq) const |
INLINE void | set_diff (const Colorf &diff) |
INLINE void | clear_diff () |
INLINE bool | has_diff () const |
INLINE Colorf | get_diff () const |
INLINE void | set_amb (const Colorf &amb) |
INLINE void | clear_amb () |
INLINE bool | has_amb () const |
INLINE Colorf | get_amb () const |
INLINE void | set_emit (const Colorf &emit) |
INLINE void | clear_emit () |
INLINE bool | has_emit () const |
INLINE Colorf | get_emit () const |
INLINE void | set_spec (const Colorf &spec) |
INLINE void | clear_spec () |
INLINE bool | has_spec () const |
INLINE Colorf | get_spec () const |
INLINE void | set_shininess (double shininess) |
INLINE void | clear_shininess () |
INLINE bool | has_shininess () const |
INLINE double | get_shininess () const |
INLINE void | set_local (bool local) |
INLINE void | clear_local () |
INLINE bool | has_local () const |
INLINE bool | get_local () const |
virtual TypeHandle | get_type () const |
virtual TypeHandle | force_init_type () |
Static Public Member Functions | |
TypeHandle | get_class_type () |
void | init_type () |
Private Types | |
enum | Flags { F_diff = 0x001, F_amb = 0x002, F_emit = 0x004, F_spec = 0x008, F_shininess = 0x010, F_local = 0x020 } |
Private Attributes | |
Colorf | _diff |
Colorf | _amb |
Colorf | _emit |
Colorf | _spec |
double | _shininess |
bool | _local |
int | _flags |
Static Private Attributes | |
TypeHandle | _type_handle |
|
Definition at line 39 of file eggMaterial.h. |
|
Definition at line 78 of file eggMaterial.h. |
|
Definition at line 32 of file eggMaterial.cxx. References _flags. |
|
Definition at line 44 of file eggMaterial.cxx. |
|
|
|
|
|
|
|
|
|
|
|
|
|
Reimplemented from EggNode. Definition at line 108 of file eggMaterial.h. References EggNode::get_class_type(), and EggNode::init_type(). |
|
Referenced by is_equivalent_to(), sorts_less_than(), and write(). |
|
Reimplemented from EggNode. Definition at line 97 of file eggMaterial.h. Referenced by EggGroupNode::find_materials(), and EggPoolUniquifier::get_category(). |
|
Referenced by is_equivalent_to(), sorts_less_than(), and write(). |
|
Referenced by is_equivalent_to(), sorts_less_than(), and write(). |
|
Referenced by is_equivalent_to(), sorts_less_than(), and write(). |
|
Referenced by is_equivalent_to(), sorts_less_than(), and write(). |
|
Referenced by is_equivalent_to(), sorts_less_than(), and write(). |
|
Reimplemented from EggNode. Definition at line 105 of file eggMaterial.h. References EggNode::get_class_type(). |
|
Referenced by is_equivalent_to(), sorts_less_than(), and write(). |
|
Referenced by is_equivalent_to(), sorts_less_than(), and write(). |
|
Referenced by is_equivalent_to(), sorts_less_than(), and write(). |
|
Referenced by is_equivalent_to(), sorts_less_than(), and write(). |
|
Referenced by is_equivalent_to(), sorts_less_than(), and write(). |
|
Referenced by is_equivalent_to(), sorts_less_than(), and write(). |
|
Reimplemented from EggNode. Definition at line 100 of file eggMaterial.h. References EggNode::get_class_type(), EggNode::init_type(), and register_type(). Referenced by init_libegg(). |
|
Definition at line 151 of file eggMaterial.cxx. References _flags, E_attributes, E_mref_name, get_amb(), get_diff(), get_emit(), get_local(), Namable::get_name(), get_shininess(), get_spec(), has_amb(), has_diff(), has_emit(), has_local(), has_shininess(), and has_spec(). Referenced by EggMaterialCollection::create_unique_material(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 183 of file eggMaterial.cxx. References _flags, E_attributes, E_mref_name, get_amb(), get_diff(), get_emit(), get_local(), Namable::get_name(), get_shininess(), get_spec(), has_amb(), has_diff(), has_emit(), has_local(), has_shininess(), and has_spec(). Referenced by EggPolysetMaker::sorts_less(). |
|
Implements EggNode. Definition at line 64 of file eggMaterial.cxx. References get_amb(), get_diff(), get_emit(), get_local(), get_shininess(), get_spec(), has_amb(), has_diff(), has_emit(), has_local(), has_shininess(), has_spec(), indent(), and EggNamedObject::write_header(). |
|
Definition at line 88 of file eggMaterial.h. |
|
Definition at line 87 of file eggMaterial.h. |
|
Definition at line 89 of file eggMaterial.h. |
|
Definition at line 93 of file eggMaterial.h. Referenced by EggMaterial(), is_equivalent_to(), and sorts_less_than(). |
|
Definition at line 92 of file eggMaterial.h. |
|
Definition at line 91 of file eggMaterial.h. |
|
Definition at line 90 of file eggMaterial.h. |
|
Reimplemented from EggNode. Definition at line 23 of file eggMaterial.cxx. |