Class VolumeModel
- Namespace
- LightningChartLib.WinForms.Charting.Views.View3D
- Assembly
- LightningChart.WinForms.Charting.NET4.dll
Volume model.
[TypeConverter(typeof(ExpandableObjectConverter))]
public class VolumeModel : TransparencyRenderItem, IChartNode, IDisposable, IHighlightingItem
- Inheritance
-
VolumeModel
- Implements
- Inherited Members
Constructors
VolumeModel()
Constructor.
public VolumeModel()
VolumeModel(LightningChart)
Constructor.
public VolumeModel(LightningChart chart)
Parameters
chartLightningChartParent.
VolumeModel(LightningChart, byte[], int, int, int)
Constructor.
public VolumeModel(LightningChart chart, byte[] data, int width, int height, int slicesAmount)
Parameters
chartLightningChartParent.
databyte[]Texture map.
widthintTexture map width.
heightintTexture map height.
slicesAmountintAmount of slices.
VolumeModel(LightningChart, Bitmap, int)
Constructor.
public VolumeModel(LightningChart chart, Bitmap img, int amountOfSlices)
Parameters
chartLightningChartParent.
imgBitmapTexture map.
amountOfSlicesintAmount of slices on texture map.
VolumeModel(LightningChart, Bitmap[])
Constructor.
public VolumeModel(LightningChart chart, Bitmap[] imgs)
Parameters
chartLightningChartParent.
imgsBitmap[]An array of slices.
VolumeModel(LightningChart, string)
Constructor.
public VolumeModel(LightningChart chart, string folderPath)
Parameters
chartLightningChartParent.
folderPathstringPath to the folder with slices.
VolumeModel(LightningChart, string, int)
Constructor.
public VolumeModel(LightningChart chart, string filePath, int amountOfSlices)
Parameters
chartLightningChartParent.
filePathstringPath to the texture map.
amountOfSlicesintAmount of slices on texture map.
VolumeModel(View3D)
Constructor. Use primary axis for axis binding.
public VolumeModel(View3D owner)
Parameters
ownerView3DParent.
VolumeModel(View3D, Axis3DBinding, Axis3DBinding, Axis3DBinding)
Constructor.
public VolumeModel(View3D owner, Axis3DBinding xAxis, Axis3DBinding yAxis, Axis3DBinding zAxis)
Parameters
ownerView3DParent.
xAxisAxis3DBindingX-axis binding.
yAxisAxis3DBindingY-axis binding.
zAxisAxis3DBindingZ-axis binding.
VolumeModel(string)
Constructor.
public VolumeModel(string folderPath)
Parameters
folderPathstringPath to the folder with slices.
VolumeModel(string, int)
Constructor.
public VolumeModel(string filePath, int AmountOfSlices)
Parameters
Properties
Brightness
Brightness option of the transfer function
public PointRGB Brightness { get; set; }
Property Value
ClipColorRange
skip color for volume model not to draw
public bool ClipColorRange { get; set; }
Property Value
ColorRangeToClip
Clip color range of VolumeModel where color component values between 0.0-1, inclusive.
public RangeRGB ColorRangeToClip { get; set; }
Property Value
Darkness
Darkness option of the transfer function
public PointRGB Darkness { get; set; }
Property Value
Data
Model bitmap data.
[Browsable(false)]
public Bitmap[] Data { get; set; }
Property Value
- Bitmap[]
EmptySpaceSkipping
Sampling rate for empty space skipping settings. Low level increases performance, but can reveal some artifacts.
public int EmptySpaceSkipping { get; set; }
Property Value
Opacity
Opacity for semi-transparent volume rendering functions
public double Opacity { get; set; }
Property Value
Position
Position.
public PointDoubleXYZ Position { get; set; }
Property Value
RayFunction
Enum specifies Ray Function, which is used to render the model.
public RayFunction RayFunction { get; set; }
Property Value
Rotation
Rotating angles, in degrees
public PointDoubleXYZ Rotation { get; set; }
Property Value
SamplingRateOptions
Set of setting for Sampling Rate Manager
public SamplingRateOptions SamplingRateOptions { get; set; }
Property Value
Size
Point size
public SizeDoubleXYZ Size { get; set; }
Property Value
SliceRange
Slice Range settings per every dimension
public RangeXYZ SliceRange { get; set; }
Property Value
Smoothness
Smoothness factor for Iso-Surface rendering
public double Smoothness { get; set; }
Property Value
Threshold
Threshold settings, to cut away unaccepted part of the model
public RangeRGB Threshold { get; set; }
Property Value
Visible
Visible.
public bool Visible { get; set; }
Property Value
XAxisBinding
X axis binding
public Axis3DBinding XAxisBinding { get; set; }
Property Value
YAxisBinding
Y axis binding
public Axis3DBinding YAxisBinding { get; set; }
Property Value
ZAxisBinding
Z axis binding
public Axis3DBinding ZAxisBinding { get; set; }
Property Value
Methods
Construct()
Construct object.
protected void Construct()
Dispose(bool)
Clean up any resources being used.
protected override void Dispose(bool disposing)
Parameters
disposingbooltrue if managed resources should be disposed, otherwise false.
IsPositionOver(int, int)
Is position over item.
public bool IsPositionOver(int x, int y)
Parameters
Returns
- bool
true if position is over item, false otherwise
LoadFromBytes(byte[], int, int, int)
Receive a texture map as byte array and assigns it to the volume data.
public void LoadFromBytes(byte[] data, int width, int height, int slicesAmount)
Parameters
databyte[]Slice map data.
widthintSlice map width.
heightintSlice map height.
slicesAmountintAmount of slices in the slice map.
LoadFromSliceMap(Bitmap, int)
Receive a texture map and assigns it to the volume data.
public void LoadFromSliceMap(Bitmap img, int AmountOfSlices)
Parameters
LoadFromSliceMap(string, int)
Receive a texture map and set assigns it to the volume data.
public void LoadFromSliceMap(string filePath, int amountOfSlices)
Parameters
LoadFromSlices(Bitmap[])
Receive an array of slices and assign it to the volume data.
public bool LoadFromSlices(Bitmap[] imgs)
Parameters
imgsBitmap[]An array of slices.
Returns
- bool
True, if can load data, false otherwise.
LoadFromSlices(string)
Receive an array of slices and assign it to the volume data.
public void LoadFromSlices(string folderPath)
Parameters
folderPathstringPath to the folder with slices.
SetChart(LightningChart)
Set Chart.
public void SetChart(LightningChart chart)
Parameters
chartLightningChartparam chart M:LightningChartLib.WinForms.Charting.Views.View3D.VolumeModel.SetChart(LightningChartLib.WinForms.Charting.LightningChart)
ToString()
Convert class description to string.
public override string ToString()
Returns
- string
Class description as a string.