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

Variable Index

 o displayPixelBRHC
Contains the botton right hand coner of the display where the sourcePixelTLHC of the image must be displayed.
 o displayPixelTLHC
Contains the top left hand coner of the display where the sourcePixelBRHC of the image must be displayed.
 o sourcePixelBRHC
Contains the displaying top left hand coner of the image.
 o sourcePixelTLHC
Contains the displaying bottom right hand coner of the image.

Constructor Index

 o Viewer.Presentation.TransformationConverter(PresentationStateGraphicsHandler)
Constructs the object with the specified PresentationStateGraphicsHandler.

Method Index

 o countValues(byte[])
Conts the values of the specified array.
 o draw(BufferedImage, boolean)
Draws the image in the specified ImageBuffer.
 o drawInDeviceSpace(BufferedImage, double, boolean)
Draws the image in the specified ImageBuffer with the specified zoom value
 o drawInDeviceSpace(BufferedImage, boolean)
Draws the image in the specified ImageBuffer.
 o drawInDeviceSpaceFirst(BufferedImage, double, boolean)
Draws the specified display area of the image after the zooming, scaling, rotation and flipping in the specified BufferedImage.
 o getInverseTransformedPoint(Point2D. Float, AffineTransform)
Gets the inverse transfomation of an specified point and an specified AffineTransformation.
 o getOverlayTransformation()
Returns the transformation for the PresentationStateOverlayObject
 o getScollValueHeight()
Returns the maximum y-value for the virtualTLHC.
 o getScollValueWidth()
Returns the maximum x-value for the virtualTLHC.
 o getScrollbarValue()
Returns the current virtualTLHC.
 o getTransformation()
Returns the transformation for the PresentationStateAnnotationObject
 o setVirtualTHLCHeight(int)
Sets a new y-value for the virtualTLHC
 o setVirtualTHLCWidth(int)
Sets a new x-value for the virtualTLHC

Variables

 o 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
 o 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
 o sourcePixelBRHC
protected java.awt.Point sourcePixelBRHC
Contains the displaying top left hand coner of the image.

Since: 30.04.1999
 o sourcePixelTLHC
protected java.awt.Point sourcePixelTLHC
Contains the displaying bottom right hand coner of the image.

Since: 30.04.1999

Constructors

 o 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

Methods

 o 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
 o 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.
 o 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
 o 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
 o 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
 o 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
 o getOverlayTransformation
public java.awt.geom.AffineTransform getOverlayTransformation()
Returns the transformation for the PresentationStateOverlayObject

Returns:
The transformation for the PresentationStateOverlayObject.
Since:
30.04.1999
 o getScollValueHeight
public int getScollValueHeight()
Returns the maximum y-value for the virtualTLHC.

Returns:
The maximum y-value for the virtualTLHC.
Since:
30.04.1999
 o getScollValueWidth
public int getScollValueWidth()
Returns the maximum x-value for the virtualTLHC.

Returns:
The maximum x-value for the virtualTLHC.
Since:
30.04.1999
 o getScrollbarValue
public java.awt.Point getScrollbarValue()
Returns the current virtualTLHC.

Returns:
The current virtualTLHC
Since:
30.04.1999
 o getTransformation
public java.awt.geom.AffineTransform getTransformation()
Returns the transformation for the PresentationStateAnnotationObject

Returns:
The transformation for the PresentationStateAnnotationObject.
Since:
30.04.1999
 o 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
 o 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