Skip to main content
Namespace: VM.CAD.Kernel.Render
Assembly: VM.CAD.Kernel.dll

Inheritance

object ← KernelObject ← Canvas

Implements

IDrawReference

Inherited Members

KernelObject.Dispose(), KernelObject.Key

Extension Methods

LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)

Properties

BackplaneCull

Sets the back plane cull.

Property Value

bool

Color

Sets the color.

Property Value

Color

Document

Gets the Document

Property Value

IDocument3D

LightInterpolationOption

Sets the light interpolation option.

Property Value

LightInterpolationOptionType

LineShape

Sets the line shape.

Property Value

LineType

LineWeight

Sets the line weight.

Property Value

double

TextSize

Set the text size.

Property Value

double

Transparency

Sets the transparency.

Property Value

double

WireframeMode

Sets the wire frame mode.

Property Value

bool

Methods

AppendModellingMatrix(TMatrix)

Append modelling matrix.

Parameters

mat TMatrix The transformation matrix

Clear()

Clear canvas.

Create(IDocument3D, bool)

Create a new instance of the Canvas class

Parameters

doc IDocument3D The document ThreadSafeCanvas bool true if to create thread-safe canvas, otherwise false.

Returns

Canvas

Create(UIntPtr, IDocument3D, bool)

Create a new instance of the Canvas class

Parameters

key UIntPtr The key of the canvas doc IDocument3D The document ThreadSafeCanvas bool true if to create thread-safe canvas, otherwise false.

Returns

Canvas

DisplayTheFront(double)

Display front above all.

Parameters

dDepthRange double The depth range. If it is negative value, default value will be used.

DrawArc(Vector, Vector, Vector)

Draw arc.

Parameters

vecFirst Vector The first point vecSecond Vector The second point vecThird Vector The third point

Returns

UIntPtr

DrawArrow(Vector, Vector, double)

Draw arrow.

Parameters

vecStart Vector The start point vecEnd Vector The end point dArrowSize double The arrow size. If dArrowSize is negative or zero value, default value will be used.

Returns

UIntPtr

DrawCircle(Vector, double, Vector, bool)

Draw circle.

Parameters

vecCenter Vector The center point dRad double The radius vecNormal Vector The normal vector bFill bool The fill flag

Returns

UIntPtr

DrawCylinder(Vector, Vector, double, bool, bool)

Draw cylinder.

Parameters

vecStart Vector The start point vecEnd Vector The end point dRad double The radius bFirstCap bool if first cap and second cap is true, “both”; if first cap is true and second cap is false, “first”; if first cap is false and second cap is true, “second”; if first cap and second cap is false, “none” bSecondCap bool if first cap and second cap is true, “both”; if first cap is true and second cap is false, “first”; if first cap is false and second cap is true, “second”; if first cap and second cap is false, “none”

Returns

UIntPtr

DrawCylinder(Vector, Vector, double, string)

Draw cylinder.

Parameters

vecStart Vector The start point vecEnd Vector The end point dRad double The radius strCapOption string String specifying which ends to cap, either “first”, “second”, “none”, or “both”

Returns

UIntPtr

DrawDimension(Vector, string)

Draws the dimension.

Parameters

vecCenter Vector The center position. strText string The string text.

Returns

UIntPtr

DrawIcon(IconInfo)

Draw icon.

Parameters

iconInfo IconInfo The icon information

DrawIcon(IconInfo, double)

Draw icon.

Parameters

iconInfo IconInfo The icon information dScale double The scale

DrawLine(Vector, Vector)

Draw line.

Parameters

vecStart Vector The start point vecEnd Vector The end point

Returns

UIntPtr

DrawMarker(Vector)

Draw marker.

Parameters

vecCenter Vector The center point

Returns

UIntPtr

DrawMesh(int, int, ICollection<Vector>)

Draw mesh.

Parameters

nRows int The rows numner nColumns int The columns number points ICollection<Vector> The collection of points

Returns

UIntPtr

DrawMesh(int, int, Vector[])

Draw mesh.

Parameters

nRows int The rows numner nColumns int The columns number points Vector[] The array of points

Returns

UIntPtr

DrawNurbs(int, int, int, int, ICollection<Vector>, ICollection<float>, ICollection<float>, ICollection<float>)

Draw nurbs.

Parameters

u_degree int Degree of the surface in the u direction v_degree int Degree of the surface in the v direction u_count int Number of valid control points in the u direction v_count int Number of valid control points in the v direction ctrlPts ICollection<Vector> Vector of x-y-z triplets for the coordinates of the control points weights ICollection<float> Control point weights u_knots ICollection<float> Knot sequence in the u direction v_knots ICollection<float> Knot sequence in the v direction

Returns

UIntPtr

DrawNurbs(int, int, int, int, Vector[], float[], float[], float[])

Draw nurbs.

Parameters

u_degree int Degree of the surface in the u direction v_degree int Degree of the surface in the v direction u_count int Number of valid control points in the u direction v_count int Number of valid control points in the v direction ctrlPts Vector[] Vector of x-y-z triplets for the coordinates of the control points weights float[] Control point weights u_knots float[] Knot sequence in the u direction v_knots float[] Knot sequence in the v direction

Returns

UIntPtr

DrawPolygon(ICollection<Vector>)

Draw polygon.

Parameters

colPoint ICollection<Vector>

Returns

UIntPtr

DrawPolygon(Vector[])

Draw polygon.

Parameters

arPoint Vector[] The array of points

Returns

UIntPtr

DrawPolyline(ICollection<Vector>)

Draw polyline.

Parameters

colPoint ICollection<Vector>

Returns

UIntPtr

DrawPolyline(Vector[])

Draw polyline.

Parameters

arPoint Vector[] The array of points

Returns

UIntPtr

DrawShell(ICollection<Vector>, ICollection<int>, double)

Draw shell.

Parameters

points ICollection<Vector> The collection of points. connectivities ICollection<int> The collection of connectivities. dScale double

Returns

UIntPtr

DrawShell(Vector[], int[], double)

Draw shell.

Parameters

points Vector[] The array of points. connectivities int[] The array of connectivities. dScale double

Returns

UIntPtr

DrawShellWithFaceNormal(ICollection<Vector>, ICollection<int>, ICollection<Vector>)

Draw shell with face normal.

Parameters

points ICollection<Vector> The collection of points. connectivities ICollection<int> The collection of connectivities. faceNormals ICollection<Vector> The collection of face normal vectors.

Returns

UIntPtr

DrawShellWithFaceNormal(Vector[], int[], Vector[])

Draw shell with face normal.

Parameters

points Vector[] The array of points. connectivities int[] The array of connectivities. faceNormals Vector[] The array of face normal vectors.

Returns

UIntPtr

DrawShellWithVertexNormal(ICollection<Vector>, ICollection<int>, ICollection<Vector>)

Draw shell with vertex normal.

Parameters

points ICollection<Vector> The collection of points. connectivities ICollection<int> The collection of connectivities. vertexNormals ICollection<Vector> The collection of vertex normal vectors.

Returns

UIntPtr

DrawShellWithVertexNormal(Vector[], int[], Vector[])

Draw shell with vertex normal.

Parameters

points Vector[] The array of points. connectivities int[] The array of connectivities. vertexNormals Vector[] The array of vertex normal vectors.

Returns

UIntPtr

DrawSphere(Vector, double)

Parameters

vecCenter Vector dRad double

Returns

UIntPtr

DrawSphere(Vector, double, Vector, Vector)

Parameters

vecCenter Vector dRad double vecAxis Vector vecOrtho Vector

Returns

UIntPtr

DrawText(Vector, string)

Parameters

vecCenter Vector strText string

Returns

UIntPtr

DrawWireCylinder(Vector, Vector, double)

Draw cylinder with face.

Parameters

vecStart Vector The start point vecEnd Vector The end point dRad double The radius

Returns

UIntPtr

DrawWireSphere(Vector, double)

Parameters

vecCenter Vector dRad double

Returns

UIntPtr

DrawWireSphere(Vector, double, Vector, Vector)

Parameters

vecCenter Vector dRad double vecAxis Vector vecOrtho Vector

Returns

UIntPtr

EndGeometryEdit()

End geometry for edit.

FastDrawShell(UIntPtr, ulong, UIntPtr, ulong, double)

Draw shell (fast).

Parameters

points UIntPtr The points array nPoints ulong The number of points connectivities UIntPtr The connectivities array nConnectivities ulong The number of connectivities dScale double The scale

FastDrawShellWithFaceNormal(UIntPtr, ulong, UIntPtr, ulong)

Draw shell with face normal (fast).

Parameters

points UIntPtr The points array nPoints ulong The number of points connectivities UIntPtr The connectivities array nConnectivities ulong The number of connectivities

GetExtension<T>()

Get canvas extension

Returns

T The canvas extension

Type Parameters

T The type of the canvas extension

GetExtension<T>(string)

Get canvas extension

Parameters

strExtensionName string The name of the canvas extension.

Returns

T The canvas extension

Type Parameters

T The type of the canvas extension

GetSubCanvas(string)

Get sub canvas.

Parameters

strCanvasName string The canvas name

Returns

Canvas

IgnoreDepthTest()

Ignore depth test.

SetMarkerSymbol(MarkerType, double)

Set marker symbol.

Parameters

type MarkerType dSize double The marker size. If it is negative value, default value will be used.

SetModellingMatrix(TMatrix)

Set modelling matrix.

Parameters

mat TMatrix The transformation matrix

SetScale(double, double, double)

Set scale.

Parameters

dX double The X coordinate of scale dY double The Y coordinate of scale dZ double The Z coordinate of scale

SetWireframeMode(bool, bool)

Set wireframe mode.

Parameters

bWireframe bool Whether use wire frame mode bVisibleEdge bool Whether visible edge

StartGeometryEdit(UIntPtr)

Start geometry for edit.

Parameters

pKeyGeom UIntPtr The geometry key

TrimNurbs(int, int, ICollection<Vector>, ICollection<float>, ICollection<float>, double, double)

Trim nurbs.

Parameters

degree int Degree of the curve cpcount int Number of valid points in control_points ctrlPts ICollection<Vector> The points weights ICollection<float> Control point weights knots ICollection<float> Knot sequence start_u double Start parameter end_u double End parameter

TrimNurbs(int, int, Vector[], float[], float[], double, double)

Trim nurbs.

Parameters

degree int Degree of the curve cpcount int Number of valid points in control_points ctrlPts Vector[] The points weights float[] Control point weights knots float[] Knot sequence start_u double Start parameter end_u double End parameter