DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomImage3D Class / SetViewPlane Method / SetViewPlane(Plane,Boolean,Single) Method
Controls whether the view is set to axial, sagital, coronal, or left unchanged
Controls whether to recentre the view to point to the centre of the image volume
The zoom factor to use - see notes in remarks
Example

In This Topic
    SetViewPlane(Plane,Boolean,Single) Method
    In This Topic
    Set the view plane for the image, to one of 3 pre-defined views, with optional reset of centre and zoom
    Syntax
    'Declaration
     
    
    Public Overloads Sub SetViewPlane( _
       ByVal Plane As Plane, _
       ByVal Recentre As System.Boolean, _
       ByVal Zoom As System.Single _
    ) 
    public void SetViewPlane( 
       Plane Plane,
       System.bool Recentre,
       System.float Zoom
    )

    Parameters

    Plane
    Controls whether the view is set to axial, sagital, coronal, or left unchanged
    Recentre
    Controls whether to recentre the view to point to the centre of the image volume
    Zoom
    The zoom factor to use - see notes in remarks
    Remarks

    Zoom is relative to a "standard" zoom which is internally calculated to include the whole image within the visible display area. If Zoom is 0, then the Zoom of the image is unchanged.

    For simple usage to reset the view to be based on the centre point of the image volume, with a conventional anatomical viewpoint, use Recentre = true, and zoom = 1

    Example
    DicomImage image = new DicomImage("your_3D_dicom_image.dcm");
    DicomVolume volume = new DicomVolume(image);
                        
    RenderMode3D renderMode = RenderMode3D.MPR;
    DicomImage3D image3D = new DicomImage3D(volume, renderMode);
                        
    Plane plane = Plane.Axial;
    bool reCenter = true;
    float zoom = 1.0f;
    image3D.SetViewPlane(plane, reCenter, zoom);
    Viewer.Images.Add(image3D);
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also