Show / Hide Table of Contents

    Class Light

    Base class for all lights.

    Inheritance
    System.Object
    Element
    Light
    DirectionalLight
    PointLight
    SpotLight
    Implements
    System.ComponentModel.INotifyPropertyChanged
    Inherited Members
    Element.Id
    Element.Name
    Element.AdditionalProperties
    Element.PropertyChanged
    Element.RaisePropertyChanged(String)
    Element.SetMapping(String, MappingBase)
    Element.GetMapping(String)
    Element.GetMapping<T>(String)
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Elements
    Assembly: Hypar.Elements.dll
    Syntax
    public abstract class Light : Element, INotifyPropertyChanged

    Constructors

    Light(Double, Color, Transform, Guid, String)

    Construct a light.

    Declaration
    public Light(double intensity, Color color, Transform transform, Guid id, string name)
    Parameters
    Type Name Description
    System.Double intensity

    The intensity of the light.

    Color color

    The color of the light.

    Transform transform

    The transform of the light.

    System.Guid id

    The unique identifier of the light.

    System.String name

    The name of the light.

    Properties

    Color

    The color of the light. The color's alpha value will be ignored.

    Declaration
    public Color Color { get; set; }
    Property Value
    Type Description
    Color

    Intensity

    The intensity of the light measured in lux.

    Declaration
    public double Intensity { get; set; }
    Property Value
    Type Description
    System.Double

    LightType

    The type of the light.

    Declaration
    public LightType LightType { get; set; }
    Property Value
    Type Description
    LightType

    Transform

    The light's transform. The light will be aimed along the transform's -Z axis.

    Declaration
    public Transform Transform { get; set; }
    Property Value
    Type Description
    Transform

    Implements

    System.ComponentModel.INotifyPropertyChanged

    Extension Methods

    ElementProxyExtensions.Proxy<T>(T, String)
    Identity.AddOverrideIdentity(Element, IOverride)
    Identity.AddOverrideIdentity(Element, String, String, Object)
    Identity.AddOverrideValue(Element, String, Object)
    Identity.OverrideIds<T>(Element, String)