Class Light3D
- Namespace
- LightningChartLib.WinForms.Charting.Views.View3D
- Assembly
- LightningChart.WinForms.Charting.NET4.dll
Light in 3D.
[TypeConverter(typeof(ExpandableObjectConverter))]
public class Light3D : ChartNode, IChartNode, IDisposable
- Inheritance
-
Light3D
- Implements
- Inherited Members
Constructors
Light3D()
Constructor. Don't use from code.
public Light3D()
Light3D(IChartNode)
Constructor
public Light3D(IChartNode owner)
Parameters
ownerIChartNodeParent.
Properties
AmbientColor
Ambient color of the light
public Color AmbientColor { get; set; }
Property Value
AttenuationConstant
Lighting attenuation, constant. Atten = 1 / (att0 + att1 * d + att2 * d2)
public double AttenuationConstant { get; set; }
Property Value
AttenuationLinear
Lighting attenuation, linear factor. Atten = 1 / (att0 + att1 * d + att2 * d2)
public double AttenuationLinear { get; set; }
Property Value
AttenuationQuadratic
Lighting attenuation, quadratic factor. Atten = 1 / (att0 + att1 * d + att2 * d2)
public double AttenuationQuadratic { get; set; }
Property Value
DiffuseColor
Diffuse color of the light
public Color DiffuseColor { get; set; }
Property Value
Enabled
Is the light switched on
public bool Enabled { get; set; }
Property Value
Location
Light location
public PointDoubleXYZ Location { get; set; }
Property Value
LocationFromCamera
Use the view camera location as the location of the light.
public bool LocationFromCamera { get; set; }
Property Value
SpecularColor
Specular color of the light
public Color SpecularColor { get; set; }
Property Value
Target
Target coordinates. Applies to Directional light and Spotlight types.
public PointDoubleXYZ Target { get; set; }
Property Value
Type
Palette coloring type
public LightType Type { get; set; }
Property Value
Methods
Dispose(bool)
Clean up any resources being used.
protected override void Dispose(bool disposing)
Parameters
disposingbooltrue if managed resources should be disposed, otherwise false.
ToString()
Convert class description to string.
public override string ToString()
Returns
- string
Class description as a string.