Xceed Chart for WinForms v4.4 Documentation
Xceed.Chart.Standard.v4.4 Assembly / Xceed.Chart.Standard Namespace / LightSource Class
Members


In This Topic
    LightSource Class
    In This Topic
    The LightSource object represents a light source in the 3D scene. It can control the light source emission characteristics, its position and direction. You add light sources to the 3D scene with the help of the LightSources collection of the GLLightModel class. The number of light sources is limited to eight in the current Microsoft OpenGL implementation. For more information on the way that OpenGL implements lighting see the "OpenGL lighting model" topic in the User's Guide.
    Object Model
    LightSource Class
    Syntax
    'Declaration
     
    <ClassInterfaceAttribute(ClassInterfaceType.AutoDual)>
    <TypeConverterAttribute(Xceed.Chart.Standard.BrowseablePropertyConverter)>
    <SerializableAttribute()>
    Public Class LightSource 
       Inherits Xceed.Chart.GraphicsCore.LightSourceBase
    'Usage
     
    Dim instance As LightSource
    [ClassInterface(ClassInterfaceType.AutoDual)]
    [TypeConverter(Xceed.Chart.Standard.BrowseablePropertyConverter)]
    [Serializable()]
    public class LightSource : Xceed.Chart.GraphicsCore.LightSourceBase 
    Inheritance Hierarchy

    System.Object
       Xceed.Chart.GraphicsCore.LightSourceBase
          Xceed.Chart.Standard.LightSource

    Public Constructors
     NameDescription
    Public ConstructorCreates a new LightSource object.  
    Top
    Public Properties
     NameDescription
    Public PropertyThe ambient color emitted by this light source.  
    Public PropertySpecifies the constant attenuation factor for this light. For more information see the "OpenGL Lighting Model" topic in the User's Guide.  
    Public PropertyThe diffuse color emitted by this light source.  
    Public PropertyA vector which specifies the direction of the light source.  
    Public PropertySelects between positional and directional light source.  
    Public PropertySpecifies the linear attenuation factor for this light. For more information see the "OpenGL Lighting Model" topic in the User's Guide.  
    Public PropertyA vector which specifies the position of the light source in 3D space.  
    Public PropertySpecifies the quadratic attenuation factor for this light. For more information see the "OpenGL Lighting Model" topic in the User's Guide.  
    Public PropertyThe specular color emitted by this light source.  
    Public PropertyThe spot cutoff angle of the light source. With the help of this property you can make a positional light source act as a spot light.  
    Public PropertyThe spot exponent specifies the intensity distribution of a spot light.  
    Top
    Public Methods
     NameDescription
    Public MethodCreates a copy of the object. (Inherited from Xceed.Chart.GraphicsCore.LightSourceBase)
    Top
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also