Skip to main content

Motion Standalone Preprocessor C# library 2025 R2

Class View3D

Last update: 16.07.2025

Namespace: VM.Managed
Assembly: VMAppCore.dll

This class is to represent the 3D view.

public class View3D : HandledView

Inheritance

objectViewHandledViewView3D

Derived

View3DSpecialFit

Inherited Members

HandledView.Dispose(bool), HandledView.Handle, View.Activate(bool), View.Close(), View.Draw(), View.Resize(int, int), View.OnLButtonDblClk(uint, Point), View.OnLButtonDown(uint, Point), View.OnLButtonUp(uint, Point), View.OnMButtonDown(uint, Point), View.OnMButtonUp(uint, Point), View.OnRButtonDown(uint, Point), View.OnRButtonUp(uint, Point), View.OnMouseMove(uint, Point), View.OnMouseWheel(uint, short, Point), View.Dispose(bool), View.Dispose(), View.Document

Extension Methods

LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects(object, LinkPropertyType)

Constructors

View3D(UIntPtr, Document)

Initializes a new instance of the class

public View3D(UIntPtr handleView, Document doc)

Parameters

handleView UIntPtr

The view handle.

doc Document

The document.

Fields

g_FrontViewPlane

public static ViewPlane g_FrontViewPlane

Field Value

ViewPlane

g_bAdjacent

public static bool g_bAdjacent

Field Value

bool

Properties

BackgroundColor

Gets the color of background.

public View3D.ViewBackgroundColor BackgroundColor { get; }

Property Value

View3D.ViewBackgroundColor

IsPropertySupport

public virtual bool IsPropertySupport { get; }

Property Value

bool

Perspective

Gets or sets the perspective.

public bool Perspective { get; set; }

Property Value

bool

RenderMode

Gets or sets the rendering mode.

public View3D.RenderingMode RenderMode { get; set; }

Property Value

View3D.RenderingMode

Shadow

Gets or sets the shadow.

public bool Shadow { get; set; }

Property Value

bool

Methods

Activate(bool)

Activate view.

public override void Activate(bool bActivate)

Parameters

bActivate bool

Close()

Close view.

public override void Close()

Dispose(bool)

[HandleProcessCorruptedStateExceptions]
protected override void Dispose(bool A_0)

Parameters

A_0 bool

Draw()

Draw.

public override void Draw()

Fit()

Fit

public void Fit()

FitCore()

Fits the core.

protected virtual void FitCore()

GetCursorMode()

Get cursor mode .

public View3D.CursorMode GetCursorMode()

Returns

View3D.CursorMode

The cursor mode.

GetData(XmlNode)

Gets the view3d information data.

public virtual void GetData(XmlNode writer)

Parameters

writer XmlNode

The writer.

GetModelBoundingBox(ref VectorBase, ref VectorBase)

Gets the bounding box of model.

public virtual bool GetModelBoundingBox(ref VectorBase vecMin, ref VectorBase vecMax)

Parameters

vecMin VectorBase

The min value of bounding box.

vecMax VectorBase

The max value of bounding box.

Returns

bool

GetPopupMenuResult()

Get result for popup menu.

public int GetPopupMenuResult()

Returns

int

The result.

GetSpecialMenuResult()

Get result for special menu.

public int GetSpecialMenuResult()

Returns

int

The result.

GetUseFaceNormal()

Get face normal.

public bool GetUseFaceNormal()

Returns

bool

The use.

IsDefaultOperation()

Whether default or not for orientation.

public bool IsDefaultOperation()

Returns

bool

true if default; otherwise, false.

OnContextMenu()

Called when [show context menu].

public virtual void OnContextMenu()

OnLButtonDblClk(uint, Point)

Called when [L-button double click].

public override void OnLButtonDblClk(uint nFlags, Point point)

Parameters

nFlags uint

point Point

OnLButtonDown(uint, Point)

Called when [L-button down].

public override void OnLButtonDown(uint nFlags, Point point)

Parameters

nFlags uint

point Point

OnLButtonUp(uint, Point)

Called when [L-button up].

public override void OnLButtonUp(uint nFlags, Point point)

Parameters

nFlags uint

point Point

OnMButtonDown(uint, Point)

Called when [M-button down].

public override void OnMButtonDown(uint nFlags, Point point)

Parameters

nFlags uint

point Point

OnMButtonUp(uint, Point)

Called when [M-button up].

public override void OnMButtonUp(uint nFlags, Point point)

Parameters

nFlags uint

point Point

OnMouseMove(uint, Point)

Called when [mouse move].

public override void OnMouseMove(uint nFlags, Point point)

Parameters

nFlags uint

point Point

OnMouseWheel(uint, short, Point)

Called when [use mouse wheel].

public override void OnMouseWheel(uint nFlags, short zDelta, Point pt)

Parameters

nFlags uint

zDelta short

pt Point

OnRButtonDown(uint, Point)

Called when [R-button down].

public override void OnRButtonDown(uint nFlags, Point point)

Parameters

nFlags uint

point Point

OnRButtonUp(uint, Point)

Called when [R-button up].

public override void OnRButtonUp(uint nFlags, Point point)

Parameters

nFlags uint

point Point

Resize(int, int)

Re-size.

public override void Resize(int nWidth, int nHeight)

Parameters

nWidth int

The width.

nHeight int

The height.

SetData(XmlNode)

Sets the view3d information data.

public virtual void SetData(XmlNode reader)

Parameters

reader XmlNode

The reader.

SetPopupMenuResult(int)

public void SetPopupMenuResult(int nResult)

Parameters

nResult int

SetSpecialMenuResult(int)

Set result for special menu.

public void SetSpecialMenuResult(int nResult)

Parameters

nResult int

The result.

SetSurfaceTolerance(double)

Set surface tolerance.

public void SetSurfaceTolerance(double dSurfaceTolerance)

Parameters

dSurfaceTolerance double

The surface tolerance.

SetUseFaceNormal(bool)

Set face normal.

public void SetUseFaceNormal(bool bNormal)

Parameters

bNormal bool

The use.

SetViewMode(ViewMode)

Set mode of view.

public void SetViewMode(View3D.ViewMode mode)

Parameters

mode View3D.ViewMode

The view mode.

TransformCamera(TMatrix)

Transform.

public void TransformCamera(TMatrix mat)

Parameters

mat TMatrix

The transform.

Connect with Ansys