DicomObjects.NET10 Documentation
DicomObjects Namespace / DicomImageFusion Class / SetViewPlane Method / SetViewPlane(Vector3,Vector3,Vector3,Single) Method
The coordinates of the centre of the plane
A vector defining the direction of view
The direction to be "up" in the resulting view.
The zoom factor to use - see notes in remarks
Example



In This Topic
    SetViewPlane(Vector3,Vector3,Vector3,Single) Method
    In This Topic
    Set the view plane for the image, based on centre of the plane, the direction of view, and the "Up" direction.
    Syntax
    'Declaration
     
    
    Public Overloads Sub SetViewPlane( _
       ByVal Centre As OpenTK.Mathematics.Vector3, _
       ByVal Normal As OpenTK.Mathematics.Vector3, _
       ByVal Up As OpenTK.Mathematics.Vector3, _
       ByVal Zoom As Single _
    ) 
    'Usage
     
    
    Dim instance As DicomImageFusion
    Dim Centre As OpenTK.Mathematics.Vector3
    Dim Normal As OpenTK.Mathematics.Vector3
    Dim Up As OpenTK.Mathematics.Vector3
    Dim Zoom As Single
     
    instance.SetViewPlane(Centre, Normal, Up, Zoom)
    public void SetViewPlane( 
       OpenTK.Mathematics.Vector3 Centre,
       OpenTK.Mathematics.Vector3 Normal,
       OpenTK.Mathematics.Vector3 Up,
       float Zoom
    )
    public:
    void SetViewPlane( 
       OpenTK.Mathematics.Vector3 Centre,
       OpenTK.Mathematics.Vector3 Normal,
       OpenTK.Mathematics.Vector3 Up,
       float Zoom
    ) 

    Parameters

    Centre
    The coordinates of the centre of the plane
    Normal
    A vector defining the direction of view
    Up
    The direction to be "up" in the resulting view.
    Zoom
    The zoom factor to use - see notes in remarks
    Remarks

    All coordinates are in "real world" coordinates, measured in mm.

    Zoom is relative to a "standard" zoom which is internally calculated to include the whole image within the visible display area.

    Example
    DicomImage image = new DicomImage("your_3D_dicom_image.dcm);
    DicomVolume volume = new DicomVolume(image);
    DicomImage3D image3D = new DicomImage3D(volume, RenderMode3D.MPR);
    DicomImageCollection collection3D = new DicomImageCollection()
    {
        image3D
    }
    DicomImageFusion fusedImage = new DicomImageFusion(collection3D);
                        
    Vector3 centre = new Vector3(100, 50, 25);
    Vector3 normal = new Vector3(0, 0, -1);
    Vector3 up = new Vector3(0, 1, 0);
    float zoom = 1.0f;
    fusedImage.SetViewPlane(centre, normal, up, zoom);
    Viewer.Images.Add(fusedImage);
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also