Class Axis3DBase
- Namespace
- LightningChartLib.WinForms.Charting.Axes
- Assembly
- LightningChart.WinForms.Charting.NET4.dll
3D axis base class.
[TypeConverter(typeof(ExpandableObjectConverter))]
public class Axis3DBase : AxisBase, IChartNode, IDisposable, IHighlightingItem
- Inheritance
-
Axis3DBase
- Implements
- Derived
- Inherited Members
Constructors
Axis3DBase()
public Axis3DBase()
Properties
AllowScaling
Axis min and max values adjust by user. Draws scale nibs in the ends of the axis.
public bool AllowScaling { get; set; }
Property Value
AllowScrolling
Axis scrolling by user. Drag from axis line.
public bool AllowScrolling { get; set; }
Property Value
CornerAlignment
Alignment in the corner of 3D chart space.
public AxisAlignment3D CornerAlignment { get; set; }
Property Value
DragSnapToDiv
Axis scrolling or scaling snaps to divisions.
public bool DragSnapToDiv { get; set; }
Property Value
LabelTicksGap
Gap between labels and ticks. Value is in pixels.
public double LabelTicksGap { get; set; }
Property Value
Material
Axis material.
public Material3D Material { get; set; }
Property Value
OwnerView
Owner view.
[Browsable(false)]
public View3DBase OwnerView { get; }
Property Value
Reversed
Set true if you want to have low values higher and the high values lower on the graph.
public bool Reversed { get; set; }
Property Value
ScaleNibs
Scale nib appearance.
public AxisDragNib3D ScaleNibs { get; set; }
Property Value
Title
Axis title.
public AxisTitle3D Title { get; set; }
Property Value
Units
Axis units.
public AxisTitle3D Units { get; set; }
Property Value
Methods
Construct()
Initialize members.
protected override void Construct()
CreateDragNib()
Create drag nib.
protected void CreateDragNib()
CreateMajorGrid()
Create major grid.
protected override void CreateMajorGrid()
CreateMajorTickStyle()
Create major grid style.
protected override void CreateMajorTickStyle()
CreateMinorGrid()
Create minor grid.
protected override void CreateMinorGrid()
CreateMinorTickStyle()
Create minor tick style.
protected override void CreateMinorTickStyle()
Dispose(bool)
Clean up any resources being used.
protected override void Dispose(bool disposing)
Parameters
disposingbooltrue if managed resources should be disposed, otherwise false.
GetGridWalls()
Get list of walls where grid is drawn using this axis.
public List<WallBase> GetGridWalls()
Returns
GetMajorTicks()
Get major tick values.
public double[] GetMajorTicks()
Returns
- double[]
Array of major tick values.
IsPositionOver(int, int, bool)
Is mouse over a series.
public override bool IsPositionOver(int x, int y, bool useDIP = false)
Parameters
xintMouse X-coordinate.
yintMouse Y-coordinate.
useDIPboolUse DIP instead of pixels as parameters.
Returns
- bool
True if mouse is over a series. Otherwise false.
OnDeserialized(StreamingContext)
OnDeserialized is called just after the object has been deserialized.
[OnDeserialized]
protected void OnDeserialized(StreamingContext context)
Parameters
contextStreamingContextContext.
SetProperCursor()
Set proper drag cursor. Default is hand.
public override void SetProperCursor()
ValueTo3DWorldCoord(double)
Convert axis value into respective coordinate in 3D world space. Takes View.Dimensions into account.
public float ValueTo3DWorldCoord(double value)
Parameters
valuedoubleValue to convert.
Returns
- float
3D world coordinate. If view or dimensions can't be solved, returns NaN.
World3DCoordToValue(float)
Convert 3D world coordinate into respective axis value. Takes View.Dimensions into account.
public double World3DCoordToValue(float coord)
Parameters
coordfloat3D world coordinate.
Returns
- double
Axis values. If view or dimensions can't be solved, returns NaN.