Skip to main content

Motion Standalone Preprocessor C# library 2024 R2

Interface ICanvas

Last update: 16.07.2025

Namespace: VM.Models.Pre
Assembly: VM.Models.Pre.dll

public interface ICanvas

Extension Methods

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

Properties

Color

Color Color { set; }

Property Value

Color

LineWeight

double LineWeight { set; }

Property Value

double

TextSize

double TextSize { set; }

Property Value

double

WireframeMode

bool WireframeMode { set; }

Property Value

bool

Methods

Clear()

void Clear()

DisplayTheFront()

void DisplayTheFront()

DisplayTheFront(double)

void DisplayTheFront(double depthRange)

Parameters

depthRange double

DrawLine(Vector, Vector)

UIntPtr DrawLine(Vector start, Vector end)

Parameters

start Vector

end Vector

Returns

UIntPtr

DrawMarker(Vector)

UIntPtr DrawMarker(Vector vector)

Parameters

vector Vector

Returns

UIntPtr

DrawText(Vector, string)

UIntPtr DrawText(Vector vector, string text)

Parameters

vector Vector

text string

Returns

UIntPtr

FastDrawLine(UIntPtr, UIntPtr)

void FastDrawLine(UIntPtr start, UIntPtr end)

Parameters

start UIntPtr

end UIntPtr

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

void FastDrawShell(UIntPtr points, ulong nPoints, UIntPtr connectivities, ulong nConnectivities, double dScale)

Parameters

points UIntPtr

nPoints ulong

connectivities UIntPtr

nConnectivities ulong

dScale double

GetSubCanvas(string)

ICanvas GetSubCanvas(string canvasName)

Parameters

canvasName string

Returns

ICanvas

Instantiate(IHasKeyObject, TMatrix)

void Instantiate(IHasKeyObject @object, TMatrix matrix)

Parameters

object IHasKeyObject

matrix TMatrix

SetMarkerSymbol(MarkerTypes, double)

void SetMarkerSymbol(MarkerTypes markerType, double size)

Parameters

markerType MarkerTypes

size double

Connect with Ansys