|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectO2Plib.image.DrawOverlays
public class DrawOverlays
| Field Summary | |
|---|---|
static float |
MAX_ZOOM_MAG_VAL
min zoomMag value (zoom/dezoom) X magnification |
float |
maxZoomMagVal
|
static float |
MIN_ZOOM_MAG_VAL
|
float |
minZoomMagVal
|
| Constructor Summary | |
|---|---|
DrawOverlays()
DrawOverlays() - Constructor, use default min & max zoom values |
|
DrawOverlays(float minZoomMagVal,
float maxZoomMagVal)
DrawOverlays() - Constructor for setting different min max values for zoom |
|
| Method Summary | |
|---|---|
void |
drawBox(java.awt.Graphics g,
int zoomValue,
int x,
int y,
int w,
java.awt.Color color)
drawBox() - draw box of size w X w sign at the specified color. |
void |
drawCircle(java.awt.Graphics g,
int x,
int y,
int radius,
java.awt.Color color)
drawCircle() - draw circle at the specified color and radius. |
void |
drawHorizSlice(java.awt.Graphics g,
int pixWidth,
int pixHeight,
int maxGrayPixel,
int xImg,
int yImg,
int zoomValue,
char[] dispPixWorking)
drawHorizSlice() - draw horizontal slice of image at (xImg,yImg) if defined. |
void |
drawLowerRoiTickmark(java.awt.Graphics g,
java.awt.Point p,
java.awt.Color color,
int zoomValue)
drawLowerRoiTickmark() - draw region of interest tick marks if either ULHC or LRHC but not both exist. |
void |
drawPlus(java.awt.Graphics g,
int zoomValue,
int x,
int y,
java.awt.Color color)
drawPlus() - draw plus sign at the specified color. |
void |
drawROIrectangle(java.awt.Graphics g,
int x1,
int x2,
int y1,
int y2,
java.awt.Color color,
int zoomValue,
int curPixWidth,
int curPixHeight)
drawROIrectangle() - draw a Region Of Interest rectangle if legal |
void |
drawROIrectangle(java.awt.Graphics g,
Roi roi,
java.awt.Color color,
int curPixWidth,
int curPixHeight)
drawROIrectangle() - draw a Region Of Interest rectangle if legal |
void |
drawROIrectangle(java.awt.Graphics g,
Roi roi,
java.awt.Color color,
int zoomValue,
int curPixWidth,
int curPixHeight)
drawROIrectangle() - draw a Region Of Interest rectangle if legal |
void |
drawRoiTickmarks(java.awt.Graphics g,
Roi roi,
int zoomValue)
drawRoiTickmarks() - draw region of interest tick marks if either ULHC or LRHC but not both exist. |
void |
drawVertSlice(java.awt.Graphics g,
int pixWidth,
int pixHeight,
int maxGrayPixel,
int xImg,
int yImg,
int zoomValue,
char[] dispPixWorking)
drawVertSlice() - draw vertical slice of image at (xImg,yImg) if defined. |
java.awt.Point |
mapStateToZoom(float magVal,
java.awt.Point XYobjToMap)
mapStateToZoom() - map state point to zoomed/dezoomed point This can be used for remapping overlays. |
int |
mapStateToZoom(int magVal,
int XobjToMap)
mapStateToZoom() - map state point to zoomed/dezoomed point based on zoomMagVal. |
java.awt.Point |
mapStateToZoom(int magVal,
java.awt.Point XYobjToMap)
mapStateToZoom() - map state point to zoomed/dezoomed point based on zoomMagVal. |
java.awt.Point |
mapZoomToState(float magVal,
java.awt.Point zoomedXYobjToMap)
mapZoomToState() - map zoom point to state point This can be used for remapping overlays. |
int |
mapZoomToState(int magVal,
int zoomedXobjToMap)
mapZoomToState() - map zoom point to state point based on zoomMagVal. |
java.awt.Point |
mapZoomToState(int magVal,
java.awt.Point zoomedXYobjToMap)
mapZoomToState() - map zoom point to state point based on zoomMagVal. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final float MAX_ZOOM_MAG_VAL
public static final float MIN_ZOOM_MAG_VAL
public float maxZoomMagVal
public float minZoomMagVal
| Constructor Detail |
|---|
public DrawOverlays()
public DrawOverlays(float minZoomMagVal,
float maxZoomMagVal)
| Method Detail |
|---|
public java.awt.Point mapStateToZoom(float magVal,
java.awt.Point XYobjToMap)
magVal - float value of magificationmappedXYobj - to use if not null.
public java.awt.Point mapZoomToState(float magVal,
java.awt.Point zoomedXYobjToMap)
magVal - float value of magificationmappedXYobj - to use if not null, else create one.
public java.awt.Point mapStateToZoom(int magVal,
java.awt.Point XYobjToMap)
magVal - int value of magificationmappedXYobj - to use if not null.
public java.awt.Point mapZoomToState(int magVal,
java.awt.Point zoomedXYobjToMap)
magVal - int value of magification.zoomedXYobjToMap - to use if not null.
public int mapStateToZoom(int magVal,
int XobjToMap)
magVal - int value of magificationmappedXYobj - to use if not null.
public int mapZoomToState(int magVal,
int zoomedXobjToMap)
magVal - int value of magification.zoomedXYobjToMap - to use if not null.
public void drawHorizSlice(java.awt.Graphics g,
int pixWidth,
int pixHeight,
int maxGrayPixel,
int xImg,
int yImg,
int zoomValue,
char[] dispPixWorking)
g - is graphics contextpixWidth - image widthpixHeight - image heightmaxGrayPixel - maximum gray pixle valuexImg - x coord to draw sliceyImg - y coord to draw slicezoomValue - zoom magnificationdispPixWorking - char array with pixel data
public void drawVertSlice(java.awt.Graphics g,
int pixWidth,
int pixHeight,
int maxGrayPixel,
int xImg,
int yImg,
int zoomValue,
char[] dispPixWorking)
g - is graphics contextpixWidth - image widthpixHeight - image heightmaxGrayPixel - maximum gray pixle valuexImg - x coord to draw sliceyImg - y coord to draw slicezoomValue - zoom magnificationdispPixWorking - char array with pixel data
public void drawRoiTickmarks(java.awt.Graphics g,
Roi roi,
int zoomValue)
g - is graphics contextroi - is the Region Of InterestzoomValue - zoom magnification
public void drawLowerRoiTickmark(java.awt.Graphics g,
java.awt.Point p,
java.awt.Color color,
int zoomValue)
g - is graphics contextp - is point to draw tickszoomValue - zoom magnification
public void drawROIrectangle(java.awt.Graphics g,
int x1,
int x2,
int y1,
int y2,
java.awt.Color color,
int zoomValue,
int curPixWidth,
int curPixHeight)
g - is graphics contextx1 - is ULHCy1 - is ULHCx2 - is LRHCx2 - is LRHC *color - to usezoomValue - zoom magnificationcurPixWidth - width of imagecurPixHeight - height of image
public void drawROIrectangle(java.awt.Graphics g,
Roi roi,
java.awt.Color color,
int zoomValue,
int curPixWidth,
int curPixHeight)
g - is graphics contextx1 - is ULHCy1 - is ULHCx2 - is LRHCx2 - is LRHCcolor - to use *zoomValue - zoom magnificationcurPixWidth - width of imagecurPixHeight - height of image
public void drawROIrectangle(java.awt.Graphics g,
Roi roi,
java.awt.Color color,
int curPixWidth,
int curPixHeight)
g - is graphics contextroi - is the Region Of Interestcolor - to usecurPixWidth - width of imagecurPixHeight - height of image
public void drawBox(java.awt.Graphics g,
int zoomValue,
int x,
int y,
int w,
java.awt.Color color)
g - is graphics contextzoomValue - zoom magnificationx - is center of objecty - is center of objectw - is width and Width of object and should be ODDcolor - is color to draw
public void drawPlus(java.awt.Graphics g,
int zoomValue,
int x,
int y,
java.awt.Color color)
g - is graphics contextzoomValue - zoom magnificationx - is center of objecty - is center of objectcolor - is color to draw
public void drawCircle(java.awt.Graphics g,
int x,
int y,
int radius,
java.awt.Color color)
g - is graphics contextx - is center of circley - is center of circleradius - is the size of the circlecolor - is color to draw
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||