Assembly: VM.CAD.Kernel.dll
Inheritance
object ← KernelObject ← CanvasImplements
IDrawReferenceInherited Members
KernelObject.Dispose(), KernelObject.KeyExtension Methods
LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)Properties
BackplaneCull
Sets the back plane cull.Property Value
boolColor
Sets the color.Property Value
ColorDocument
Gets the DocumentProperty Value
IDocument3DLightInterpolationOption
Sets the light interpolation option.Property Value
LightInterpolationOptionTypeLineShape
Sets the line shape.Property Value
LineTypeLineWeight
Sets the line weight.Property Value
doubleTextSize
Set the text size.Property Value
doubleTransparency
Sets the transparency.Property Value
doubleWireframeMode
Sets the wire frame mode.Property Value
boolMethods
AppendModellingMatrix(TMatrix)
Append modelling matrix.Parameters
mat TMatrix
The transformation matrix
Clear()
Clear canvas.Create(IDocument3D, bool)
Create a new instance of the Canvas classParameters
doc IDocument3D
The document
ThreadSafeCanvas bool
true if to create thread-safe canvas, otherwise false.
Returns
CanvasCreate(UIntPtr, IDocument3D, bool)
Create a new instance of the Canvas classParameters
key UIntPtr
The key of the canvas
doc IDocument3D
The document
ThreadSafeCanvas bool
true if to create thread-safe canvas, otherwise false.
Returns
CanvasDisplayTheFront(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
UIntPtrDrawArrow(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
UIntPtrDrawCircle(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
UIntPtrDrawCylinder(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
UIntPtrDrawCylinder(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
UIntPtrDrawDimension(Vector, string)
Draws the dimension.Parameters
vecCenter Vector
The center position.
strText string
The string text.
Returns
UIntPtrDrawIcon(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
UIntPtrDrawMarker(Vector)
Draw marker.Parameters
vecCenter Vector
The center point
Returns
UIntPtrDrawMesh(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
UIntPtrDrawMesh(int, int, Vector[])
Draw mesh.Parameters
nRows int
The rows numner
nColumns int
The columns number
points Vector[]
The array of points
Returns
UIntPtrDrawNurbs(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
UIntPtrDrawNurbs(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
UIntPtrDrawPolygon(ICollection<Vector>)
Draw polygon.Parameters
colPoint ICollection<Vector>
Returns
UIntPtrDrawPolygon(Vector[])
Draw polygon.Parameters
arPoint Vector[]
The array of points
Returns
UIntPtrDrawPolyline(ICollection<Vector>)
Draw polyline.Parameters
colPoint ICollection<Vector>
Returns
UIntPtrDrawPolyline(Vector[])
Draw polyline.Parameters
arPoint Vector[]
The array of points
Returns
UIntPtrDrawShell(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
UIntPtrDrawShell(Vector[], int[], double)
Draw shell.Parameters
points Vector[]
The array of points.
connectivities int[]
The array of connectivities.
dScale double
Returns
UIntPtrDrawShellWithFaceNormal(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
UIntPtrDrawShellWithFaceNormal(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
UIntPtrDrawShellWithVertexNormal(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
UIntPtrDrawShellWithVertexNormal(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
UIntPtrDrawSphere(Vector, double)
Parameters
vecCenter Vector
dRad double
Returns
UIntPtrDrawSphere(Vector, double, Vector, Vector)
Parameters
vecCenter Vector
dRad double
vecAxis Vector
vecOrtho Vector
Returns
UIntPtrDrawText(Vector, string)
Parameters
vecCenter Vector
strText string
Returns
UIntPtrDrawWireCylinder(Vector, Vector, double)
Draw cylinder with face.Parameters
vecStart Vector
The start point
vecEnd Vector
The end point
dRad double
The radius
Returns
UIntPtrDrawWireSphere(Vector, double)
Parameters
vecCenter Vector
dRad double
Returns
UIntPtrDrawWireSphere(Vector, double, Vector, Vector)
Parameters
vecCenter Vector
dRad double
vecAxis Vector
vecOrtho Vector
Returns
UIntPtrEndGeometryEdit()
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 extensionReturns
T The canvas extensionType Parameters
T
The type of the canvas extension
GetExtension<T>(string)
Get canvas extensionParameters
strExtensionName string
The name of the canvas extension.
Returns
T The canvas extensionType Parameters
T
The type of the canvas extension
GetSubCanvas(string)
Get sub canvas.Parameters
strCanvasName string
The canvas name
Returns
CanvasIgnoreDepthTest()
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