ColorScaleAttrib
from panda3d.core import ColorScaleAttrib
- class ColorScaleAttrib
Bases:
RenderAttrib
Applies a scale to colors in the scene graph and on vertices.
Inheritance diagram
- __init__(*args, **kwargs)
- class_slot = 8
- getClassSlot()
C++ Interface: get_class_slot()
- getClassType()
C++ Interface: get_class_type()
- getScale()
C++ Interface: get_scale(ColorScaleAttrib self)
- /**
Returns the scale to be applied to colors.
*/
- get_class_slot()
C++ Interface: get_class_slot()
- get_class_type()
C++ Interface: get_class_type()
- get_scale()
C++ Interface: get_scale(ColorScaleAttrib self)
- /**
Returns the scale to be applied to colors.
*/
- hasAlphaScale()
C++ Interface: has_alpha_scale(ColorScaleAttrib self)
- /**
Returns true if the ColorScaleAttrib has a non-identity scale in the alpha
component (ignoring RGB), or false otherwise.
*/
- hasRgbScale()
C++ Interface: has_rgb_scale(ColorScaleAttrib self)
- /**
Returns true if the ColorScaleAttrib has a non-identity scale in the RGB
components (ignoring alpha), or false otherwise.
*/
- hasScale()
C++ Interface: has_scale(ColorScaleAttrib self)
- /**
Returns true if the ColorScaleAttrib has a non-identity scale, false
otherwise (in which case it might be an off attrib or an identity attrib).
*/
- has_alpha_scale()
C++ Interface: has_alpha_scale(ColorScaleAttrib self)
- /**
Returns true if the ColorScaleAttrib has a non-identity scale in the alpha
component (ignoring RGB), or false otherwise.
*/
- has_rgb_scale()
C++ Interface: has_rgb_scale(ColorScaleAttrib self)
- /**
Returns true if the ColorScaleAttrib has a non-identity scale in the RGB
components (ignoring alpha), or false otherwise.
*/
- has_scale()
C++ Interface: has_scale(ColorScaleAttrib self)
- /**
Returns true if the ColorScaleAttrib has a non-identity scale, false
otherwise (in which case it might be an off attrib or an identity attrib).
*/
- isIdentity()
C++ Interface: is_identity(ColorScaleAttrib self)
- /**
Returns true if the ColorScaleAttrib is an identity attrib, false if it is
either an off attrib or it has a scale.
*/
- isOff()
C++ Interface: is_off(ColorScaleAttrib self)
- /**
Returns true if the ColorScaleAttrib will ignore any color scales inherited
from above, false otherwise. This is not the same thing as !has_scale(); a
ColorScaleAttrib may have the “off” flag set and also have another scale
specified.
*/
- is_identity()
C++ Interface: is_identity(ColorScaleAttrib self)
- /**
Returns true if the ColorScaleAttrib is an identity attrib, false if it is
either an off attrib or it has a scale.
*/
- is_off()
C++ Interface: is_off(ColorScaleAttrib self)
- /**
Returns true if the ColorScaleAttrib will ignore any color scales inherited
from above, false otherwise. This is not the same thing as !has_scale(); a
ColorScaleAttrib may have the “off” flag set and also have another scale
specified.
*/
- make()
C++ Interface: make(const LVecBase4f scale)
- /**
Constructs a new ColorScaleAttrib object that indicates geometry should be
scaled by the indicated factor.
*/
- makeDefault()
C++ Interface: make_default()
- /**
Returns a RenderAttrib that corresponds to whatever the standard default
properties for render attributes of this type ought to be.
*/
- makeOff()
C++ Interface: make_off()
- /**
Constructs a new ColorScaleAttrib object that ignores any ColorScaleAttrib
inherited from above. You may also specify an additional color scale to
apply to geometry below (using set_scale()).
*/
- make_default()
C++ Interface: make_default()
- /**
Returns a RenderAttrib that corresponds to whatever the standard default
properties for render attributes of this type ought to be.
*/
- make_off()
C++ Interface: make_off()
- /**
Constructs a new ColorScaleAttrib object that ignores any ColorScaleAttrib
inherited from above. You may also specify an additional color scale to
apply to geometry below (using set_scale()).
*/
- scale