Eyeshot 11 WinForms API Reference
WinForms Assembly / devDept.Eyeshot Namespace / ViewportLayout Class / SetView Method / SetView(Vector3D,Vector3D,Boolean,Int32,Boolean) Method
The new camera direction.
The camera up vector
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

In This Topic
    SetView(Vector3D,Vector3D,Boolean,Int32,Boolean) Method
    In This Topic
    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, _
       Optional ByVal margin As Integer, _
       Optional ByVal selectedOnly As Boolean _
    ) 
    public void SetView( 
       Vector3D direction,
       Vector3D upVector,
       bool fit,
       int margin,
       bool selectedOnly
    )

    Parameters

    direction
    The new camera direction.
    upVector
    The camera up vector
    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