EggAttributes

from panda3d.egg import EggAttributes
class EggAttributes

Bases: DTOOL_SUPER_BASE

The set of attributes that may be applied to vertices as well as polygons, such as surface normal and color.

This class cannot inherit from EggObject, because it causes problems at the EggPolygon level with multiple appearances of the EggObject base class. And making EggObject a virtual base class is just no fun.

Inheritance diagram

Inheritance diagram of EggAttributes

__init__(*args, **kwargs)
assign()

C++ Interface: assign(const EggAttributes self, const EggAttributes copy)

/**

*/

clearColor()

C++ Interface: clear_color(const EggAttributes self)

/**

*/

clearNormal()

C++ Interface: clear_normal(const EggAttributes self)

/**

*/

clear_color()

C++ Interface: clear_color(const EggAttributes self)

/**

*/

clear_normal()

C++ Interface: clear_normal(const EggAttributes self)

/**

*/

compareTo()

C++ Interface: compare_to(EggAttributes self, const EggAttributes other)

/**
  • An ordering operator to compare two vertices for sorting order. This

  • imposes an arbitrary ordering useful to identify unique vertices.

*/

compare_to()

C++ Interface: compare_to(EggAttributes self, const EggAttributes other)

/**
  • An ordering operator to compare two vertices for sorting order. This

  • imposes an arbitrary ordering useful to identify unique vertices.

*/

copyColor()

C++ Interface: copy_color(const EggAttributes self, const EggAttributes other)

/**
  • Sets this color to be the same as the other’s, include morphs. If the

  • other has no color, this clears the color.

*/

copyNormal()

C++ Interface: copy_normal(const EggAttributes self, const EggAttributes other)

/**
  • Sets this normal to be the same as the other’s, include morphs. If the

  • other has no normal, this clears the normal.

*/

copy_color()

C++ Interface: copy_color(const EggAttributes self, const EggAttributes other)

/**
  • Sets this color to be the same as the other’s, include morphs. If the

  • other has no color, this clears the color.

*/

copy_normal()

C++ Interface: copy_normal(const EggAttributes self, const EggAttributes other)

/**
  • Sets this normal to be the same as the other’s, include morphs. If the

  • other has no normal, this clears the normal.

*/

getClassType()

C++ Interface: get_class_type()

getColor()

C++ Interface: get_color(EggAttributes self)

/**
  • Returns the color set on this particular attribute. If there is no color

  • set, returns white.

*/

getNormal()

C++ Interface: get_normal(EggAttributes self)

/**

*/

get_class_type()

C++ Interface: get_class_type()

get_color()

C++ Interface: get_color(EggAttributes self)

/**
  • Returns the color set on this particular attribute. If there is no color

  • set, returns white.

*/

get_normal()

C++ Interface: get_normal(EggAttributes self)

/**

*/

hasColor()

C++ Interface: has_color(EggAttributes self)

/**

*/

hasNormal()

C++ Interface: has_normal(EggAttributes self)

/**

*/

has_color()

C++ Interface: has_color(EggAttributes self)

/**

*/

has_normal()

C++ Interface: has_normal(EggAttributes self)

/**

*/

matchesColor()

C++ Interface: matches_color(EggAttributes self, const EggAttributes other)

/**
  • Returns true if this color matches that of the other EggAttributes object,

  • include the morph list.

*/

matchesNormal()

C++ Interface: matches_normal(EggAttributes self, const EggAttributes other)

/**
  • Returns true if this normal matches that of the other EggAttributes object,

  • include the morph list.

*/

matches_color()

C++ Interface: matches_color(EggAttributes self, const EggAttributes other)

/**
  • Returns true if this color matches that of the other EggAttributes object,

  • include the morph list.

*/

matches_normal()

C++ Interface: matches_normal(EggAttributes self, const EggAttributes other)

/**
  • Returns true if this normal matches that of the other EggAttributes object,

  • include the morph list.

*/

setColor()

C++ Interface: set_color(const EggAttributes self, const LVecBase4f Color)

/**

*/

setNormal()

C++ Interface: set_normal(const EggAttributes self, const LVector3d normal)

/**

*/

set_color()

C++ Interface: set_color(const EggAttributes self, const LVecBase4f Color)

/**

*/

set_normal()

C++ Interface: set_normal(const EggAttributes self, const LVector3d normal)

/**

*/

sortsLessThan()

C++ Interface: sorts_less_than(EggAttributes self, const EggAttributes other)

/**
  • An ordering operator to compare two vertices for sorting order. This

  • imposes an arbitrary ordering useful to identify unique vertices.

*/

sorts_less_than()

C++ Interface: sorts_less_than(EggAttributes self, const EggAttributes other)

/**
  • An ordering operator to compare two vertices for sorting order. This

  • imposes an arbitrary ordering useful to identify unique vertices.

*/

transform()

C++ Interface: transform(const EggAttributes self, const LMatrix4d mat)

/**
  • Applies the indicated transformation matrix to the attributes.

*/

write()

C++ Interface: write(EggAttributes self, ostream out, int indent_level)

/**
  • Writes the attributes to the indicated output stream in Egg format.

*/