Table of Contents

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

owner IChartNode

Parent.

Properties

AmbientColor

Ambient color of the light

public Color AmbientColor { get; set; }

Property Value

Color

AttenuationConstant

Lighting attenuation, constant. Atten = 1 / (att0 + att1 * d + att2 * d2)

public double AttenuationConstant { get; set; }

Property Value

double

AttenuationLinear

Lighting attenuation, linear factor. Atten = 1 / (att0 + att1 * d + att2 * d2)

public double AttenuationLinear { get; set; }

Property Value

double

AttenuationQuadratic

Lighting attenuation, quadratic factor. Atten = 1 / (att0 + att1 * d + att2 * d2)

public double AttenuationQuadratic { get; set; }

Property Value

double

DiffuseColor

Diffuse color of the light

public Color DiffuseColor { get; set; }

Property Value

Color

Enabled

Is the light switched on

public bool Enabled { get; set; }

Property Value

bool

Location

Light location

public PointDoubleXYZ Location { get; set; }

Property Value

PointDoubleXYZ

LocationFromCamera

Use the view camera location as the location of the light.

public bool LocationFromCamera { get; set; }

Property Value

bool

SpecularColor

Specular color of the light

public Color SpecularColor { get; set; }

Property Value

Color

Target

Target coordinates. Applies to Directional light and Spotlight types.

public PointDoubleXYZ Target { get; set; }

Property Value

PointDoubleXYZ

Type

Palette coloring type

public LightType Type { get; set; }

Property Value

LightType

Methods

Dispose(bool)

Clean up any resources being used.

protected override void Dispose(bool disposing)

Parameters

disposing bool

true 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.