### Navigation

- index
- modules |
- next |
- previous |
- pycollada 0.4 documentation »
- API Reference »

# collada.light.PointLight

class `collada.light.``PointLight`(id, color, constant_att=None, linear_att=None, quad_att=None, zfar=None, xmlnode=None)

  Bases: `collada.light.Light`

  Point light as defined in COLLADA tag <point>.

  digraph inheritance62d63eb89a { rankdir=LR; size="8.0, 12.0"; "DaeObject" [style="setlinewidth(0.5)",URL="collada.common.DaeObject.html#collada.common.DaeObject",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",tooltip="This class is the abstract interface to all collada objects.",height=0.25,shape=box,fontsize=10]; "Light" [style="setlinewidth(0.5)",URL="collada.light.Light.html#collada.light.Light",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",tooltip="Base light class holding data from <light> tags.",height=0.25,shape=box,fontsize=10]; "DaeObject" -> "Light" [arrowsize=0.5,style="setlinewidth(0.5)"]; "DirectionalLight" [style="setlinewidth(0.5)",URL="collada.light.DirectionalLight.html#collada.light.DirectionalLight",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",tooltip="Directional light as defined in COLLADA tag <directional> tag.",height=0.25,shape=box,fontsize=10]; "Light" -> "DirectionalLight" [arrowsize=0.5,style="setlinewidth(0.5)"]; "AmbientLight" [style="setlinewidth(0.5)",URL="collada.light.AmbientLight.html#collada.light.AmbientLight",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",tooltip="Ambient light as defined in COLLADA tag <ambient>.",height=0.25,shape=box,fontsize=10]; "Light" -> "AmbientLight" [arrowsize=0.5,style="setlinewidth(0.5)"]; "PointLight" [style="setlinewidth(0.5)",URL="#collada.light.PointLight",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",tooltip="Point light as defined in COLLADA tag <point>.",height=0.25,shape=box,fontsize=10]; "Light" -> "PointLight" [arrowsize=0.5,style="setlinewidth(0.5)"]; "SpotLight" [style="setlinewidth(0.5)",URL="collada.light.SpotLight.html#collada.light.SpotLight",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",tooltip="Spot light as defined in COLLADA tag <spot>.",height=0.25,shape=box,fontsize=10]; "Light" -> "SpotLight" [arrowsize=0.5,style="setlinewidth(0.5)"]; "BoundLight" [style="setlinewidth(0.5)",URL="collada.light.BoundLight.html#collada.light.BoundLight",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",tooltip="Base class for bound lights",height=0.25,shape=box,fontsize=10]; "BoundPointLight" [style="setlinewidth(0.5)",URL="collada.light.BoundPointLight.html#collada.light.BoundPointLight",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",tooltip="Point light bound to a scene with transformation. This gets created when a",height=0.25,shape=box,fontsize=10]; "BoundLight" -> "BoundPointLight" [arrowsize=0.5,style="setlinewidth(0.5)"]; "BoundSpotLight" [style="setlinewidth(0.5)",URL="collada.light.BoundSpotLight.html#collada.light.BoundSpotLight",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",tooltip="Spot light bound to a scene with transformation. This gets created when a",height=0.25,shape=box,fontsize=10]; "BoundLight" -> "BoundSpotLight" [arrowsize=0.5,style="setlinewidth(0.5)"]; "BoundDirectionalLight" [style="setlinewidth(0.5)",URL="collada.light.BoundDirectionalLight.html#collada.light.BoundDirectionalLight",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",tooltip="Directional light bound to a scene with transformation. This gets created when a",height=0.25,shape=box,fontsize=10]; "BoundLight" -> "BoundDirectionalLight" [arrowsize=0.5,style="setlinewidth(0.5)"]; "BoundAmbientLight" [style="setlinewidth(0.5)",URL="collada.light.BoundAmbientLight.html#collada.light.BoundAmbientLight",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",tooltip="Ambient light bound to a scene with transformation. This gets created when a",height=0.25,shape=box,fontsize=10]; "BoundLight" -> "BoundAmbientLight" [arrowsize=0.5,style="setlinewidth(0.5)"]; }

  `__init__`(id, color, constant_att=None, linear_att=None, quad_att=None, zfar=None, xmlnode=None)

    Create a new sun light.

    Parameters:

    - id (str) – A unique string identifier for the light
    - color (tuple) – Either a tuple of size 3 containing the RGB color value of the light or a tuple of size 4 containing the RGBA color value of the light
    - constant_att (float) – Constant attenuation factor
    - linear_att (float) – Linear attenuation factor
    - quad_att (float) – Quadratic attenuation factor
    - zfar (float) – Distance to the far clipping plane
    - xmlnode – If loaded from xml, the xml node

  Methods

  `__init__`(id, color[, constant_att, ...]) | Create a new sun light.
  `bind`(matrix) | Binds this light to a transform matrix.
  `load`(collada, localscope, node) |
  `save`() | Saves the light’s properties back to `xmlnode`

  `id` = None

    The unique string identifier for the light

  `color` = None

    Either a tuple of size 3 containing the RGB color value of the light or a tuple of size 4 containing the RGBA color value of the light

  `constant_att` = None

    Constant attenuation factor.

  `linear_att` = None

    Linear attenuation factor.

  `quad_att` = None

    Quadratic attenuation factor.

  `zfar` = None

    Distance to the far clipping plane

  `xmlnode` = None

    ElementTree representation of the light.

  `save`()

    Saves the light’s properties back to `xmlnode`

  `bind`(matrix)

    Binds this light to a transform matrix.

    Parameters: | matrix (numpy.array) – A 4x4 numpy float matrix
    Return type: | `collada.light.BoundPointLight`

### Navigation

- index
- modules |
- next |
- previous |
- pycollada 0.4 documentation »
- API Reference »