#include <eggAttributes.h>
Inheritance diagram for EggAttributes:
Public Member Functions | |
EggAttributes () | |
EggAttributes (const EggAttributes ©) | |
EggAttributes & | operator= (const EggAttributes ©) |
virtual | ~EggAttributes () |
INLINE bool | has_normal () const |
INLINE const Normald & | get_normal () const |
INLINE void | set_normal (const Normald &normal) |
INLINE void | clear_normal () |
INLINE bool | has_uv () const |
INLINE const TexCoordd & | get_uv () const |
INLINE void | set_uv (const TexCoordd &texCoord) |
INLINE void | clear_uv () |
INLINE bool | has_color () const |
INLINE Colorf | get_color () const |
INLINE void | set_color (const Colorf &Color) |
INLINE void | clear_color () |
void | write (ostream &out, int indent_level) const |
bool | sorts_less_than (const EggAttributes &other) const |
void | transform (const LMatrix4d &mat) |
Static Public Member Functions | |
TypeHandle | get_class_type () |
void | init_type () |
Public Attributes | |
EggMorphNormalList | _dnormals |
EggMorphTexCoordList | _duvs |
EggMorphColorList | _drgbas |
Private Types | |
enum | Flags { F_has_normal = 0x001, F_has_uv = 0x002, F_has_color = 0x004 } |
Private Attributes | |
int | _flags |
Normald | _normal |
TexCoordd | _uv |
Colorf | _color |
Static Private Attributes | |
TypeHandle | _type_handle |
|
Definition at line 72 of file eggAttributes.h. |
|
Definition at line 36 of file eggAttributes.cxx. References _flags. |
|
Definition at line 46 of file eggAttributes.cxx. |
|
Definition at line 73 of file eggAttributes.cxx. |
|
|
|
Referenced by EggGroupNode::r_collect_vertex_normals(), EggGroupNode::recompute_polygon_normals(), and EggGroupNode::strip_normals(). |
|
|
|
Reimplemented in EggCurve, EggNurbsCurve, EggNurbsSurface, EggPoint, EggPolygon, EggPrimitive, EggSurface, and EggVertex. Definition at line 85 of file eggAttributes.h. Referenced by EggVertex::force_init_type(), EggPrimitive::force_init_type(), EggVertex::get_type(), EggPrimitive::get_type(), EggVertex::init_type(), and EggPrimitive::init_type(). |
|
Referenced by EggLoader::make_indexed_primitive(), EggLoader::make_nonindexed_primitive(), EggLoader::setup_bucket(), EggPolysetMaker::sorts_less(), and write(). |
|
Referenced by EggLoader::make_indexed_primitive(), EggLoader::make_nonindexed_primitive(), and write(). |
|
Referenced by EggLoader::make_indexed_primitive(), EggLoader::make_nonindexed_primitive(), EggPrimitive::r_apply_texmats(), and write(). |
|
Referenced by EggLoader::make_indexed_primitive(), EggLoader::make_nonindexed_primitive(), EggLoader::setup_bucket(), EggPolysetMaker::sorts_less(), sorts_less_than(), and write(). |
|
|
Referenced by EggLoader::make_indexed_primitive(), EggLoader::make_nonindexed_primitive(), EggPrimitive::r_apply_texmats(), sorts_less_than(), and write(). |
|
Reimplemented in EggCurve, EggNurbsCurve, EggNurbsSurface, EggPoint, EggPolygon, EggPrimitive, EggSurface, and EggVertex. Definition at line 88 of file eggAttributes.h. References register_type(). Referenced by EggVertex::force_init_type(), EggPrimitive::force_init_type(), init_libegg(), EggVertex::init_type(), and EggPrimitive::init_type(). |
|
Definition at line 56 of file eggAttributes.cxx. References _color, _dnormals, _drgbas, _duvs, _flags, _normal, and _uv. Referenced by EggVertex::operator=(). |
|
|
|
Referenced by EggGroupNode::do_compute_vertex_normals(). |
|
Referenced by EggPrimitive::r_apply_texmats(). |
|
Definition at line 129 of file eggAttributes.cxx. References _color, EggParameters::_color_threshold, _dnormals, _drgbas, _duvs, _flags, _normal, EggParameters::_normal_threshold, _uv, EggParameters::_uv_threshold, egg_parameters, has_color(), has_normal(), and has_uv(). Referenced by EggVertex::sorts_less_than(). |
|
Reimplemented in EggVertex. Definition at line 177 of file eggAttributes.cxx. References _dnormals, _normal, EggMorphList< EggMorphNormal >::begin(), EggMorphList< EggMorphNormal >::end(), has_normal(), n, and EggMorph< Parameter >::set_offset(). Referenced by EggPrimitive::r_flatten_transforms(), EggPrimitive::r_transform(), and EggVertex::transform(). |
|
Reimplemented in EggNurbsCurve, EggNurbsSurface, EggPoint, EggPolygon, and EggVertex. Definition at line 84 of file eggAttributes.cxx. References _dnormals, _drgbas, _duvs, EggMorphList< EggMorphColor >::empty(), EggMorphList< EggMorphTexCoord >::empty(), EggMorphList< EggMorphNormal >::empty(), get_color(), get_normal(), get_uv(), has_color(), has_normal(), has_uv(), indent(), EggMorphList< EggMorphColor >::write(), EggMorphList< EggMorphTexCoord >::write(), and EggMorphList< EggMorphNormal >::write(). Referenced by EggVertex::write(), and EggPrimitive::write_body(). |
|
Definition at line 81 of file eggAttributes.h. Referenced by operator=(), and sorts_less_than(). |
|
Definition at line 67 of file eggAttributes.h. Referenced by EggLoader::make_indexed_primitive(), operator=(), sorts_less_than(), transform(), and write(). |
|
Definition at line 69 of file eggAttributes.h. Referenced by EggLoader::make_indexed_primitive(), operator=(), sorts_less_than(), and write(). |
|
Definition at line 68 of file eggAttributes.h. Referenced by EggLoader::make_indexed_primitive(), operator=(), sorts_less_than(), and write(). |
|
Definition at line 78 of file eggAttributes.h. Referenced by EggAttributes(), operator=(), and sorts_less_than(). |
|
Definition at line 79 of file eggAttributes.h. Referenced by operator=(), sorts_less_than(), and transform(). |
|
Reimplemented in EggCurve, EggNurbsCurve, EggNurbsSurface, EggPoint, EggPolygon, EggPrimitive, EggSurface, and EggVertex. Definition at line 27 of file eggAttributes.cxx. |
|
Definition at line 80 of file eggAttributes.h. Referenced by operator=(), and sorts_less_than(). |