Logo Search packages:      
Sourcecode: pixelmed version File versions  Download package

com::pixelmed::display::SingleImagePanel Class Reference

Inheritance diagram for com::pixelmed::display::SingleImagePanel:

com::pixelmed::display::SingleImagePanelWithLineDrawing com::pixelmed::display::SingleImagePanelWithRegionDetection com::pixelmed::display::SingleImagePanelWithRegionDrawing

List of all members.


Detailed Description

Implements a component that can display a single or multi-frame image in a single panel with window center/width adjustment, scrolling through frames of a multi-frame image, resizing to the size of the panel, annotation of pre-defined text and shapes, feedback of cursor position status (2D and 3D position, pixel value, window).

Includes a main() method for testing that will display a single image from a file in a JFrame.

About the most minimal code to display a single DICOM image looks like this:

 JFrame p = new JFrame();
 p.add(new SingleImagePanel(new SourceImage(filename)));
 p.setBackground(Color.BLACK);
 p.setSize(512,512);
 p.setVisible(true);
 

See also:
com.pixelmed.display.SourceImage
Author:
dclunie

Definition at line 108 of file SingleImagePanel.java.


Public Member Functions

void deconstruct ()
void dirty (SourceImage sImg)
void dirty ()
void dirtyPanned ()
void dirtySource (SourceImage sImg)
void dirtySource ()
void dirtyWindowing ()
void displayReset ()
void displaySelectedMagnificationRatio (double ratio)
GeometryOfVolume getImageGeometry ()
final Vector getPersistentDrawingShapes ()
final Vector getSelectedDrawingShapes ()
void keyPressed (KeyEvent e)
void keyReleased (KeyEvent e)
void keyTyped (KeyEvent e)
void mouseClicked (MouseEvent e)
void mouseDragged (MouseEvent e)
void mouseEntered (MouseEvent e)
void mouseExited (MouseEvent e)
void mouseMoved (MouseEvent e)
void mousePressed (MouseEvent e)
void mouseReleased (MouseEvent e)
void paintComponent (Graphics g)
final void setDemographicAndTechniqueAnnotations (DemographicAndTechniqueAnnotations demographicAndTechniqueAnnotations, String demographicAndTechniqueFontName, int demographicAndTechniqueFontStyle, int demographicAndTechniqueFontSize, Color demographicAndTechniqueColor)
final void setDisplayedAreaSelection (DisplayedAreaSelection displayedAreaSelection)
final void setLocalizerShapes (Vector shapes)
final void setOrientationAnnotations (OrientationAnnotations orientationAnnotations, String orientationFontName, int orientationFontStyle, int orientationFontSize, Color orientationColor, boolean leftSide)
final void setOrientationAnnotations (OrientationAnnotations orientationAnnotations, String orientationFontName, int orientationFontStyle, int orientationFontSize, Color orientationColor)
final void setPersistentDrawingShapes (Vector shapes)
final void setPixelSpacingInSourceImage (double pixelSpacingInSourceImage, String typeOfPixelSpacing)
final void setPixelSpacingInSourceImage (double pixelSpacingInSourceImage)
final void setPreDefinedShapes (Vector shapes)
final void setPreTransformImageRelativeCoordinates (AffineTransform transform)
final void setSelectedDrawingShapes (Vector shapes)
final void setshowOverlays (boolean showOverlays)
final void setShowZoomFactor (boolean showZoomFactor, boolean leftSide, double pixelSpacingInSourceImage, String typeOfPixelSpacing)
final void setShowZoomFactor (boolean showZoomFactor, boolean leftSide, double pixelSpacingInSourceImage)
final void setSideAndViewAnnotationString (String annotationString, int verticalOffset, String annotationFontName, int annotationFontStyle, int annotationFontSize, Color annotationColor, boolean leftSide)
final void setVOIFunctionToLinear ()
final void setVOIFunctionToLogistic ()
final void setVolumeLocalizationShapes (Vector shapes)
 SingleImagePanel (SourceImage sImg)
 SingleImagePanel (SourceImage sImg, EventContext typeOfPanelEventContext)
 SingleImagePanel (SourceImage sImg, EventContext typeOfPanelEventContext, GeometryOfVolume imageGeometry)
 SingleImagePanel (SourceImage sImg, EventContext typeOfPanelEventContext, int[] sortOrder, Vector preDefinedShapes, Vector preDefinedText, GeometryOfVolume imageGeometry)

Static Public Member Functions

static final BufferedImage applyVOILUT (BufferedImage src, double center, double width, double identityCenter, double identityWidth, boolean signed, boolean inverted, double useSlope, double useIntercept, boolean hasPad, int pad, int padRangeLimit, int numberOfEntries, int firstValueMapped, int bitsPerEntry, short[] grayTable, int entryMin, int entryMax, int topOfEntryRange)
static final BufferedImage applyWindowCenterAndWidthLinear (BufferedImage src, double center, double width, boolean signed, boolean inverted, double useSlope, double useIntercept, boolean hasPad, int pad, int padRangeLimit)
static final BufferedImage applyWindowCenterAndWidthLogistic (BufferedImage src, double center, double width, boolean signed, boolean inverted, double useSlope, double useIntercept, boolean hasPad, int pad, int padRangeLimit)
static final BufferedImage applyWindowCenterAndWidthWithPaletteColor (BufferedImage src, double center, double width, boolean signed, boolean inverted, double useSlope, double useIntercept, boolean hasPad, int pad, int padRangeLimit, int largestGray, int bitsPerEntry, int numberOfEntries, short[] redTable, short[] greenTable, short[] blueTable)
static void deconstructAllSingleImagePanelsInContainer (Container container)
static void main (String arg[])

Protected Member Functions

void establishInitialWindowOrVOILUT ()
void finalize () throws Throwable
Point getImageCoordinateFromWindowCoordinate (double xw, double yw)
int getSourceImageHeight ()
int getSourceImageWidth ()

Protected Attributes

double[] currentLocationIn3DSpace = new double[3]
Vector interactiveDrawingShapes
LeftMouseMode leftMouseMode = new LeftMouseMode()
Vector localizerShapes
OrientationAnnotations orientationAnnotations = null
Color orientationColor
Font orientationFont
DisplayedAreaSelection originalDisplayedAreaSelection = null
Vector persistentDrawingShapes
Vector persistentDrawingText
double pixelSpacingInSourceImage = 0
Vector preDefinedShapes
Vector preDefinedText
Vector selectedDrawingShapes
boolean showOrientationsLeftSide = false
boolean showSideAndViewAnnotationLeftSide = false
boolean showZoomFactor = false
boolean showZoomFactorLeftSide = false
Color sideAndViewAnnotationColor
Font sideAndViewAnnotationFont
String sideAndViewAnnotationString
int sideAndViewAnnotationVerticalOffset
String typeOfPixelSpacing
boolean useVOILUTNotFunction
int voiLUTBitsPerEntry
short[] voiLUTData
int voiLUTEntryMax
int voiLUTEntryMin
int voiLUTFirstValueMapped
double voiLUTIdentityWindowCenter
double voiLUTIdentityWindowWidth
int voiLUTNumberOfEntries
int voiLUTTopOfEntryRange
Vector volumeLocalizationShapes
double windowCenter
double windowWidth

Package Attributes

BufferedImage cachedPreWindowedImage
BufferedImage cachedResizedImage
BufferedImage cachedResizedSelectedRegionImage
Rectangle cachedWindowSize
int currentSrcImageIndex
int[] currentSrcImageSortOrder
int currentVOITransformInUse
DisplayShutter displayShutter
boolean hasPad
int imgMax
int imgMin
int lastmiddley
int lastx
int lasty
ModalityTransform modalityTransform
int offsetDrawingOfResizedSelectedRegionImageX
int offsetDrawingOfResizedSelectedRegionImageY
Overlay overlay
int pad
int padRangeLimit
double panningMultiplier = 1
RealWorldValueTransform realWorldValueTransform
SourceImage sImg
SUVTransform suvTransform
EventContext typeOfPanelEventContext
double useIntercept
double useSlope
VOITransform voiTransform
double windowingMultiplier = 1

Private Member Functions

void doCommonConstructorStuff (SourceImage sImg, EventContext typeOfPanelEventContext, int[] sortOrder, Vector preDefinedShapes, Vector preDefinedText, GeometryOfVolume imageGeometry)

Private Attributes

int bitsPerEntry
short blueTable []
DemographicAndTechniqueAnnotations demographicAndTechniqueAnnotations = null
Color demographicAndTechniqueColor
Font demographicAndTechniqueFont
int firstvalueMapped
short greenTable []
GeometryOfVolume imageGeometry
AffineTransform imageToWindowCoordinateTransform = null
boolean inverted
int largestGray
int numberOfEntries
OurFrameSelectionChangeListener ourFrameSelectionChangeListener
OurFrameSortOrderChangeListener ourFrameSortOrderChangeListener
OurGraphicDisplayChangeListener ourGraphicDisplayChangeListener
OurVOIFunctionChangeListener ourVOIFunctionChangeListener
OurWindowCenterAndWidthChangeListener ourWindowCenterAndWidthChangeListener
AffineTransform preTransformImageRelativeCoordinates = null
short redTable []
BufferedImageUtilities resampler = null
boolean showOverlays = true
int signBit
boolean signed
int signMask
boolean useConvertToMostFavorableImageType
DisplayedAreaSelection useDisplayedAreaSelection = null
int useVOIFunction = 0
AffineTransform windowToImageCoordinateTransform = null

Static Private Attributes

static final String identString = "@(#) $Header: /userland/cvs/pixelmed/imgbook/com/pixelmed/display/SingleImagePanel.java,v 1.164 2009/11/06 13:39:24 dclunie Exp $"

Classes

class  LeftMouseMode
class  OurFrameSelectionChangeListener
class  OurFrameSortOrderChangeListener
class  OurGraphicDisplayChangeListener
class  OurVOIFunctionChangeListener
class  OurWindowCenterAndWidthChangeListener

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

Generated by  Doxygen 1.6.0   Back to index