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
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.
DicomImage image = new DicomImage("your_3D_dicom_image.dcm"); DicomVolume volume = new DicomVolume(image); RenderMode3D renderMode = RenderMode3D.VR; DicomImage3D image3D = new DicomImage3D(volume, renderMode); Point3D centre = new Point3D(volume.Centre.X, volume.Centre.Y, volume.Centre.Z); Vector3D normal = new Vector3D(0, 0, -1); Vector3D up = new Vector3D(0, 1, 0); float zoom = 0.5f; image3D.SetViewPlane(centre, normal, up, zoom); Viewer.Images.Add(image3D);