Eyeshot 10 WinForms API Reference
SetView(Vector3D,Boolean,Int32,Boolean) Method

WinForms Assembly > devDept.Eyeshot Namespace > ViewportLayout Class > SetView Method : SetView(Vector3D,Boolean,Int32,Boolean) Method
The new camera direction.
if true fits the scene in the viewport
Pixels margin from the border, if fit is true
If fit is true, fits only the selected entities
Sets the view direction of the camera to the specified direction.
Syntax
'Declaration
 
Public Overloads Sub SetView( _
   ByVal direction As Vector3D, _
   ByVal fit As Boolean, _
   Optional ByVal margin As Integer, _
   Optional ByVal selectedOnly As Boolean _
) 
public void SetView( 
   Vector3D direction,
   bool fit,
   int margin,
   bool selectedOnly
)

Parameters

direction
The new camera direction.
fit
if true fits the scene in the viewport
margin
Pixels margin from the border, if fit is true
selectedOnly
If fit is true, fits only the selected entities
Remarks
The orientation of the camera is performed with an animation if AnimateCamera is trueThe direction points outside the screen, so the Camera is actually looking in the opposite direction.
See Also

Reference

ViewportLayout Class
ViewportLayout Members
Overload List