Main Page   Packages   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

CanvasHxImage Class Reference

Extension of CanvasImage to display a HxImageRep (C++ image). More...

Inheritance diagram for CanvasHxImage::

CanvasImage CanvasObject List of all members.

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

Detailed Description

Extension of CanvasImage to display a HxImageRep (C++ image).

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.


Constructor & Destructor Documentation

CanvasHxImage::CanvasHxImage String    imName,
String    displayMode
[inline]
 

Constructor.

CanvasHxImage::CanvasHxImage String    imName,
String    displayMode,
int    displayDimension,
int    displayPlane,
double    resolution,
int    interpType
[inline]
 

Constructor.


Member Function Documentation

void CanvasHxImage::draw Graphics    g [inline, virtual]
 

Draw CanvasObject on 'g', using internal CCS values.

Reimplemented from CanvasObject.

void CanvasHxImage::setPixel int    x,
int    y,
Color    c
[inline, virtual]
 

Reimplemented from CanvasImage.

void CanvasHxImage::moveImage double    x,
double    y
[inline]
 

BufferedImage CanvasHxImage::getSubImage int    x,
int    y,
int    w,
int    h
[inline, virtual]
 

Implementation CanvasImage interface.

Takes care of possible changes in resolution set by the user.

Reimplemented from CanvasImage.

String [] CanvasHxImage::getPixelStrings int    x,
int    y,
int    w,
int    h
[inline, virtual]
 

Implementation CanvasImage interface.

Reimplemented from CanvasImage.

String CanvasHxImage::getSaName   [inline]
 

Overrides CanvasObject interface.

Reimplemented from CanvasObject.

String CanvasHxImage::getDisplayMode   [inline]
 

void CanvasHxImage::setDisplayMode String    displayMode [inline]
 

int CanvasHxImage::getDisplayDimension   [inline]
 

void CanvasHxImage::setDisplayDimension int    displayDimension [inline]
 

int CanvasHxImage::getDisplayPlane   [inline]
 

void CanvasHxImage::setDisplayPlane int    displayPlane [inline]
 

double CanvasHxImage::getResolution   [inline]
 

void CanvasHxImage::setResolution double    resolution [inline]
 

int CanvasHxImage::getInterpolationType   [inline]
 

void CanvasHxImage::setInterpolationType int    interpType [inline]
 

void CanvasHxImage::refreshPixels   [inline]
 

int CanvasHxImage::getHxImageRepWidth   [inline]
 

int CanvasHxImage::getHxImageRepHeight   [inline]
 

int CanvasHxImage::getHxImageRepDepth   [inline]
 

Vector CanvasHxImage::getVisualChangeMethods   [inline]
 

Overrides CanvasObject interface.

Extends the list of callable functions obtained from the parent with the functions for this class.

Reimplemented from CanvasObject.


Member Data Documentation

final int CanvasHxImage::TYPE_NEAREST = 0 [static]
 

final int CanvasHxImage::TYPE_LINEAR = 1 [static]
 


The documentation for this class was generated from the following file:
Generated on Tue Jan 8 14:14:22 2002 for JavaReference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001