PolylightNode

class PolylightNode

Bases: AcronNode

A PolylightNode

Inheritance diagram

digraph inheritance7e261818ee { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "AcronNode" [URL="acron.core.AcronNode.html#acron.core.AcronNode",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedWritableReferenceCount" -> "AcronNode" [arrowsize=0.75,style=""]; "Namable" -> "AcronNode" [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=""]; "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=""]; "PolylightNode" [URL="acron.core.PolylightNode.html#acron.core.PolylightNode",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "AcronNode" -> "PolylightNode" [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=""]; "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=""]; }
enum Attenuation_Type
enumerator ALINEAR = 0
enumerator AQUADRATIC = 1
enum Flicker_Type
enumerator FRANDOM = 0
enumerator FSIN = 1
enumerator FCUSTOM = 2
PolylightNode.__eq__()

Comparison methods

PolylightNode.__init__()

Use PolylightNode() to construct a new PolylightNode object.

PolylightNode.__lt__()
PolylightNode.__ne__()
PolylightNode.compare_to()

Returns a number less than zero if this PolylightNode sorts before the other one, greater than zero if it sorts after, or zero if they are equivalent.

Two PolylightNodes are considered equivalent if they consist of exactly the same properties Otherwise, they are different; different PolylightNodes will be ranked in a consistent but undefined ordering; the ordering is useful only for placing the PolylightNodes in a sorted container like an STL set.

PolylightNode.disable()

Disable this light

PolylightNode.enable()

Enable this light

PolylightNode.flicker_off()

Turn flickering off

PolylightNode.flicker_on()

Set flickering to true so at every loop this light’s color is varied based on flicker_type

PolylightNode.get_a0()

Get the quadratic attenuation factor a0 fd = 1 / ( a0 + a1*distance + a2*distance*distance)

PolylightNode.get_a1()

Get the quadratic attenuation factor a1 fd = 1 / ( a0 + a1*distance + a2*distance*distance)

PolylightNode.get_a2()

Get the quadratic attenuation factor a2 fd = 1 / ( a0 + a1*distance + a2*distance*distance)

PolylightNode.get_attenuation()

Get “linear” or “quadratic” attenuation type

static PolylightNode.get_class_type()
PolylightNode.get_color()

Returns the light’s color as LColor

PolylightNode.get_color_scenegraph()

This differs from get_color in that when applying the light color we need to make sure that a color flattening external to the PolylightNode is not ignored.

PolylightNode.get_flicker_type()

Returns FRANDOM or FSIN

PolylightNode.get_freq()

Get frequency of sin flicker

PolylightNode.get_offset()

Get the offset value for the random and sin flicker variations

PolylightNode.get_pos()

Returns position as a LPoint3

PolylightNode.get_radius()

Get radius of the spherical light volume

PolylightNode.get_scale()

Get the scale value for the random and sin flicker variations

PolylightNode.get_step_size()

Get the step size for the sin function in flicker This is the increment size for the value supplied to the sin function

PolylightNode.is_enabled()

Is this light is enabled/disabled?

PolylightNode.is_flickering()

Check is this light is flickering

PolylightNode.set_a0()

Set the quadratic attenuation factor a0 fd = 1 / ( a0 + a1*distance + a2*distance*distance)

PolylightNode.set_a1()

Set the quadratic attenuation factor a1 fd = 1 / ( a0 + a1*distance + a2*distance*distance)

PolylightNode.set_a2()

Set the quadratic attenuation factor a2 fd = 1 / ( a0 + a1*distance + a2*distance*distance)

PolylightNode.set_attenuation()

Set ALINEAR or AQUADRATIC attenuation

PolylightNode.set_color()

Set the light’s color…

Set the light’s color… 3 floats between 0 and 1

PolylightNode.set_flicker_type()

Flicker type can be FRANDOM or FSIN At a later point there might be a FCUSTOM Custom flicker will be a set of fix points recorded by animating the light’s intensity

PolylightNode.set_freq()

Set frequency of sin flicker

PolylightNode.set_offset()

Set the offset value for the random and sin flicker variations… used to tweak the flicker This value is added to the variation

PolylightNode.set_pos()

Set this light’s position

Set this light’s position

PolylightNode.set_radius()

Set radius of the spherical light volume

PolylightNode.set_scale()

Set the scale value for the random and sin flicker variations… used to tweak the flicker This value is multiplied with the variation

PolylightNode.set_step_size()

Set the step size for the sin function in flicker This is the increment size for the value supplied to the sin function