Public Methods |
| | CanvasHxImage (String imName, String displayMode) |
| | Constructor. More...
|
| | CanvasHxImage (String imName, String displayMode, int displayDimension, int displayPlane, double resolution, int interpType) |
| | Constructor. More...
|
| void | draw (Graphics g) |
| | Draw CanvasObject on 'g', using internal CCS values. More...
|
| void | setPixel (int x, int y, Color c) |
| void | moveImage (double x, double y) |
| BufferedImage | getSubImage (int x, int y, int w, int h) |
| | Implementation CanvasImage interface. More...
|
| String[] | getPixelStrings (int x, int y, int w, int h) |
| | Implementation CanvasImage interface. More...
|
| String | getSaName () |
| | Overrides CanvasObject interface. More...
|
| String | getDisplayMode () |
| void | setDisplayMode (String displayMode) |
| int | getDisplayDimension () |
| void | setDisplayDimension (int displayDimension) |
| int | getDisplayPlane () |
| void | setDisplayPlane (int displayPlane) |
| double | getResolution () |
| void | setResolution (double resolution) |
| int | getInterpolationType () |
| void | setInterpolationType (int interpType) |
| void | refreshPixels () |
| int | getHxImageRepWidth () |
| int | getHxImageRepHeight () |
| int | getHxImageRepDepth () |
| Vector | getVisualChangeMethods () |
| | Overrides CanvasObject interface. More...
|
Static Public Attributes |
| final int | TYPE_NEAREST = 0 |
| final int | TYPE_LINEAR = 1 |
There are several "images" involved in this class. First of all there is the C++ image (known by its SA name). Since the C++ image can be both 2D and 3D we also hava a "display image". The display image is determined by the viewing direction and the display plane. The sizes of the display image (\_dispImWidth and \_dispImHeight) determine the sizes (in ICS) of the CanvasHxImage. For display, CanvasHxImage makes use of a BufferedImage (\_bufIm). The sizes of this image are determined by the sizes of the display image and the resolution at with the CanvasHxImage is to be displayed. For example, \_bufImWidth = round(\_dispImWidth * resolution). The draw method of this class actually draws \_bufIm at the CCS coordinates. So, Graphics.drawImage does the actual zooming of the pixel data.