EggMaterial

from acron.egg import EggMaterial
class EggMaterial

Bases:

Bases: EggNode

Inheritance diagram

digraph inheritanceca8eed85c2 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "EggMaterial" [URL="acron.egg.EggMaterial.html#acron.egg.EggMaterial",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "EggNode" -> "EggMaterial" [arrowsize=0.75,style=""]; "EggNamedObject" [URL="acron.egg.EggNamedObject.html#acron.egg.EggNamedObject",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "EggObject" -> "EggNamedObject" [arrowsize=0.75,style=""]; "Namable" -> "EggNamedObject" [arrowsize=0.75,style=""]; "EggNode" [URL="acron.egg.EggNode.html#acron.egg.EggNode",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "EggNamedObject" -> "EggNode" [arrowsize=0.75,style=""]; "EggObject" [URL="acron.egg.EggObject.html#acron.egg.EggObject",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedReferenceCount" -> "EggObject" [arrowsize=0.75,style=""]; "Namable" [URL="acron.core.Namable.html#acron.core.Namable",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "Namable" [arrowsize=0.75,style=""]; "ReferenceCount" [URL="acron.core.ReferenceCount.html#acron.core.ReferenceCount",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "ReferenceCount" [arrowsize=0.75,style=""]; "TypedObject" [URL="acron.core.TypedObject.html#acron.core.TypedObject",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "TypedObject" [arrowsize=0.75,style=""]; "TypedReferenceCount" [URL="acron.core.TypedReferenceCount.html#acron.core.TypedReferenceCount",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedObject" -> "TypedReferenceCount" [arrowsize=0.75,style=""]; "ReferenceCount" -> "TypedReferenceCount" [arrowsize=0.75,style=""]; }
enum Equivalence
enumerator E_attributes = 1
enumerator E_mref_name = 2
__init__()
property amb → LColor
Getter

It is legal to call this even if has_amb() returns false. If so, it simply returns the default amb color.

Setter

property base → LColor
Getter

It is legal to call this even if has_base() returns false. If so, it simply returns the default base color.

Added in version 1.10.0.

Setter

Added in version 1.10.0.

clear_amb()
clear_base()

Added in version 1.10.0.

clear_diff()
clear_emit()
clear_ior()

Added in version 1.10.0.

clear_local()
clear_metallic()

Added in version 1.10.0.

clear_roughness()

Added in version 1.10.0.

clear_shininess()
clear_spec()
property diff → LColor
Getter

It is legal to call this even if has_diff() returns false. If so, it simply returns the default diff color.

Setter

property emit → LColor
Getter

It is legal to call this even if has_emit() returns false. If so, it simply returns the default emit color.

Setter

get_amb()

It is legal to call this even if has_amb() returns false. If so, it simply returns the default amb color.

get_base()

It is legal to call this even if has_base() returns false. If so, it simply returns the default base color.

Added in version 1.10.0.

static get_class_type()
get_diff()

It is legal to call this even if has_diff() returns false. If so, it simply returns the default diff color.

get_emit()

It is legal to call this even if has_emit() returns false. If so, it simply returns the default emit color.

get_ior()

Added in version 1.10.0.

get_local()
get_metallic()

Added in version 1.10.0.

get_roughness()

Added in version 1.10.0.

get_shininess()
get_spec()

It is legal to call this even if has_spec() returns false. If so, it simply returns the default spec color.

has_amb()
has_base()

Added in version 1.10.0.

has_diff()
has_emit()
has_ior()

Added in version 1.10.0.

has_local()
has_metallic()

Added in version 1.10.0.

has_roughness()

Added in version 1.10.0.

has_shininess()
has_spec()
property ior → float

Added in version 1.10.0.

is_equivalent_to()

Returns true if the two materials are equivalent in all relevant properties (according to eq), false otherwise.

The Equivalence parameter, eq, should be set to the bitwise OR of the following properties, according to what you consider relevant:

EggMaterial::E_attributes: All material attributes (diff, spec, etc.) except MRef name.

EggMaterial::E_mref_name: The MRef name.

property local → bool
property metallic → float

Added in version 1.10.0.

property roughness → float

Added in version 1.10.0.

set_amb()
set_base()

Added in version 1.10.0.

set_diff()
set_emit()
set_ior()

Added in version 1.10.0.

set_local()
set_metallic()

Added in version 1.10.0.

set_roughness()

Added in version 1.10.0.

set_shininess()
set_spec()
property shininess → float
sorts_less_than()

An ordering operator to compare two materials for sorting order. This imposes an arbitrary ordering useful to identify unique materials, according to the indicated Equivalence factor. See is_equivalent_to().

property spec → LColor
Getter

It is legal to call this even if has_spec() returns false. If so, it simply returns the default spec color.

Setter