14#ifndef EGGATTRIBUTES_H
15#define EGGATTRIBUTES_H
36 EggAttributes(
const EggAttributes ©);
37 EggAttributes &operator = (
const EggAttributes ©);
38 virtual ~EggAttributes();
40 INLINE
bool has_normal()
const;
41 INLINE
const LNormald &get_normal()
const;
42 INLINE
void set_normal(
const LNormald &normal);
43 INLINE
void clear_normal();
45 INLINE
void copy_normal(
const EggAttributes &other);
47 INLINE
bool has_color()
const;
49 INLINE
void set_color(
const LColor &Color);
50 INLINE
void clear_color();
52 INLINE
void copy_color(
const EggAttributes &other);
54 void write(std::ostream &out,
int indent_level)
const;
56 int compare_to(
const EggAttributes &other)
const;
60 EggMorphNormalList _dnormals;
61 EggMorphColorList _drgbas;
78 static void init_type() {
bool matches_normal(const EggAttributes &other) const
Returns true if this normal matches that of the other EggAttributes object, include the morph list.
void transform(const LMatrix4d &mat)
Applies the indicated transformation matrix to the attributes.
void copy_normal(const EggAttributes &other)
Sets this normal to be the same as the other's, include morphs.
int compare_to(const EggAttributes &other) const
An ordering operator to compare two vertices for sorting order.
void copy_color(const EggAttributes &other)
Sets this color to be the same as the other's, include morphs.
LColor get_color() const
Returns the color set on this particular attribute.
bool matches_color(const EggAttributes &other) const
Returns true if this color matches that of the other EggAttributes object, include the morph list.
void write(std::ostream &out, int indent_level) const
Writes the attributes to the indicated output stream in Egg format.
bool sorts_less_than(const EggAttributes &other) const
An ordering operator to compare two vertices for sorting order.
This class is intended to be the base class of all objects in Panda that might be allocated and delet...
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.