Class View3D
Last update: 16.07.2025Namespace: VM.Managed
Assembly: VMAppCore.dll
This class is to represent the 3D view.
public class View3D : HandledView
Inheritance
object ← View ← HandledView ← View3D
Derived
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
Constructors
View3D(UIntPtr, Document)
Initializes a new instance of the
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
g_bAdjacent
public static bool g_bAdjacent
Field Value
Properties
BackgroundColor
Gets the color of background.
public View3D.ViewBackgroundColor BackgroundColor { get; }
Property Value
IsPropertySupport
public virtual bool IsPropertySupport { get; }
Property Value
Perspective
Gets or sets the perspective.
public bool Perspective { get; set; }
Property Value
RenderMode
Gets or sets the rendering mode.
public View3D.RenderingMode RenderMode { get; set; }
Property Value
Shadow
Gets or sets the shadow.
public bool Shadow { get; set; }
Property Value
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
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
GetPopupMenuResult()
Get result for popup menu.
public int GetPopupMenuResult()
Returns
The result.
GetSpecialMenuResult()
Get result for special menu.
public int GetSpecialMenuResult()
Returns
The result.
GetUseFaceNormal()
Get face normal.
public bool GetUseFaceNormal()
Returns
The use.
IsDefaultOperation()
Whether default or not for orientation.
public bool IsDefaultOperation()
Returns
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
The view mode.
TransformCamera(TMatrix)
Transform.
public void TransformCamera(TMatrix mat)
Parameters
mat TMatrix
The transform.