ColorScaleAttrib¶
from acron.core import ColorScaleAttrib
- class ColorScaleAttrib¶
Bases:
Bases:
RenderAttribApplies a scale to colors in the scene graph and on vertices.
Inheritance diagram
digraph inheritance0fa06e0fd7 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "ColorScaleAttrib" [URL="acron.core.ColorScaleAttrib.html#acron.core.ColorScaleAttrib",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "RenderAttrib" -> "ColorScaleAttrib" [arrowsize=0.75,style=""]; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,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=""]; "RenderAttrib" [URL="acron.core.RenderAttrib.html#acron.core.RenderAttrib",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedWritableReferenceCount" -> "RenderAttrib" [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=""]; "TypedWritable" [URL="acron.core.TypedWritable.html#acron.core.TypedWritable",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedObject" -> "TypedWritable" [arrowsize=0.75,style=""]; "TypedWritableReferenceCount" [URL="acron.core.TypedWritableReferenceCount.html#acron.core.TypedWritableReferenceCount",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedWritable" -> "TypedWritableReferenceCount" [arrowsize=0.75,style=""]; "ReferenceCount" -> "TypedWritableReferenceCount" [arrowsize=0.75,style=""]; }- static get_class_slot()¶
- static get_class_type()¶
- get_scale()¶
Returns the scale to be applied to colors.
- has_alpha_scale()¶
Returns true if the
ColorScaleAttribhas a non-identity scale in the alpha component (ignoring RGB), or false otherwise.
- has_rgb_scale()¶
Returns true if the
ColorScaleAttribhas a non-identity scale in the RGB components (ignoring alpha), or false otherwise.
- has_scale()¶
Returns true if the
ColorScaleAttribhas a non-identity scale, false otherwise (in which case it might be an off attrib or an identity attrib).
- is_identity()¶
Returns true if the
ColorScaleAttribis an identity attrib, false if it is either an off attrib or it has a scale.
- is_off()¶
Returns true if the
ColorScaleAttribwill ignore any color scales inherited from above, false otherwise. This is not the same thing as !has_scale(); aColorScaleAttribmay have the “off” flag set and also have another scale specified.
- static make()¶
Constructs a new
ColorScaleAttribobject that indicates geometry should be scaled by the indicated factor.
- static make_default()¶
Returns a
RenderAttribthat corresponds to whatever the standard default properties for render attributes of this type ought to be.
- static make_identity()¶
Constructs an identity scale attrib.
- static make_off()¶
Constructs a new
ColorScaleAttribobject that ignores anyColorScaleAttribinherited from above. You may also specify an additional color scale to apply to geometry below (usingset_scale()).
- set_scale()¶
Returns a new
ColorScaleAttrib, just like this one, but with the scale changed to the indicated value.