Class Graphics3D
Provide the methods for drawing in 3D mode.
Inheritance
Inherited Members
Namespace: Syncfusion.Windows.Forms.Chart
Assembly: Syncfusion.Chart.Base.dll
Syntax
public class Graphics3D
Constructors
Graphics3D(Graphics)
Initializes a new instance of the Graphics3D class.
Declaration
public Graphics3D(Graphics g)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | The Graphics to the drawing. |
Properties
Count
Gets the count of input polygons.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The count. |
CountPolygons
Gets the count output polygons.
Declaration
public int CountPolygons { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The count polygons. |
DefaultStrinfFormat
Gets the default string format.
Declaration
public static StringFormat DefaultStrinfFormat { get; }
Property Value
Type | Description |
---|---|
System.Drawing.StringFormat | The default string format. |
Graphics
Gets the graphics.
Declaration
public Graphics Graphics { get; }
Property Value
Type | Description |
---|---|
System.Drawing.Graphics | The graphics. |
Item[Int32]
Gets the Polygon at the specified index.
Declaration
public Polygon this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Property Value
Type |
---|
Polygon |
Light
Gets or sets a value indicating whether this Graphics3D is light.
Declaration
public bool Light { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
LightCoeficient
Gets or sets the light coefficient.
Declaration
public float LightCoeficient { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The light coefficient. |
LightPosition
Gets or sets the light position.
Declaration
public Vector3D LightPosition { get; set; }
Property Value
Type | Description |
---|---|
Vector3D | The light position. |
Regions
Gets or sets the regions.
Declaration
public IList Regions { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.IList | The regions. |
Transform
Gets or sets the transform.
Declaration
public Transform3D Transform { get; set; }
Property Value
Type | Description |
---|---|
Transform3D | The transform. |
Methods
AddPolygon(Polygon)
Adds the polygon to the drawing.
Declaration
public int AddPolygon(Polygon polygon)
Parameters
Type | Name | Description |
---|---|---|
Polygon | polygon | The Polygon. |
Returns
Type |
---|
System.Int32 |
CreateBox(Vector3D, Vector3D, Pen, BrushInfo)
Creates the box.
Declaration
public Polygon[] CreateBox(Vector3D v1, Vector3D v2, Pen p, BrushInfo b)
Parameters
Type | Name | Description |
---|---|---|
Vector3D | v1 | The v1. |
Vector3D | v2 | The v2. |
System.Drawing.Pen | p | The p. |
BrushInfo | b | The b. |
Returns
Type |
---|
Polygon[] |
CreateBox(Vector3D, Vector3D, Pen, Brush)
Creates the box.
Declaration
public Polygon[] CreateBox(Vector3D v1, Vector3D v2, Pen p, Brush b)
Parameters
Type | Name | Description |
---|---|---|
Vector3D | v1 | The v1. |
Vector3D | v2 | The v2. |
System.Drawing.Pen | p | The pen. |
System.Drawing.Brush | b | The brush. |
Returns
Type |
---|
Polygon[] |
CreateBoxV(Vector3D, Vector3D, Pen, BrushInfo)
Creates the vertical box.
Declaration
public Polygon[] CreateBoxV(Vector3D v1, Vector3D v2, Pen p, BrushInfo b)
Parameters
Type | Name | Description |
---|---|---|
Vector3D | v1 | The v1. |
Vector3D | v2 | The v2. |
System.Drawing.Pen | p | The p. |
BrushInfo | b | The b. |
Returns
Type |
---|
Polygon[] |
CreateCylinderH(Vector3D, Vector3D, Int32, Pen, BrushInfo)
Creates the horizontal cylinder.
Declaration
public Polygon[] CreateCylinderH(Vector3D v1, Vector3D v2, int dsc, Pen p, BrushInfo br)
Parameters
Type | Name | Description |
---|---|---|
Vector3D | v1 | The v1. |
Vector3D | v2 | The v2. |
System.Int32 | dsc | The DSC. |
System.Drawing.Pen | p | The p. |
BrushInfo | br | The br. |
Returns
Type |
---|
Polygon[] |
CreateCylinderV(Vector3D, Vector3D, Int32, Pen, BrushInfo)
Creates the vertical cylinder.
Declaration
public Polygon[] CreateCylinderV(Vector3D v1, Vector3D v2, int dsc, Pen p, BrushInfo br)
Parameters
Type | Name | Description |
---|---|---|
Vector3D | v1 | The v1. |
Vector3D | v2 | The v2. |
System.Int32 | dsc | The DSC. |
System.Drawing.Pen | p | The p. |
BrushInfo | br | The br. |
Returns
Type |
---|
Polygon[] |
CreateEllipse(Vector3D, SizeF, Int32, Pen, BrushInfo)
Creates the ellipse.
Declaration
public Polygon[] CreateEllipse(Vector3D v1, SizeF sz, int dsc, Pen p, BrushInfo br)
Parameters
Type | Name | Description |
---|---|---|
Vector3D | v1 | The v1. |
System.Drawing.SizeF | sz | The sz. |
System.Int32 | dsc | The DSC. |
System.Drawing.Pen | p | The p. |
BrushInfo | br | The br. |
Returns
Type |
---|
Polygon[] |
CreateRectangle(Vector3D, SizeF, Pen, BrushInfo)
Creates the rectangle.
Declaration
public Polygon[] CreateRectangle(Vector3D v1, SizeF sz, Pen p, BrushInfo br)
Parameters
Type | Name | Description |
---|---|---|
Vector3D | v1 | The v1. |
System.Drawing.SizeF | sz | The sz. |
System.Drawing.Pen | p | The p. |
BrushInfo | br | The br. |
Returns
Type |
---|
Polygon[] |
CreateRectangle(Vector3D, SizeF, Pen, BrushInfo, Boolean)
Creates the rectangle.
Declaration
public Polygon[] CreateRectangle(Vector3D v1, SizeF sz, Pen p, BrushInfo br, bool IsPNF)
Parameters
Type | Name | Description |
---|---|---|
Vector3D | v1 | The v1. |
System.Drawing.SizeF | sz | The sz. |
System.Drawing.Pen | p | The p. |
BrushInfo | br | The br. |
System.Boolean | IsPNF | The PNF. |
Returns
Type |
---|
Polygon[] |
CreateShpeare(Vector3D, Vector3D, Int32, Pen, BrushInfo)
Creates the sphere.
Declaration
[Obsolete("Use CreateSphere")]
public Polygon[] CreateShpeare(Vector3D v1, Vector3D r, int dsc, Pen p, BrushInfo br)
Parameters
Type | Name | Description |
---|---|---|
Vector3D | v1 | The v1. |
Vector3D | r | The r. |
System.Int32 | dsc | The DSC. |
System.Drawing.Pen | p | The p. |
BrushInfo | br | The br. |
Returns
Type |
---|
Polygon[] |
CreateSphere(Vector3D, Vector3D, Int32, Pen, BrushInfo)
Creates the sphere.
Declaration
public Polygon[] CreateSphere(Vector3D v1, Vector3D r, int dsc, Pen p, BrushInfo br)
Parameters
Type | Name | Description |
---|---|---|
Vector3D | v1 | The v1. |
Vector3D | r | The r. |
System.Int32 | dsc | The DSC. |
System.Drawing.Pen | p | The p. |
BrushInfo | br | The br. |
Returns
Type |
---|
Polygon[] |
LoadState(Graphics3DState)
Loads the Graphics3D options.
Declaration
public void LoadState(Graphics3DState state)
Parameters
Type | Name | Description |
---|---|---|
Graphics3DState | state | The state. |
PrepairView()
Computes the BSP tree.
Declaration
[Obsolete("Use PrepareView()")]
public void PrepairView()
PrepareView()
Computes the BSP tree.
Declaration
public void PrepareView()
SaveState()
Saves the Graphics3D options.
Declaration
public Graphics3DState SaveState()
Returns
Type |
---|
Graphics3DState |
View3D()
Draws the polygons to the Graphics.
Declaration
public void View3D()