IMHOTEP Framework
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Pages
Classes | Public Member Functions | Public Attributes | List of all members
DicomDisplayImage Class Reference
Inheritance diagram for DicomDisplayImage:
Inheritance graph
[legend]
Collaboration diagram for DicomDisplayImage:
Collaboration graph
[legend]

Public Member Functions

void OnEnable ()
 
void OnDisable ()
 
void OnScroll (PointerEventData eventData)
 
void OnPointerDown (PointerEventData eventData)
 
void OnPointerUp (PointerEventData eventData)
 
void OnPointerHover (PointerEventData eventData)
 
Vector2 uvToPixel (Vector2 uv)
 
Vector3 pixelTo3DPos (Vector2 pixel)
 
Vector2 imageUVtoLayerUV (Vector2 imageUV)
 
void Update ()
 
void SetLevel (float newLevel)
 
void SetWindow (float newWindow)
 
int savedLayerForSeriesUID (string seriesUID)
 
void LayerChanged (float newVal)
 
void SetDicom (DICOM2D dicom)
 
void ApplyScaleAndPosition ()
 
void FlipHorizontal ()
 
void FlipVertical ()
 
void SetMask (Texture2D texture)
 
void ResetMask ()
 

Public Attributes

UI.Widget widget
 

Detailed Description

Definition at line 10 of file DicomDisplayImage.cs.

Member Function Documentation

Vector3 DicomDisplayImage.pixelTo3DPos ( Vector2  pixel)
inline

Transform 2D pixel on current slice to 3D position

Note
This only works on slices at the moment, not in volumes.

Definition at line 143 of file DicomDisplayImage.cs.

void DicomDisplayImage.ResetMask ( )
inline

Revert the DICOM mask to an empty mask

Definition at line 488 of file DicomDisplayImage.cs.

int DicomDisplayImage.savedLayerForSeriesUID ( string  seriesUID)
inline

If a series was previously loaded, reload the last shown layer:

Definition at line 351 of file DicomDisplayImage.cs.

void DicomDisplayImage.SetMask ( Texture2D  texture)
inline

Set an additional RGB texture which is drawn over the DICOM Can be used to draw annotations/labels, additional info etc. on the DICOM

Definition at line 478 of file DicomDisplayImage.cs.

Vector2 DicomDisplayImage.uvToPixel ( Vector2  uv)
inline

Given a uv coordinate on the DicomDisplayImage (for example a mouse position), calculate which pixel was hit. This uses the Dicom's current displacement and zooming to calculate the pixel

Definition at line 129 of file DicomDisplayImage.cs.


The documentation for this class was generated from the following file: