Viewport constructor.
Syntax
'Declaration
Public Function New( _
ByVal As Point, _
ByVal As Size, _
ByVal As BackgroundSettings, _
ByVal As Camera, _
ByVal () As ToolBar, _
ByVal As displayType, _
ByVal As Boolean, _
ByVal As Boolean, _
ByVal As Boolean, _
ByVal As Boolean, _
ByVal () As Grid, _
ByVal As Boolean, _
ByVal As RotateSettings, _
ByVal As ZoomSettings, _
ByVal As PanSettings, _
ByVal As NavigationSettings, _
ByVal As Viewport.SavedViewsManager, _
ByVal As viewType _
)
public Viewport(
Point ,
Size ,
BackgroundSettings ,
Camera ,
ToolBar[] ,
displayType ,
bool ,
bool ,
bool ,
bool ,
Grid[] ,
bool ,
RotateSettings ,
ZoomSettings ,
PanSettings ,
NavigationSettings ,
Viewport.SavedViewsManager ,
viewType
)
Parameters
- location
- Coordinates of the upper-left corner of the viewport relative to the upper-left corner of its container
- size
- Size of the viewport in pixels
- background
- Background settings
- camera
- Camera settings
- toolBars
- Toolbars settings
- displayMode
- Display mode
- showLabels
- Labels visibility status
- autoHideLabels
- If true, labels are hidden automatically when behind the model
- showVertices
- If true, the model vertices are displayed
- showVertexIndices
- If true and ShowVertices is also true the model vertex indices are displayed
- grids
- Planar grids settings
- sortLabels
- If true, sorts the Labels using the depth from the viewer
- rotate
- Rotate settings
- zoom
- Zoom settings
- pan
- Pan settings
- navigation
- Settings for the Camera.navigationType.Walk and Camera.navigationType.Fly camera navigation modes
- savedViews
- The saved views manager
- initialView
- Initial View
See Also