DicomObjects.NET10 Documentation
DicomObjects Namespace / DicomImageFusion Class / TranslateMm Method
The offset, measured in absolute real world mm
Example



In This Topic
    TranslateMm Method (DicomImageFusion)
    In This Topic
    Move the centre point of the view by the specified offset
    Syntax
    'Declaration
     
    
    Public Sub TranslateMm( _
       ByVal Offset As OpenTK.Mathematics.Vector3 _
    ) 
    'Usage
     
    
    Dim instance As DicomImageFusion
    Dim Offset As OpenTK.Mathematics.Vector3
     
    instance.TranslateMm(Offset)
    public void TranslateMm( 
       OpenTK.Mathematics.Vector3 Offset
    )
    public:
    void TranslateMm( 
       OpenTK.Mathematics.Vector3 Offset
    ) 

    Parameters

    Offset
    The offset, measured in absolute real world mm
    Remarks
    For a DicomImageFusion object, this passes the transformation on to all images in the collection which support IProjection
    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 offset = new Vector3(10, 5, -3);
    fusedImage.TranslateMm(offset);
    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