Class Viewer.Presentation.TransformationConverter
All Packages Class Hierarchy This Package Previous Next Index
Class Viewer.Presentation.TransformationConverter
Object
|
+----Viewer.Presentation.TransformationConverter
- public abstract class TransformationConverter
- extends Object
This class contains methods which draw the visible part of the image and the
shutter in a BufferedImage.
The virtualTLHC contains a value for
positioning the the image on the display. The maximum value of virtualTLHC.x is
(width of the image + width of the display), the maximum value of virtualTLHC.y is
(height of the image+ height of the display).
If (virtualTLHC.x < width of the display) and (virtualTLHC.y< height of the display)
the TLHC of the image will drawn on the point virtualTLHC on the display.
If (virtualTLHC.x > width of the display) and (virtualTLHC.y > height of the display)
the point (width of the display - virtualTLHC.x, height of the display -virtualTLHC.y)
of the image will be drawn on the top left hand coner of the display.
- Author:
- Klaus Kleber
- Since:
- 30.04.1999
- See Also:
- JavaTransformationConverter, C_TransformationConverter
-
displayPixelBRHC
- Contains the botton right hand coner of the display where the sourcePixelTLHC
of the image must be displayed.
-
displayPixelTLHC
- Contains the top left hand coner of the display where the sourcePixelBRHC
of the image must be displayed.
-
sourcePixelBRHC
- Contains the displaying top left hand coner of the image.
-
sourcePixelTLHC
- Contains the displaying bottom right hand coner of the image.
-
Viewer.Presentation.TransformationConverter(PresentationStateGraphicsHandler)
- Constructs the object with the specified PresentationStateGraphicsHandler.
-
countValues(byte[])
- Conts the values of the specified array.
-
draw(BufferedImage, boolean)
- Draws the image in the specified ImageBuffer.
-
drawInDeviceSpace(BufferedImage, double, boolean)
- Draws the image in the specified ImageBuffer with the specified zoom value
-
drawInDeviceSpace(BufferedImage, boolean)
- Draws the image in the specified ImageBuffer.
-
drawInDeviceSpaceFirst(BufferedImage, double, boolean)
- Draws the specified display area of the image after the zooming, scaling, rotation and flipping
in the specified BufferedImage.
-
getInverseTransformedPoint(Point2D. Float, AffineTransform)
- Gets the inverse transfomation of an specified point
and an specified AffineTransformation.
-
getOverlayTransformation()
- Returns the transformation for the PresentationStateOverlayObject
-
getScollValueHeight()
- Returns the maximum y-value for the virtualTLHC.
-
getScollValueWidth()
- Returns the maximum x-value for the virtualTLHC.
-
getScrollbarValue()
- Returns the current virtualTLHC.
-
getTransformation()
- Returns the transformation for the PresentationStateAnnotationObject
-
setVirtualTHLCHeight(int)
- Sets a new y-value for the virtualTLHC
-
setVirtualTHLCWidth(int)
- Sets a new x-value for the virtualTLHC
displayPixelBRHC
protected java.awt.Point displayPixelBRHC
- Contains the botton right hand coner of the display where the sourcePixelTLHC
of the image must be displayed.
- Since:
30.04.1999
displayPixelTLHC
protected java.awt.Point displayPixelTLHC
- Contains the top left hand coner of the display where the sourcePixelBRHC
of the image must be displayed.
- Since:
30.04.1999
sourcePixelBRHC
protected java.awt.Point sourcePixelBRHC
- Contains the displaying top left hand coner of the image.
- Since:
30.04.1999
sourcePixelTLHC
protected java.awt.Point sourcePixelTLHC
- Contains the displaying bottom right hand coner of the image.
- Since:
30.04.1999
TransformationConverter
public TransformationConverter(PresentationStateGraphicsHandler presentationStateGraphicsHandler)
- Constructs the object with the specified PresentationStateGraphicsHandler.
- Parameters:
- presentationStateGraphicsHandler - Conatins the current PresentationStateGraphicsHandler.
- Since:
- 30.04.1999
- See Also:
- PresentationStateGraphicsHandler
countValues
public static int[] countValues(byte colorArray)
- Conts the values of the specified array.
- Parameters:
- colorArray - Specifies the array.
- Returns:
- The number of values in the array.
- Since:
- 30.04.1999
draw
public abstract void draw(BufferedImage bufferedImage,
boolean newPixels)
- Draws the image in the specified ImageBuffer.
- Parameters:
- bufferedImage - Specifies the BufferedImage in which the image will be drawn.
- newPixels - false if the pixels must get from the c++ part of the code.
drawInDeviceSpace
public void drawInDeviceSpace(BufferedImage bufferedImage,
double zoomValue,
boolean newPixels)
- Draws the image in the specified ImageBuffer with the specified zoom value
- Parameters:
- bufferedImage - Specifies the BufferedImage in which the image will be drawn.
- zoomValue - Specifies the zoom value of the image.
- newPixels - false if the pixels must get from the c++ part of the code.
- Since:
- 30.04.1999
drawInDeviceSpace
public void drawInDeviceSpace(BufferedImage bufferedImage,
boolean newPixels)
- Draws the image in the specified ImageBuffer.
- Parameters:
- bufferedImage - Specifies the BufferedImage in which the image will be drawn.
- newPixels - false if the pixels must get from the c++ part of the code.
- Since:
- 30.04.1999
drawInDeviceSpaceFirst
public void drawInDeviceSpaceFirst(BufferedImage bufferedImage,
double zoomValue,
boolean newPixels)
- Draws the specified display area of the image after the zooming, scaling, rotation and flipping
in the specified BufferedImage.
- Parameters:
- bufferedImage - Specifies the BufferedImage in which the image will be drawn.
- zoomValue - Specifies the zoom value of the image.
- newPixels - false if the pixels must get from the c++ part of the code.
- Since:
- 30.04.1999
getInverseTransformedPoint
public java.awt.geom.Point2D. Float getInverseTransformedPoint(Point2D.Float displayPoint,
AffineTransform transAff)
- Gets the inverse transfomation of an specified point
and an specified AffineTransformation.
- Parameters:
- displayPoint - The point which should be transformed.
- transAff - The transformation which will be applied.
- Returns:
- The inverse transfomation of the displayPoint.
- Since:
- 30.04.1999
getOverlayTransformation
public java.awt.geom.AffineTransform getOverlayTransformation()
- Returns the transformation for the PresentationStateOverlayObject
- Returns:
- The transformation for the PresentationStateOverlayObject.
- Since:
- 30.04.1999
getScollValueHeight
public int getScollValueHeight()
- Returns the maximum y-value for the virtualTLHC.
- Returns:
- The maximum y-value for the virtualTLHC.
- Since:
- 30.04.1999
getScollValueWidth
public int getScollValueWidth()
- Returns the maximum x-value for the virtualTLHC.
- Returns:
- The maximum x-value for the virtualTLHC.
- Since:
- 30.04.1999
getScrollbarValue
public java.awt.Point getScrollbarValue()
- Returns the current virtualTLHC.
- Returns:
- The current virtualTLHC
- Since:
- 30.04.1999
getTransformation
public java.awt.geom.AffineTransform getTransformation()
- Returns the transformation for the PresentationStateAnnotationObject
- Returns:
- The transformation for the PresentationStateAnnotationObject.
- Since:
- 30.04.1999
setVirtualTHLCHeight
public void setVirtualTHLCHeight(int newHeight)
- Sets a new y-value for the virtualTLHC
- Parameters:
- newHeight - New y-value for the virtualTLHC
- Since:
- 30.04.1999
setVirtualTHLCWidth
public void setVirtualTHLCWidth(int newWidth)
- Sets a new x-value for the virtualTLHC
- Parameters:
- newWidth - New x-value for the virtualTLHC
- Since:
- 30.04.1999
All Packages Class Hierarchy This Package Previous Next Index