Class ViewportController
- Namespace
- Macad.Interaction
- Assembly
- Macad.Interaction.dll
public sealed class ViewportController : BaseObject
- Inheritance
-
ViewportController
Properties
public double DpiScale { get; set; }
- Property Value: double
public double GizmoScale { get; }
- Property Value: double
public bool IsInRubberbandSelection { get; }
- Property Value: bool
public bool LockedToPlane { get; set; }
- Property Value: bool
public double PixelSize { get; }
- Property Value: double
public (int Width, int Height) ScreenSize { get; }
- Property Value: (int Width, int Height)
public V3d_View V3dView { get; }
- Property Value: V3d_View
public Viewport Viewport { get; }
- Property Value: Viewport
public WorkspaceController WorkspaceController { get; }
- Property Value: WorkspaceController
Methods
modifierKeys
ModifierKeys
modifierKeys
ModifierKeys
pos
Point
modifierKeys
ModifierKeys
mode
ViewportController.MouseMoveMode
modifierKeys
ModifierKeys
public void Pan(double dX, double dY)
dX
double
dY
double
public bool PointToScreen(Pnt pnt, out int screenX, out int screenY)
pnt
Pnt
screenX
int
screenY
int
- Returns: bool
public Bitmap RenderToBitmap(uint width, uint height)
width
uint
height
uint
- Returns: Bitmap
public void Rotate(double yawDeg, double pitchDeg, double rollDeg)
yawDeg
double
pitchDeg
double
rollDeg
double
public bool ScreenToPoint(Pln plane, int screenX, int screenY, out Pnt resultPnt)
plane
Pln
screenX
int
screenY
int
resultPnt
Pnt
- Returns: bool
public bool ScreenToPoint(int screenX, int screenY, out Pnt resultPnt)
screenX
int
screenY
int
resultPnt
Pnt
- Returns: bool
public Ax1 ScreenToViewAxis(int screenX, int screenY)
screenX
int
screenY
int
- Returns: Ax1
public void SetPredefinedView(ViewportController.PredefinedViews predefinedView)
predefinedView
ViewportController.PredefinedViews
public void Zoom(double value)
value
double
public void Zoom(Point pos, double value)
pos
Point
value
double
public void ZoomFitSelected()