Viewport Class
Public Class Viewport
Inherits DisposableBase
Implements IViewport, _
ICloneable, _
IUserInterfaceElement
This language is not supported or no code example is available.
public class Viewport : DisposableBase,
IViewport,
ICloneable,
IUserInterfaceElement
This language is not supported or no code example is available.
Name | Description | |
---|---|---|
AutoHideLabels | Gets or sets the auto hide labels flag. If true labels are hidden automatically when behind the model. | |
Background | Gets or sets the background settings. | |
Camera | Gets or sets the Camera settings. | |
CenterOfRotation | Gets the current center of rotation. | |
CoordinateSystemIcon | Gets or sets the coordinate system icon settings. | |
DisplayMode | Gets or sets the active display mode. | |
Disposed | (inherited from DisposableBase). | |
Grid | Gets the first planar grids settings. | |
Grids | Gets or sets the planar grids settings. | |
InitialView | Gets or sets the active initial view. | |
InstanceId | For internal use only. Gets the instance id for the logging. | |
Labels | Master label collection. | |
Legends | Gets or sets the legend objects. | |
Location | The coordinates of the upper-left corner of the viewport relative to the upper-left corner of its container. | |
Navigation | Gets or sets the Navigation settings for the navigationType.Walk and navigationType.Fly camera navigation modes. | |
OriginSymbol | Gets the first origin symbol settings. | |
OriginSymbols | Gets or sets the OriginSymbols settings array. | |
Pan | Gets or sets the Pan settings. | |
Rotate | Gets or sets the Rotate settings. | |
SavedViews | Gets or sets the manager of the saved views. | |
ShowLabels | Labels visibility status. | |
ShowVertexIndices | If true, the model vertices are displayed. | |
ShowVertices | If true, the model vertices are displayed. | |
Size | The size of the viewport in pixels. | |
SmallSize | Obsolete. Gets the estimated small size value in pixels. | |
SmallSizeMoving | Gets the estimated small size value for the moving frames in pixels. | |
SmallSizeRatio |
Obsolete.
Gets or sets the ratio to classify small entities. Small entities are hid during dynamic movements (Zoom/Pan/Rotate). Default value is 0.01. Use zero to disable. This ratio is used by ComputeSmallSize to estimate SmallSize value in pixels. |
|
SmallSizeRatioMoving |
Gets or sets the ratio to classify small entities. Small entities are hid during dynamic movements (Zoom/Pan/Rotate). Default value is 0.01. Use zero to disable. This ratio is used by ComputeSmallSize to estimate SmallSizeMoving value in pixels. |
|
SmallSizeRatioStill |
Gets or sets the ratio to classify small entities. Small entities are hid on the still frames. Default value is 0. Use zero to disable. This ratio is used by ComputeSmallSizeStill to estimate SmallSizeStill value in pixels. |
|
SmallSizeStill | Gets the estimated small size value for the still frames in pixels. | |
SortLabels | Sorts the Labels using the depth from the viewer. | |
ToolBar | Gets the first ToolBar settings. | |
ToolBars | Gets or sets the ToolBars settings. | |
VertexSize | Gets or sets the vertex visualization size (meaningful only if ShowVertices is true). | |
ViewCubeIcon | Gets or sets the view cube icon settings. | |
Zoom | Gets or sets the Zoom settings. |
Name | Description | |
---|---|---|
AdjustNearAndFarPlanes() | Adjusts camera near and far planes based on model extents and on origin symbol, grid and shadow visibility status. | |
Clone() | Creates a new object that is a copy of the current instance. | |
CompileBackground() | Compiles the background, used by the designer. | |
CompileUserInterfaceElements() | Compiles 3D user interface elements like the origin symbol, the bitmap background, the FEM restraint and load symbols, etc. | |
ComputeSmallSize() | Obsolete. Computes the SmallSizeMoving value as SmallSizeRatioMoving * Min(Size.Width, Size.Height) | |
ComputeSmallSizeMoving() | Computes the SmallSizeMoving value as SmallSizeRatioMoving * Min(Size.Width, Size.Height) | |
ComputeSmallSizeStill() | Computes the SmallSizeStill value as SmallSizeRatioStill * Min(Size.Width, Size.Height) | |
Contains(Point) | // Tells if the viewport contains the given point in screen coordinates (0,0 on top-left) // | |
CopyToClipboardRaster(float, bool, bool) | Copies a raster image of the current viewport scene on the clipboard. | |
CopyToClipboardRaster(float, double, bool, bool) | Copies a raster image of the current viewport scene on the clipboard. | |
Dispose() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. | |
DrawBackground(RenderContextBase, bool, float, Color, Transformation) | Draws the viewport background. | |
DrawForBitmap(object) | ||
DrawLabels(RenderContextBase) | Draws the labels. | |
DrawOverlay(DrawSceneParams) | Draws overlaying UI elements. | |
DrawText(int, int, string, Font, Color, Color, ContentAlignment) | Draws a text on the Model's client area. | |
DrawText(int, int, string, Font, Color, Color, ContentAlignment, RotateFlipType) | Draws a text on the Model's client area. | |
DrawText(int, int, string, Font, Color, ContentAlignment) | Draws a text on the Model's client area. | |
Equals(Object) | Determines whether the specified object is equal to the current object. (inherited from Object). | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (inherited from Object). | |
FireLabelSelectionChanged(SelectionChangedEventArgs) | ||
GetBitmapSizeToPrintInWorldUnits(GraphicsUnit, linearUnitsType, double) | Gets the size to print the viewport so that world units in the model correspond to world units on paper. | |
GetBounds(Viewport) | Obsolete. | |
GetBounds() | Gets the bounds rectangle in screen coordinates. | |
GetCameraFrustum() | Gets the planes of the viewport camera frustum. | |
GetCameraRotation(viewType, Quaternion) | Gets the Quaternion that describes the orientation of the given view. | |
GetCameraRotation(viewType) | ||
GetHashCode | Serves as the default hash function. (inherited from Object). | |
GetNormal(Entity, int, int, int) | ||
GetThumbnail(int, Color) | Returns a thumbnail bitmap of the Viewport. The maximum size is 256x256. | |
GetThumbnail(Viewport, Size, Color) | Gets a bitmap of the user interface element for designer mode only. | |
GetType | Gets the Type of the current instance. (inherited from Object). | |
GetViewFrame() | Gets the viewport bounds. | |
Invalidate() | ||
IsCameraAnimating() | Tells if the Camera is performing an animation. | |
MemberwiseClone | Creates a shallow copy of the current Object. (inherited from Object). | |
ObservableCollectionPropertyChanged(object, NotifyCollectionChangedEventArgs) | For internal use only. (inherited from DisposableBase). | |
OrientCamera(Point3D, Point3D) | Orients the Camera between the two specified points. | |
PanCamera(Point, Point) | Pans the view from one screen point to the other. | |
PanCamera(Point, Point, bool) | Pans the view from one screen point to the other. | |
Project(IList<Point3D>, int) | Projects a list of points on the screen. | |
Project(int, double, double, double, out double, out double, out double) | Maps world coordinates to screen coordinates. | |
RaisePropertyChangedEvent(object, DependencyProperty) | For internal use only. (inherited from DisposableBase). | |
RenderToBitmap(Rectangle, Size, bool, bool) | Returns an image of the current Model scene. The image can be scaled even to a poster size one. | |
RenderToBitmap(RectangleF, Size, double, Color, bool, bool) | Returns an image of the current Model scene. The image can be scaled even to a poster size one. | |
RenderToBitmap(RectangleF, Size, double, bool, bool) | Returns an image of the current Model scene. The image can be scaled even to a poster size one. | |
RenderToBitmap(RectangleF, Size, double, bool, bool, bool) | Returns an image of the current Model scene. The image can be scaled even to a poster size one. | |
RenderToBitmap(RectangleF, double, bool, bool) | Returns an image of the current Model scene. The image can be scaled even to a poster size one. | |
RenderToBitmap(RectangleF, double, double, bool, bool) | Returns an image of the current Model scene. The image can be scaled even to a poster size one. | |
RenderToBitmap(Size, bool, bool) | Returns an image of the current Model scene. The image can be scaled even to a poster size one. | |
RenderToBitmap(Size, double, bool, bool) | Returns an image of the current Model scene. The image can be scaled even to a poster size one. | |
RenderToBitmap(Size, double, bool, bool, bool) | Returns an image of the current Model scene. The image can be scaled even to a poster size one. | |
RenderToBitmap(double) | Returns an image of the current Model viewport scene. The image can be scaled even to a poster size one. | |
RenderToBitmap(double, bool, bool) | Returns an image of the current Model scene. The image can be scaled even to a poster size one. | |
RenderToBitmap(double, double, bool, bool) | Returns an image of the current Model scene. The image can be scaled even to a poster size one. | |
RestoreView(Camera) | Restores the previously saved view. | |
RotateCamera(Point, Point) | Rotates the view simulating the movement between two mouse position. | |
RotateCamera(Point, Point, bool) | Rotates the view simulating the movement between two mouse position. | |
RotateCamera(Vector3D, double, bool) | Rotates the view of the specified amount. | |
RotateCamera(Vector3D, double, bool, bool) | Rotates the view of the specified amount. | |
RotateCamera(Vector3D, Vector3D) | Rotates the view of the specified amount. | |
RotateCamera(Vector3D, Vector3D, bool) | Rotates the view of the specified amount. | |
RotateCamera(int, int) | Rotates the view of the specified amount. | |
RotateCamera(int, int, bool) | Rotates the view of the specified amount. | |
RotateCamera(Point) | Sets the view direction as the normal of the plane under the mouse cursor. | |
SaveView(out Camera) | Stores the current view. | |
ScaleForDPI() | Scales the element for high DPI settings. | |
ScreenToPlane(IList<Point>, Plane) | Maps screen coordinates to world coordinates. | |
ScreenToPlane(IList<Point>, PlaneEquation) | Maps screen coordinates to world coordinates. | |
ScreenToPlane(Point, Plane, out Point3D) | Maps screen coordinates to world coordinates. | |
ScreenToPlane(Point, PlaneEquation, out Point3D) | Maps screen coordinates to world coordinates. | |
ScreenToViewport(Point) | Converts Screen coordinates (0 on top of control) to Viewport coordinates (0 on top of viewport) | |
ScreenToViewport(PointF) | Converts Screen coordinates (0 on top of control) to Viewport coordinates (0 on top of viewport) | |
ScreenToWorld(Point) | Maps screen coordinates to world coordinates. | |
ScreenToWorld(IList<Point>) | Maps screen coordinates to world coordinates. | |
SetView(Quaternion, Point3D, double, double) | Sets the specified view by doing an animation. | |
SetView(Quaternion, Point3D, double, double, bool) | Sets the specified view by doing an animation. | |
SetView(Quaternion, bool, bool) | Sets the specified view. | |
SetView(Quaternion, bool, bool, int, bool, int) | Sets the specified view. | |
SetView(Vector3D, Vector3D, bool, int, bool) | Sets the view direction of the camera to the specified direction. | |
SetView(Vector3D, Vector3D, bool, bool, int, bool) | Sets the view direction of the camera to the specified direction. | |
SetView(Vector3D, bool, int, bool) | Sets the view direction of the camera to the specified direction. | |
SetView(Vector3D, bool, bool, int, bool) | Sets the view direction of the camera to the specified direction. | |
SetView(viewType) | Sets the specified view. | |
SetView(viewType, bool, bool) | Sets the specified view. | |
SetView(viewType, bool, bool, int, bool, int) | Sets the specified view. | |
StopCameraAnimation() | Stops the camera animation. | |
ToString() | Returns a string that represents the current object. | |
UnProject(IList<Point3D>, int) | Maps viewport coordinates to world coordinates. | |
UnProject(int, double, double, double, out double, out double, out double) | Maps viewport coordinates to world coordinates. | |
Update(IUserInterfaceElement) | ||
UpdateEnvironment() | Updates the environment control in both desing-time and run-time mode. If necessary adjust near and far planes to accomodate origin symbols of various sizes. | |
ViewportToCameraScreen(Point) | Converts Viewport coordinates (0 on top of viewport) to Camera Screen coordinates (0 on bottom of control) | |
ViewportToScreen(Point) | Converts Viewport coordinates (0 on top of viewport) to Screen coordinates (0 on top of control) | |
WorldToScreen(Point3D) | Maps world coordinates to screen coordinates. | |
WorldToScreen(double, double, double) | Maps world coordinates to screen coordinates. | |
WorldToScreen(IList<Point3D>) | Maps world coordinates to screen coordinates. | |
WriteToFileRaster(float, double, string, ImageFormat, bool, bool) | Saves a raster image of the current viewport scene on disk. | |
WriteToFileRaster(float, string, ImageFormat, bool, bool) | Saves a raster image of the current viewport scene on disk. | |
ZoomCamera(Point, int) | Zooms the view of the specified amount. | |
ZoomCamera(Point, int, bool) | Zooms the view of the specified amount. | |
ZoomCamera(int) | Zooms the view of the specified amount. | |
ZoomCamera(int, bool) | Zooms the view of the specified amount. | |
ZoomCamera(int, double) | Zooms the view of the specified amount. | |
ZoomCamera(int, double, bool) | Zooms the view of the specified amount. | |
ZoomFit() | Fits the entire model in the viewport control's client area. | |
ZoomFit(IList<Entity>, bool, perspectiveFitType) | Fits the entire model in the viewport control's client area. | |
ZoomFit(IList<Entity>, bool, perspectiveFitType, int, bool) | Fits the entire model in the viewport control's client area. | |
ZoomFit(IList<SelectedItem>) | Fits the selected items. | |
ZoomFit(IList<SelectedItem>, int) | Fits the selected items. | |
ZoomFit(IList<SelectedItem>, int, perspectiveFitType) | Fits the selected items. | |
ZoomFit(bool, perspectiveFitType) | Fits the entire model in the viewport control's client area. | |
ZoomFit(bool, perspectiveFitType, int) | Fits the entire model in the viewport control's client area. | |
ZoomFit(int) | Fits the entire model in the viewport control's client area. | |
ZoomFitSelectedLeaves() | Fits the selected entities, including the ones inside BlockReferences. | |
ZoomFitSelectedLeaves(int) | Fits the selected entities, including the ones inside BlockReferences. | |
ZoomFitSelectedLeaves(int, perspectiveFitType) | Fits the selected entities, including the ones inside BlockReferences. | |
ZoomWindow(Point, Point) | Zooms to the specified window. |
Name | Description | |
---|---|---|
LabelSelectionChanged | Occurs when label selection has changed. | |
PropertyChanged | For internal use only. (inherited from DisposableBase). | |
UpdateGraphics | Occurs when graphics is updated. | |
ViewRestored | Occurs when a view is restored from the SavedViewsManager. | |
ViewSaved | Occurs when a view is saved in the SavedViewsManager. |
Name | Description | |
---|---|---|
SavedViewsManager | Class that manages the saved views stack. |
Name | Description | |
---|---|---|
UpdateGraphicsHandler | ||
ViewRestoredHandler | Represents a method that will handle the Viewport.ViewRestored event. | |
ViewSavedEventHandler | Represents a method that will handle the Viewport.ViewSaved event. |
Name | Description | |
---|---|---|
PropertyChangedEvent | For internal use only. (inherited from DisposableBase). |