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

WPF Assembly > devDept.Eyeshot Namespace > Viewport Class > SetView Method : SetView(Vector3D,Vector3D,Boolean,Boolean,Int32,Boolean) Method
The new camera direction
The camera up vector
if true fits the scene in the viewport
If true performs an animation when changing the view
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 upVector As Vector3D, _
   ByVal fit As Boolean, _
   ByVal animate As Boolean, _
   Optional ByVal margin As Integer, _
   Optional ByVal selectedOnly As Boolean _
) 
public void SetView( 
   Vector3D direction,
   Vector3D upVector,
   bool fit,
   bool animate,
   int margin,
   bool selectedOnly
)

Parameters

direction
The new camera direction
upVector
The camera up vector
fit
if true fits the scene in the viewport
animate
If true performs an animation when changing the view
margin
Pixels margin from the border, if fit is true
selectedOnly
If fit is true, fits only the selected entities
Remarks
The direction points outside the screen, so the Camera is actually looking in the opposite direction.
See Also

Reference

Viewport Class
Viewport Members
Overload List