casa
$Rev:20696$
|
Implementation of the PixelCanvas for PostScript devices. More...
#include <PSPixelCanvas.h>
Public Member Functions | |
PSPixelCanvas (PSDriver *ps, PSPixelCanvasColorTable *) | |
virtual | ~PSPixelCanvas () |
virtual void | enableMotionEvents () |
enabling/disabling of event tracking | |
virtual void | disableMotionEvents () |
virtual void | enablePositionEvents () |
virtual void | disablePositionEvents () |
virtual Bool | supportsLists () |
Does this canvas support cached display lists? The user of the canvas should always check this, because undefined behaviour can result when an attempt is made to use a list on a PixelCanvas which does not support lists. | |
virtual uInt | newList () |
begin caching display commands - return list ID | |
virtual void | endList () |
end caching display commands | |
virtual void | drawList (uInt list) |
(Cacheable) recall cached display commands | |
virtual void | translateAllLists (Int xt, Int yt) |
translate all lists | |
virtual void | translateList (uInt list, Int xt, Int yt) |
translate the list | |
virtual void | deleteList (uInt list) |
remove list from cache | |
virtual void | deleteLists () |
flush all lists from the cache | |
virtual Bool | validList (uInt list) |
return True if the list exists | |
virtual Bool | setFont (const String &fontName, const Int size) |
(Cacheable) Set the font to the PostScript font name and size. | |
virtual Bool | setFont (DLFont *font) |
TODO: These should become abstract Set the font via the DisplayLibrary Font class. | |
virtual Bool | setFont (const String &fontName) |
(Cacheable) Set the font to the PostScript font name. | |
virtual void | drawText (Int x, Int y, const String &text, Display::TextAlign alignment=Display::AlignCenter) |
(Cacheable) Draw text using that font aligned in some way to the position | |
virtual void | drawText (Int x, Int y, const String &text, const Float &angle, Display::TextAlign alignment=Display::AlignCenter) |
TODO This should become abstract - NYI in GLPixelCanvas currently Draw text at a specified angle. | |
virtual void | drawImage (const Matrix< uInt > &data, Int x, Int y) |
(Cacheable) Draw an array of 2D color data as a raster image for zoom = <1,1> | |
virtual void | drawImage (const Matrix< Int > &data, Int x, Int y) |
virtual void | drawImage (const Matrix< uLong > &data, Int x, Int y) |
virtual void | drawImage (const Matrix< Float > &data, Int x, Int y) |
virtual void | drawImage (const Matrix< Double > &data, Int x, Int y) |
virtual void | drawImage (const Int &x, const Int &y, const Matrix< uInt > &data, const Matrix< Bool > &mask, Bool opaqueMask=False) |
Draw a 2D color image with masking. | |
virtual void | drawImage (const Matrix< uInt > &data, Int x, Int y, uInt xzoom, uInt yzoom) |
(Cacheable) Draw an array of 2D color data as a raster image for any positive integer zoom | |
virtual void | drawImage (const Matrix< Int > &data, Int x, Int y, uInt xzoom, uInt yzoom) |
virtual void | drawImage (const Matrix< uLong > &data, Int x, Int y, uInt xzoom, uInt yzoom) |
virtual void | drawImage (const Matrix< Float > &data, Int x, Int y, uInt xzoom, uInt yzoom) |
virtual void | drawImage (const Matrix< Double > &data, Int x, Int y, uInt xzoom, uInt yzoom) |
virtual void | drawImage (const Matrix< uInt > &data, const Int &x, const Int &y, const Display::ColorComponent &colorcomponent) |
(Cacheable) Draw a component of a multi-channel image, storing it in buffers until flushComponentImages() is called. | |
void | bufferComponent (const Matrix< uInt > &data, const Int &x, const Int &y, const Display::ColorComponent &colorcomponent) |
Fill one of the channel buffers. | |
void | flushComponentBuffers () |
(NOT CACHEABLE!) Flush the component buffers. | |
virtual void | drawPoint (Int x1, Int y1) |
(Cacheable) Draw a single point using current color | |
virtual void | drawPoint (Float x1, Float y1) |
virtual void | drawPoint (Double x1, Double y1) |
virtual void | drawPoints (const Matrix< Int > &verts) |
(Cacheable) Draw N points specified as a Nx2 matrix | |
virtual void | drawPoints (const Matrix< Float > &verts) |
virtual void | drawPoints (const Matrix< Double > &verts) |
virtual void | drawPoints (const Vector< Int > &x1, const Vector< Int > &y1) |
(Cacheable) Draw a bunch of points using current color | |
virtual void | drawPoints (const Vector< Float > &x1, const Vector< Float > &y1) |
virtual void | drawPoints (const Vector< Double > &x1, const Vector< Double > &y1) |
virtual void | drawLine (Int x1, Int y1, Int x2, Int y2) |
(Cacheable) Draw a single line using current color | |
virtual void | drawLine (Float x1, Float y1, Float x2, Float y2) |
virtual void | drawLine (Double x1, Double y1, Double x2, Double y2) |
virtual void | drawLines (const Matrix< Int > &verts) |
(Cacheable) Draw N/2 lines from an Nx2 matrix | |
virtual void | drawLines (const Matrix< Float > &verts) |
virtual void | drawLines (const Matrix< Double > &verts) |
virtual void | drawLines (const Vector< Int > &x1, const Vector< Int > &y1, const Vector< Int > &x2, const Vector< Int > &y2) |
(Cacheable) Draw a bunch of unrelated lines using current color | |
virtual void | drawLines (const Vector< Float > &x1, const Vector< Float > &y1, const Vector< Float > &x2, const Vector< Float > &y2) |
virtual void | drawLines (const Vector< Double > &x1, const Vector< Double > &y1, const Vector< Double > &x2, const Vector< Double > &y2) |
virtual void | drawPolyline (const Vector< Int > &x1, const Vector< Int > &y1) |
(Cacheable) Draw a single connected line between the points given | |
virtual void | drawPolyline (const Vector< Float > &x1, const Vector< Float > &y1) |
virtual void | drawPolyline (const Vector< Double > &x1, const Vector< Double > &y1) |
virtual void | drawPolylines (const Vector< Int > &x1, const Vector< Int > &y1, const int close=0, const int fill=0) |
virtual void | drawPolylines (const Vector< Float > &x1, const Vector< Float > &y1, const int close=0, const int fill=0) |
virtual void | drawPolylines (const Vector< Double > &x1, const Vector< Double > &y1, const int close=0, const int fill=0) |
virtual void | drawPolyline (const Matrix< Int > &verts) |
(Cacheable) Draw N-1 connected lines from Nx2 matrix of vertices | |
virtual void | drawPolyline (const Matrix< Float > &verts) |
virtual void | drawPolyline (const Matrix< Double > &verts) |
virtual void | drawPolylines (const Matrix< Int > &verts, const int close=0, const int fill=0) |
(Cacheable) Draw N-1 connected lines from Nx2 matrix of vertices | |
virtual void | drawPolylines (const Matrix< Float > &verts, const int close=0, const int fill=0) |
virtual void | drawPolylines (const Matrix< Double > &verts, const int close=0, const int fill=0) |
virtual void | drawPolygon (const Vector< Int > &x1, const Vector< Int > &y1) |
(Cacheable) Draw a closed polygon | |
virtual void | drawPolygon (const Vector< Float > &x1, const Vector< Float > &y1) |
virtual void | drawPolygon (const Vector< Double > &x1, const Vector< Double > &y1) |
virtual void | drawFilledPolygon (const Vector< Int > &x1, const Vector< Int > &y1) |
(Cacheable) Draw and fill a closed polygon | |
virtual void | drawFilledPolygon (const Vector< Float > &x1, const Vector< Float > &y1) |
virtual void | drawFilledPolygon (const Vector< Double > &x1, const Vector< Double > &y1) |
virtual void | drawPolygon (const Matrix< Int > &verts) |
(Cacheable) Draw a closed N-sided polygon from Nx2 matrix of vertices | |
virtual void | drawPolygon (const Matrix< Float > &verts) |
virtual void | drawPolygon (const Matrix< Double > &verts) |
virtual void | drawRectangle (Int x1, Int y1, Int x2, Int y2, const int fill) |
(Cacheable) Draw a rectangle | |
virtual void | drawRectangle (Float x1, Float y1, Float x2, Float y2, const int fill) |
virtual void | drawRectangle (Double x1, Double y1, Double x2, Double y2, const int fill) |
virtual void | drawRectangle (Int x1, Int y1, Int x2, Int y2) |
(Cacheable) Draw a rectangle | |
virtual void | drawRectangle (Float x1, Float y1, Float x2, Float y2) |
virtual void | drawRectangle (Double x1, Double y1, Double x2, Double y2) |
virtual void | drawFilledRectangle (Int x1, Int y1, Int x2, Int y2) |
(Cacheable) Draw a filled rectangle | |
virtual void | drawFilledRectangle (Float x1, Float y1, Float x2, Float y2) |
virtual void | drawFilledRectangle (Double x1, Double y1, Double x2, Double y2) |
virtual void | drawColoredPoints (const Vector< Int > &x1, const Vector< Int > &y1, const Vector< uInt > &colors) |
(Cacheable) Draw a set of points, specifying a color per point to be drawn. | |
virtual void | drawColoredPoints (const Vector< Float > &x1, const Vector< Float > &y1, const Vector< uInt > &colors) |
virtual void | drawColoredPoints (const Vector< Double > &x1, const Vector< Double > &y1, const Vector< uInt > &colors) |
virtual void | drawColoredPoints (const Matrix< Int > &xy, const Vector< uInt > &colors) |
virtual void | drawColoredPoints (const Matrix< Float > &xy, const Vector< uInt > &colors) |
virtual void | drawColoredPoints (const Matrix< Double > &xy, const Vector< uInt > &colors) |
virtual void | drawColoredLines (const Vector< Int > &x1, const Vector< Int > &y1, const Vector< Int > &x2, const Vector< Int > &y2, const Vector< uInt > &colors) |
(Cacheable) Draw a set of lines, specifying a color per line to be drawn. | |
virtual void | drawColoredLines (const Vector< Float > &x1, const Vector< Float > &y1, const Vector< Float > &x2, const Vector< Float > &y2, const Vector< uInt > &colors) |
virtual void | drawColoredLines (const Vector< Double > &x1, const Vector< Double > &y1, const Vector< Double > &x2, const Vector< Double > &y2, const Vector< uInt > &colors) |
virtual void | setDrawFunction (Display::DrawFunction function) |
Set Graphics Attributes Options for functions with enum argument listed in DisplayEnums . | |
virtual void | setForeground (uLong color) |
virtual void | setBackground (uLong color) |
virtual void | setLineWidth (Float width) |
virtual void setLineWidth(uInt width); | |
void | lineWidth (Float width) |
float | lineWidth () const |
virtual void | setLineStyle (Display::LineStyle style) |
virtual void | setCapStyle (Display::CapStyle style) |
virtual void | setJoinStyle (Display::JoinStyle style) |
virtual void | setFillStyle (Display::FillStyle style) |
virtual void | setFillRule (Display::FillRule rule) |
virtual void | setArcMode (Display::ArcMode mode) |
virtual Display::DrawFunction | getDrawFunction () const |
Get Graphics Attributes. | |
virtual uLong | getForeground () const |
virtual uLong | getBackground () const |
virtual Float | getLineWidth () const |
virtual uInt getLineWidth() const = 0; | |
virtual Display::LineStyle | getLineStyle () const |
virtual Display::CapStyle | getCapStyle () const |
virtual Display::JoinStyle | getJoinStyle () const |
virtual Display::FillStyle | getFillStyle () const |
virtual Display::FillRule | getFillRule () const |
virtual Display::ArcMode | getArcMode () const |
virtual Bool | enable (Display::Option option) |
(Cacheable) Option Control Options listed in DisplayEnums | |
virtual Bool | disable (Display::Option option) |
virtual void | setImageCacheStrategy (Display::ImageCacheStrategy strategy) |
Control the image-caching strategy. | |
virtual Display::ImageCacheStrategy | imageCacheStrategy () const |
virtual void | setClipWindow (Int x1, Int y1, Int x2, Int y2) |
(Cacheable) Setup the clip window. | |
virtual void | getClipWindow (Int &x1, Int &y1, Int &x2, Int &y2) |
virtual void | refresh (const Display::RefreshReason &reason=Display::UserCommand, const Bool &explicitrequest=True) |
(Not Cacheable) Redraw the window | |
virtual void | flush () |
Cause display to flush any graphics commands not yet drawn. | |
virtual void | clear () |
(Cacheable) Clear the window using the background color | |
virtual void | clear (Int x1, Int y1, Int x2, Int y2) |
virtual void | setClearColor (uInt colorIndex) |
(Cacheable) Set the color to use for clearing the display | |
virtual void | setClearColor (const String &colorname) |
virtual void | setClearColor (float r, float g, float b) |
virtual uInt | clearColor () const |
(Not Cacheable) Get the current color to use for clearing the display. | |
virtual void | getClearColor (float &r, float &g, float &b) const |
virtual uInt | width () const |
Return the width of the PSPixelCanvas in pixels. | |
virtual uInt | height () const |
Return the height of the PSPixelCanvas in pixels. | |
virtual uInt | depth () const |
Return the depth of the PSPixelCanvas in bits. | |
virtual void | pixelDensity (Float &xdpi, Float &ydpi) const |
Get the pixel density (in dots per inch [dpi]) of the PixelCanvas. | |
virtual void | setColor (uInt colorIndex) |
(Cacheable) Set current color (works in RGB or colormap mode) | |
virtual void | setColor (const String &colorname) |
virtual void | setRGBColor (float r, float g, float b) |
virtual void | setHSVColor (float h, float s, float v) |
virtual uInt | color () const |
(Not Cacheable) Returns the current color as a color index | |
virtual void | getColor (float &r, float &g, float &b) const |
(Not Cacheable) Retuns the current color as an RGB triple | |
virtual Bool | getColorComponents (const String &colorname, Float &r, Float &g, Float &b) |
Get color components in range 0 to 1 without actually allocating the color. | |
virtual Bool | getColor (Int x, Int y, uInt &color) |
(Not Cacheable) Get color index value (works in RGB or colormap mode) | |
virtual Bool | getRGBColor (Int x, Int y, float &r, float &g, float &b) |
virtual Bool | getHSVColor (Int x, Int y, float &h, float &s, float &v) |
virtual void | setDeviceForegroundColor (const String colorname) |
Get/set the current foreground/background colors. | |
virtual String | deviceForegroundColor () const |
virtual void | setDeviceBackgroundColor (const String colorname) |
virtual String | deviceBackgroundColor () const |
virtual Bool | resize (uInt reqXSize, uInt reqYSize, Bool doCallbacks=True) |
(Not Cacheable) resize request. | |
virtual Bool | resizeColorTable (uInt newSize) |
(Not Cacheable) resize the colortable by requesting a new number of cells | |
virtual Bool | resizeColorTable (uInt nReds, uInt nGreens, uInt nBlues) |
(Not Cacheable) resize the colortable by requesting a new RGB/HSV cube | |
virtual PixelCanvasColorTable * | pcctbl () const |
Need a mechanism to return the PSPixelCanvasColorTable so drawing functions within classes can operate. | |
virtual void | setPcctbl (PixelCanvasColorTable *pcctbl) |
PSPixelCanvasColorTable * | PSpcctbl () const |
virtual void | pushMatrix () |
save/restore the current translation. | |
virtual void | popMatrix () |
virtual void | loadIdentity () |
zero the current translation | |
virtual void | translate (Int xt, Int yt) |
translation functions translate applies a relative translation to the current matrix and can be used to position graphics. | |
virtual void | getTranslation (Int &xt, Int &yt) const |
virtual Int | xTranslation () const |
virtual Int | yTranslation () const |
virtual void | setDrawBuffer (Display::DrawBuffer buf) |
(Not cacheable) set the draw buffer None of the buffer routines are supported. | |
virtual void | copyBackBufferToFrontBuffer () |
buffer memory exchanges (Not cacheable) | |
virtual void | copyFrontBufferToBackBuffer () |
virtual void | swapBuffers () |
virtual void | copyBackBufferToFrontBuffer (Int x1, Int y1, Int x2, Int y2) |
partial buffer memory exchanges. | |
virtual void | copyFrontBufferToBackBuffer (Int x1, Int y1, Int x2, Int y2) |
virtual void | swapBuffers (Int x1, Int y1, Int x2, Int y2) |
void | drawPSImage (const int x, const int y, const int iwidth, const int iheight, const float xzoom, const float yzoom, const uShort *data, const int bpc, const Display::ColorModel=Display::Index) |
PSPixelCanvas specific misc. | |
void | setResolution (const float xres, const float yres, const PSDriver::Dimension=PSDriver::INCHES) |
Set/get declared resolution in pixels per supplied dimension. | |
void | getResolution (float &xres, float &yres, const PSDriver::Dimension=PSDriver::INCHES) const |
void | smooth (const Bool smth) |
Whether to enable pixel interpolation for drawImage(). | |
Bool | smooth () const |
Bool | annotate () const |
Whether to put tracing comments in the output. | |
void | annotate (const Bool a) |
virtual Float | pixelScaling () const |
Private Member Functions | |
void | pspcinit (PSDriver *ps, PSPixelCanvasColorTable *) |
void | clearRectangle (const float x0, const float y0, const float x1, const float y1) |
void | note (const char *) |
Used in annotating output file. | |
void | note (const char *, const uLong) |
Private Attributes | |
PSPixelCanvasColorTable * | pcct_ |
PSDriver * | ps |
float | xppp_ |
float | yppp_ |
float | lineWidth_ |
Display::LineStyle | lineStyle_ |
Display::CapStyle | capStyle_ |
Display::JoinStyle | joinStyle_ |
Display::FillStyle | fillStyle_ |
Display::FillRule | fillRule_ |
Display::ArcMode | arcMode_ |
String | defaultForegroundColorName_ |
String | defaultBackgroundColorName_ |
uLong | foreground_ |
Color indexes the three colors we know about. | |
uLong | background_ |
uLong | clearColor_ |
float | xt_ |
float | yt_ |
float | clipx0_ |
float | clipy0_ |
float | clipx1_ |
float | clipy1_ |
Bool | haveClipInfo_ |
Bool | clipEnabled_ |
Bool | smooth_ |
Bool | annotate_ |
Float | itsComponentX |
Component support. | |
Float | itsComponentY |
uLong | itsComponentWidth |
uLong | itsComponentHeight |
Int | itsComponentBPC |
uShort * | itsComponents |
Implementation of the PixelCanvas for PostScript devices.
Public interface
PSPixelCanvas is a mechanism for drawing on paper.
PSPixelCanvas implements PixelCanvas for PostScript output. See Example for example usage.
PSDriver *psd = new PSDriver("test.ps", PSDriver::LETTER); PSPixelCanvasColorTable *pscct = new PSPixelCanvasColorTable(psd); PSPixelCanvas psc = new PSPixelCanvas( psd, pscct); ... (a miracle happens). delete psc; delete pscct; delete psd;
Tip: Since PostScript does not deal in in pixels, PSPixelCanvas assumes an adjustable number of pixels per inch; (Currently 1200dpi); Use the setResolution function to change this if the calling progam can't handle a 128M pixel display;
Definition at line 119 of file PSPixelCanvas.h.
virtual casa::PSPixelCanvas::~PSPixelCanvas | ( | ) | [virtual] |
Bool casa::PSPixelCanvas::annotate | ( | ) | const [inline] |
Whether to put tracing comments in the output.
Definition at line 600 of file PSPixelCanvas.h.
References annotate_.
void casa::PSPixelCanvas::annotate | ( | const Bool | a | ) | [inline] |
Definition at line 601 of file PSPixelCanvas.h.
References annotate_.
void casa::PSPixelCanvas::bufferComponent | ( | const Matrix< uInt > & | data, |
const Int & | x, | ||
const Int & | y, | ||
const Display::ColorComponent & | colorcomponent | ||
) | [virtual] |
Fill one of the channel buffers.
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::clear | ( | ) | [virtual] |
(Cacheable) Clear the window using the background color
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::clear | ( | Int | x1, |
Int | y1, | ||
Int | x2, | ||
Int | y2 | ||
) | [virtual] |
Implements casa::PixelCanvas.
virtual uInt casa::PSPixelCanvas::clearColor | ( | ) | const [virtual] |
(Not Cacheable) Get the current color to use for clearing the display.
Implements casa::PixelCanvas.
void casa::PSPixelCanvas::clearRectangle | ( | const float | x0, |
const float | y0, | ||
const float | x1, | ||
const float | y1 | ||
) | [private] |
virtual uInt casa::PSPixelCanvas::color | ( | ) | const [virtual] |
(Not Cacheable) Returns the current color as a color index
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::copyBackBufferToFrontBuffer | ( | ) | [virtual] |
buffer memory exchanges (Not cacheable)
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::copyBackBufferToFrontBuffer | ( | Int | x1, |
Int | y1, | ||
Int | x2, | ||
Int | y2 | ||
) | [virtual] |
virtual void casa::PSPixelCanvas::copyFrontBufferToBackBuffer | ( | ) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::copyFrontBufferToBackBuffer | ( | Int | x1, |
Int | y1, | ||
Int | x2, | ||
Int | y2 | ||
) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::deleteList | ( | uInt | list | ) | [virtual] |
remove list from cache
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::deleteLists | ( | ) | [virtual] |
flush all lists from the cache
Implements casa::PixelCanvas.
virtual uInt casa::PSPixelCanvas::depth | ( | ) | const [virtual] |
Return the depth of the PSPixelCanvas in bits.
Implements casa::PixelCanvas.
virtual String casa::PSPixelCanvas::deviceBackgroundColor | ( | ) | const [virtual] |
Implements casa::PixelCanvas.
virtual String casa::PSPixelCanvas::deviceForegroundColor | ( | ) | const [virtual] |
Implements casa::PixelCanvas.
virtual Bool casa::PSPixelCanvas::disable | ( | Display::Option | option | ) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::disableMotionEvents | ( | ) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::disablePositionEvents | ( | ) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawColoredLines | ( | const Vector< Int > & | x1, |
const Vector< Int > & | y1, | ||
const Vector< Int > & | x2, | ||
const Vector< Int > & | y2, | ||
const Vector< uInt > & | colors | ||
) | [virtual] |
(Cacheable) Draw a set of lines, specifying a color per line to be drawn.
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawColoredLines | ( | const Vector< Float > & | x1, |
const Vector< Float > & | y1, | ||
const Vector< Float > & | x2, | ||
const Vector< Float > & | y2, | ||
const Vector< uInt > & | colors | ||
) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawColoredLines | ( | const Vector< Double > & | x1, |
const Vector< Double > & | y1, | ||
const Vector< Double > & | x2, | ||
const Vector< Double > & | y2, | ||
const Vector< uInt > & | colors | ||
) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawColoredPoints | ( | const Vector< Int > & | x1, |
const Vector< Int > & | y1, | ||
const Vector< uInt > & | colors | ||
) | [virtual] |
(Cacheable) Draw a set of points, specifying a color per point to be drawn.
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawColoredPoints | ( | const Vector< Float > & | x1, |
const Vector< Float > & | y1, | ||
const Vector< uInt > & | colors | ||
) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawColoredPoints | ( | const Vector< Double > & | x1, |
const Vector< Double > & | y1, | ||
const Vector< uInt > & | colors | ||
) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawColoredPoints | ( | const Matrix< Int > & | xy, |
const Vector< uInt > & | colors | ||
) | [virtual] |
Reimplemented from casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawColoredPoints | ( | const Matrix< Float > & | xy, |
const Vector< uInt > & | colors | ||
) | [virtual] |
Reimplemented from casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawColoredPoints | ( | const Matrix< Double > & | xy, |
const Vector< uInt > & | colors | ||
) | [virtual] |
Reimplemented from casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawFilledPolygon | ( | const Vector< Int > & | x1, |
const Vector< Int > & | y1 | ||
) | [virtual] |
(Cacheable) Draw and fill a closed polygon
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawFilledPolygon | ( | const Vector< Float > & | x1, |
const Vector< Float > & | y1 | ||
) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawFilledPolygon | ( | const Vector< Double > & | x1, |
const Vector< Double > & | y1 | ||
) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawFilledRectangle | ( | Int | x1, |
Int | y1, | ||
Int | x2, | ||
Int | y2 | ||
) | [virtual] |
(Cacheable) Draw a filled rectangle
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawFilledRectangle | ( | Float | x1, |
Float | y1, | ||
Float | x2, | ||
Float | y2 | ||
) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawFilledRectangle | ( | Double | x1, |
Double | y1, | ||
Double | x2, | ||
Double | y2 | ||
) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawImage | ( | const Matrix< uInt > & | data, |
Int | x, | ||
Int | y | ||
) | [virtual] |
(Cacheable) Draw an array of 2D color data as a raster image for zoom = <1,1>
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawImage | ( | const Matrix< Int > & | data, |
Int | x, | ||
Int | y | ||
) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawImage | ( | const Matrix< uLong > & | data, |
Int | x, | ||
Int | y | ||
) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawImage | ( | const Matrix< Float > & | data, |
Int | x, | ||
Int | y | ||
) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawImage | ( | const Matrix< Double > & | data, |
Int | x, | ||
Int | y | ||
) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawImage | ( | const Int & | x, |
const Int & | y, | ||
const Matrix< uInt > & | data, | ||
const Matrix< Bool > & | mask, | ||
Bool | opaqueMask = False |
||
) | [virtual] |
Draw a 2D color image with masking.
(opaqueMask ignored; (unfortunately,) PSPixelcanvas always draws opaque masks).
Reimplemented from casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawImage | ( | const Matrix< uInt > & | data, |
Int | x, | ||
Int | y, | ||
uInt | xzoom, | ||
uInt | yzoom | ||
) | [virtual] |
(Cacheable) Draw an array of 2D color data as a raster image for any positive integer zoom
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawImage | ( | const Matrix< Int > & | data, |
Int | x, | ||
Int | y, | ||
uInt | xzoom, | ||
uInt | yzoom | ||
) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawImage | ( | const Matrix< uLong > & | data, |
Int | x, | ||
Int | y, | ||
uInt | xzoom, | ||
uInt | yzoom | ||
) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawImage | ( | const Matrix< Float > & | data, |
Int | x, | ||
Int | y, | ||
uInt | xzoom, | ||
uInt | yzoom | ||
) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawImage | ( | const Matrix< Double > & | data, |
Int | x, | ||
Int | y, | ||
uInt | xzoom, | ||
uInt | yzoom | ||
) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawImage | ( | const Matrix< uInt > & | data, |
const Int & | x, | ||
const Int & | y, | ||
const Display::ColorComponent & | colorcomponent | ||
) | [virtual] |
(Cacheable) Draw a component of a multi-channel image, storing it in buffers until flushComponentImages() is called.
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawLine | ( | Int | x1, |
Int | y1, | ||
Int | x2, | ||
Int | y2 | ||
) | [virtual] |
(Cacheable) Draw a single line using current color
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawLine | ( | Float | x1, |
Float | y1, | ||
Float | x2, | ||
Float | y2 | ||
) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawLine | ( | Double | x1, |
Double | y1, | ||
Double | x2, | ||
Double | y2 | ||
) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawLines | ( | const Matrix< Int > & | verts | ) | [virtual] |
(Cacheable) Draw N/2 lines from an Nx2 matrix
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawLines | ( | const Matrix< Float > & | verts | ) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawLines | ( | const Matrix< Double > & | verts | ) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawLines | ( | const Vector< Int > & | x1, |
const Vector< Int > & | y1, | ||
const Vector< Int > & | x2, | ||
const Vector< Int > & | y2 | ||
) | [virtual] |
(Cacheable) Draw a bunch of unrelated lines using current color
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawLines | ( | const Vector< Float > & | x1, |
const Vector< Float > & | y1, | ||
const Vector< Float > & | x2, | ||
const Vector< Float > & | y2 | ||
) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawLines | ( | const Vector< Double > & | x1, |
const Vector< Double > & | y1, | ||
const Vector< Double > & | x2, | ||
const Vector< Double > & | y2 | ||
) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawList | ( | uInt | list | ) | [virtual] |
(Cacheable) recall cached display commands
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawPoint | ( | Int | x1, |
Int | y1 | ||
) | [virtual] |
(Cacheable) Draw a single point using current color
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawPoint | ( | Float | x1, |
Float | y1 | ||
) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawPoint | ( | Double | x1, |
Double | y1 | ||
) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawPoints | ( | const Matrix< Int > & | verts | ) | [virtual] |
(Cacheable) Draw N points specified as a Nx2 matrix
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawPoints | ( | const Matrix< Float > & | verts | ) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawPoints | ( | const Matrix< Double > & | verts | ) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawPoints | ( | const Vector< Int > & | x1, |
const Vector< Int > & | y1 | ||
) | [virtual] |
(Cacheable) Draw a bunch of points using current color
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawPoints | ( | const Vector< Float > & | x1, |
const Vector< Float > & | y1 | ||
) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawPoints | ( | const Vector< Double > & | x1, |
const Vector< Double > & | y1 | ||
) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawPolygon | ( | const Vector< Int > & | x1, |
const Vector< Int > & | y1 | ||
) | [virtual] |
(Cacheable) Draw a closed polygon
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawPolygon | ( | const Vector< Float > & | x1, |
const Vector< Float > & | y1 | ||
) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawPolygon | ( | const Vector< Double > & | x1, |
const Vector< Double > & | y1 | ||
) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawPolygon | ( | const Matrix< Int > & | verts | ) | [virtual] |
(Cacheable) Draw a closed N-sided polygon from Nx2 matrix of vertices
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawPolygon | ( | const Matrix< Float > & | verts | ) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawPolygon | ( | const Matrix< Double > & | verts | ) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawPolyline | ( | const Vector< Int > & | x1, |
const Vector< Int > & | y1 | ||
) | [virtual] |
(Cacheable) Draw a single connected line between the points given
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawPolyline | ( | const Vector< Float > & | x1, |
const Vector< Float > & | y1 | ||
) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawPolyline | ( | const Vector< Double > & | x1, |
const Vector< Double > & | y1 | ||
) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawPolyline | ( | const Matrix< Int > & | verts | ) | [virtual] |
(Cacheable) Draw N-1 connected lines from Nx2 matrix of vertices
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawPolyline | ( | const Matrix< Float > & | verts | ) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawPolyline | ( | const Matrix< Double > & | verts | ) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawPolylines | ( | const Vector< Int > & | x1, |
const Vector< Int > & | y1, | ||
const int | close = 0 , |
||
const int | fill = 0 |
||
) | [virtual] |
virtual void casa::PSPixelCanvas::drawPolylines | ( | const Vector< Float > & | x1, |
const Vector< Float > & | y1, | ||
const int | close = 0 , |
||
const int | fill = 0 |
||
) | [virtual] |
virtual void casa::PSPixelCanvas::drawPolylines | ( | const Vector< Double > & | x1, |
const Vector< Double > & | y1, | ||
const int | close = 0 , |
||
const int | fill = 0 |
||
) | [virtual] |
virtual void casa::PSPixelCanvas::drawPolylines | ( | const Matrix< Int > & | verts, |
const int | close = 0 , |
||
const int | fill = 0 |
||
) | [virtual] |
(Cacheable) Draw N-1 connected lines from Nx2 matrix of vertices
virtual void casa::PSPixelCanvas::drawPolylines | ( | const Matrix< Float > & | verts, |
const int | close = 0 , |
||
const int | fill = 0 |
||
) | [virtual] |
virtual void casa::PSPixelCanvas::drawPolylines | ( | const Matrix< Double > & | verts, |
const int | close = 0 , |
||
const int | fill = 0 |
||
) | [virtual] |
void casa::PSPixelCanvas::drawPSImage | ( | const int | x, |
const int | y, | ||
const int | iwidth, | ||
const int | iheight, | ||
const float | xzoom, | ||
const float | yzoom, | ||
const uShort * | data, | ||
const int | bpc, | ||
const Display::ColorModel | = Display::Index |
||
) |
virtual void casa::PSPixelCanvas::drawRectangle | ( | Int | x1, |
Int | y1, | ||
Int | x2, | ||
Int | y2, | ||
const int | fill | ||
) | [virtual] |
(Cacheable) Draw a rectangle
virtual void casa::PSPixelCanvas::drawRectangle | ( | Float | x1, |
Float | y1, | ||
Float | x2, | ||
Float | y2, | ||
const int | fill | ||
) | [virtual] |
virtual void casa::PSPixelCanvas::drawRectangle | ( | Double | x1, |
Double | y1, | ||
Double | x2, | ||
Double | y2, | ||
const int | fill | ||
) | [virtual] |
virtual void casa::PSPixelCanvas::drawRectangle | ( | Int | x1, |
Int | y1, | ||
Int | x2, | ||
Int | y2 | ||
) | [virtual] |
(Cacheable) Draw a rectangle
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawRectangle | ( | Float | x1, |
Float | y1, | ||
Float | x2, | ||
Float | y2 | ||
) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawRectangle | ( | Double | x1, |
Double | y1, | ||
Double | x2, | ||
Double | y2 | ||
) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawText | ( | Int | x, |
Int | y, | ||
const String & | text, | ||
Display::TextAlign | alignment = Display::AlignCenter |
||
) | [virtual] |
(Cacheable) Draw text using that font aligned in some way to the position
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::drawText | ( | Int | , |
Int | , | ||
const String & | , | ||
const Float & | , | ||
Display::TextAlign | = Display::AlignCenter |
||
) | [virtual] |
TODO This should become abstract - NYI in GLPixelCanvas currently Draw text at a specified angle.
Reimplemented from casa::PixelCanvas.
virtual Bool casa::PSPixelCanvas::enable | ( | Display::Option | option | ) | [virtual] |
(Cacheable) Option Control Options listed in DisplayEnums
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::enableMotionEvents | ( | ) | [virtual] |
enabling/disabling of event tracking
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::enablePositionEvents | ( | ) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::endList | ( | ) | [virtual] |
end caching display commands
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::flush | ( | ) | [virtual] |
Cause display to flush any graphics commands not yet drawn.
Implements casa::PixelCanvas.
void casa::PSPixelCanvas::flushComponentBuffers | ( | ) | [virtual] |
(NOT CACHEABLE!) Flush the component buffers.
Implements casa::PixelCanvas.
virtual Display::ArcMode casa::PSPixelCanvas::getArcMode | ( | ) | const [virtual] |
Implements casa::PixelCanvas.
virtual uLong casa::PSPixelCanvas::getBackground | ( | ) | const [virtual] |
Implements casa::PixelCanvas.
virtual Display::CapStyle casa::PSPixelCanvas::getCapStyle | ( | ) | const [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::getClearColor | ( | float & | r, |
float & | g, | ||
float & | b | ||
) | const [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::getClipWindow | ( | Int & | x1, |
Int & | y1, | ||
Int & | x2, | ||
Int & | y2 | ||
) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::getColor | ( | float & | r, |
float & | g, | ||
float & | b | ||
) | const [virtual] |
(Not Cacheable) Retuns the current color as an RGB triple
Implements casa::PixelCanvas.
virtual Bool casa::PSPixelCanvas::getColor | ( | Int | x, |
Int | y, | ||
uInt & | color | ||
) | [virtual] |
(Not Cacheable) Get color index value (works in RGB or colormap mode)
Implements casa::PixelCanvas.
virtual Bool casa::PSPixelCanvas::getColorComponents | ( | const String & | colorname, |
Float & | r, | ||
Float & | g, | ||
Float & | b | ||
) | [virtual] |
Get color components in range 0 to 1 without actually allocating the color.
This is needed to set up other devices, for example PgPlot.
Implements casa::PixelCanvas.
virtual Display::DrawFunction casa::PSPixelCanvas::getDrawFunction | ( | ) | const [virtual] |
Get Graphics Attributes.
Implements casa::PixelCanvas.
virtual Display::FillRule casa::PSPixelCanvas::getFillRule | ( | ) | const [virtual] |
Implements casa::PixelCanvas.
virtual Display::FillStyle casa::PSPixelCanvas::getFillStyle | ( | ) | const [virtual] |
Implements casa::PixelCanvas.
virtual uLong casa::PSPixelCanvas::getForeground | ( | ) | const [virtual] |
Implements casa::PixelCanvas.
virtual Bool casa::PSPixelCanvas::getHSVColor | ( | Int | x, |
Int | y, | ||
float & | h, | ||
float & | s, | ||
float & | v | ||
) | [virtual] |
Reimplemented from casa::PixelCanvas.
virtual Display::JoinStyle casa::PSPixelCanvas::getJoinStyle | ( | ) | const [virtual] |
Implements casa::PixelCanvas.
virtual Display::LineStyle casa::PSPixelCanvas::getLineStyle | ( | ) | const [virtual] |
Implements casa::PixelCanvas.
virtual Float casa::PSPixelCanvas::getLineWidth | ( | ) | const [virtual] |
virtual uInt getLineWidth() const = 0;
Implements casa::PixelCanvas.
void casa::PSPixelCanvas::getResolution | ( | float & | xres, |
float & | yres, | ||
const PSDriver::Dimension | = PSDriver::INCHES |
||
) | const |
virtual Bool casa::PSPixelCanvas::getRGBColor | ( | Int | x, |
Int | y, | ||
float & | r, | ||
float & | g, | ||
float & | b | ||
) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::getTranslation | ( | Int & | xt, |
Int & | yt | ||
) | const [virtual] |
Implements casa::PixelCanvas.
virtual uInt casa::PSPixelCanvas::height | ( | ) | const [virtual] |
Return the height of the PSPixelCanvas in pixels.
Implements casa::PixelCanvas.
virtual Display::ImageCacheStrategy casa::PSPixelCanvas::imageCacheStrategy | ( | ) | const [virtual] |
Implements casa::PixelCanvas.
void casa::PSPixelCanvas::lineWidth | ( | Float | width | ) |
float casa::PSPixelCanvas::lineWidth | ( | ) | const [inline] |
Definition at line 395 of file PSPixelCanvas.h.
References lineWidth_.
virtual void casa::PSPixelCanvas::loadIdentity | ( | ) | [virtual] |
zero the current translation
Implements casa::PixelCanvas.
virtual uInt casa::PSPixelCanvas::newList | ( | ) | [virtual] |
begin caching display commands - return list ID
Implements casa::PixelCanvas.
void casa::PSPixelCanvas::note | ( | const char * | ) | [private] |
Used in annotating output file.
void casa::PSPixelCanvas::note | ( | const char * | , |
const uLong | |||
) | [private] |
virtual PixelCanvasColorTable* casa::PSPixelCanvas::pcctbl | ( | ) | const [virtual] |
Need a mechanism to return the PSPixelCanvasColorTable so drawing functions within classes can operate.
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::pixelDensity | ( | Float & | xdpi, |
Float & | ydpi | ||
) | const [virtual] |
Get the pixel density (in dots per inch [dpi]) of the PixelCanvas.
Implements casa::PixelCanvas.
virtual Float casa::PSPixelCanvas::pixelScaling | ( | ) | const [virtual] |
Reimplemented from casa::PixelCanvas.
virtual void casa::PSPixelCanvas::popMatrix | ( | ) | [virtual] |
Implements casa::PixelCanvas.
PSPixelCanvasColorTable* casa::PSPixelCanvas::PSpcctbl | ( | ) | const [inline] |
Definition at line 524 of file PSPixelCanvas.h.
References pcct_.
void casa::PSPixelCanvas::pspcinit | ( | PSDriver * | ps, |
PSPixelCanvasColorTable * | |||
) | [private] |
virtual void casa::PSPixelCanvas::pushMatrix | ( | ) | [virtual] |
save/restore the current translation.
This is called pushMatrix because eventually we may want scaling or rotation to play a modest role here.
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::refresh | ( | const Display::RefreshReason & | reason = Display::UserCommand , |
const Bool & | explicitrequest = True |
||
) | [virtual] |
(Not Cacheable) Redraw the window
Implements casa::PixelCanvas.
virtual Bool casa::PSPixelCanvas::resize | ( | uInt | reqXSize, |
uInt | reqYSize, | ||
Bool | doCallbacks = True |
||
) | [virtual] |
(Not Cacheable) resize request.
returns true if window was resized. Will refresh if doCallbacks is True.
Reimplemented from casa::PixelCanvas.
virtual Bool casa::PSPixelCanvas::resizeColorTable | ( | uInt | newSize | ) | [virtual] |
(Not Cacheable) resize the colortable by requesting a new number of cells
Implements casa::PixelCanvas.
virtual Bool casa::PSPixelCanvas::resizeColorTable | ( | uInt | nReds, |
uInt | nGreens, | ||
uInt | nBlues | ||
) | [virtual] |
(Not Cacheable) resize the colortable by requesting a new RGB/HSV cube
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::setArcMode | ( | Display::ArcMode | mode | ) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::setBackground | ( | uLong | color | ) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::setCapStyle | ( | Display::CapStyle | style | ) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::setClearColor | ( | uInt | colorIndex | ) | [virtual] |
(Cacheable) Set the color to use for clearing the display
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::setClearColor | ( | const String & | colorname | ) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::setClearColor | ( | float | r, |
float | g, | ||
float | b | ||
) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::setClipWindow | ( | Int | x1, |
Int | y1, | ||
Int | x2, | ||
Int | y2 | ||
) | [virtual] |
(Cacheable) Setup the clip window.
The clip window, when enabled, allows a user to clip all graphics output to a rectangular region on the screen. Once set, it is only possible to REDUCE the size of the current clip window, not increase it.
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::setColor | ( | uInt | colorIndex | ) | [virtual] |
(Cacheable) Set current color (works in RGB or colormap mode)
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::setColor | ( | const String & | colorname | ) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::setDeviceBackgroundColor | ( | const String | colorname | ) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::setDeviceForegroundColor | ( | const String | colorname | ) | [virtual] |
Get/set the current foreground/background colors.
These colors should be used when the special Strings "foreground" and "background" are given for a color.
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::setDrawBuffer | ( | Display::DrawBuffer | buf | ) | [virtual] |
(Not cacheable) set the draw buffer None of the buffer routines are supported.
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::setDrawFunction | ( | Display::DrawFunction | function | ) | [virtual] |
Set Graphics Attributes Options for functions with enum argument listed in DisplayEnums .
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::setFillRule | ( | Display::FillRule | rule | ) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::setFillStyle | ( | Display::FillStyle | style | ) | [virtual] |
Implements casa::PixelCanvas.
virtual Bool casa::PSPixelCanvas::setFont | ( | const String & | fontName, |
const Int | size | ||
) | [virtual] |
(Cacheable) Set the font to the PostScript font name and size.
Reimplemented from casa::PixelCanvas.
Referenced by setFont().
virtual Bool casa::PSPixelCanvas::setFont | ( | DLFont * | ) | [inline, virtual] |
TODO: These should become abstract Set the font via the DisplayLibrary Font class.
Reimplemented from casa::PixelCanvas.
Definition at line 159 of file PSPixelCanvas.h.
References casa::DLFont::getPSValue(), casa::DLFont::getSize(), and setFont().
virtual Bool casa::PSPixelCanvas::setFont | ( | const String & | fontName | ) | [virtual] |
(Cacheable) Set the font to the PostScript font name.
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::setForeground | ( | uLong | color | ) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::setHSVColor | ( | float | h, |
float | s, | ||
float | v | ||
) | [virtual] |
Reimplemented from casa::PixelCanvas.
virtual void casa::PSPixelCanvas::setImageCacheStrategy | ( | Display::ImageCacheStrategy | strategy | ) | [virtual] |
Control the image-caching strategy.
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::setJoinStyle | ( | Display::JoinStyle | style | ) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::setLineStyle | ( | Display::LineStyle | style | ) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::setLineWidth | ( | Float | width | ) | [virtual] |
virtual void setLineWidth(uInt width);
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::setPcctbl | ( | PixelCanvasColorTable * | pcctbl | ) | [virtual] |
Implements casa::PixelCanvas.
void casa::PSPixelCanvas::setResolution | ( | const float | xres, |
const float | yres, | ||
const PSDriver::Dimension | = PSDriver::INCHES |
||
) |
Set/get declared resolution in pixels per supplied dimension.
virtual void casa::PSPixelCanvas::setRGBColor | ( | float | r, |
float | g, | ||
float | b | ||
) | [virtual] |
Implements casa::PixelCanvas.
void casa::PSPixelCanvas::smooth | ( | const Bool | smth | ) | [inline] |
Whether to enable pixel interpolation for drawImage().
Definition at line 595 of file PSPixelCanvas.h.
References smooth_.
Bool casa::PSPixelCanvas::smooth | ( | ) | const [inline] |
Definition at line 596 of file PSPixelCanvas.h.
References smooth_.
virtual Bool casa::PSPixelCanvas::supportsLists | ( | ) | [inline, virtual] |
Does this canvas support cached display lists? The user of the canvas should always check this, because undefined behaviour can result when an attempt is made to use a list on a PixelCanvas which does not support lists.
Implements casa::PixelCanvas.
Definition at line 137 of file PSPixelCanvas.h.
References casa::False.
virtual void casa::PSPixelCanvas::swapBuffers | ( | ) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::swapBuffers | ( | Int | x1, |
Int | y1, | ||
Int | x2, | ||
Int | y2 | ||
) | [virtual] |
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::translate | ( | Int | xt, |
Int | yt | ||
) | [virtual] |
translation functions translate applies a relative translation to the current matrix and can be used to position graphics.
Together with pushMatrix and popMatrix it can be used to build heirarchical scenes.
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::translateAllLists | ( | Int | xt, |
Int | yt | ||
) | [virtual] |
translate all lists
Implements casa::PixelCanvas.
virtual void casa::PSPixelCanvas::translateList | ( | uInt | list, |
Int | xt, | ||
Int | yt | ||
) | [virtual] |
translate the list
Implements casa::PixelCanvas.
virtual Bool casa::PSPixelCanvas::validList | ( | uInt | list | ) | [virtual] |
return True if the list exists
Implements casa::PixelCanvas.
virtual uInt casa::PSPixelCanvas::width | ( | ) | const [virtual] |
Return the width of the PSPixelCanvas in pixels.
Implements casa::PixelCanvas.
virtual Int casa::PSPixelCanvas::xTranslation | ( | ) | const [virtual] |
Implements casa::PixelCanvas.
virtual Int casa::PSPixelCanvas::yTranslation | ( | ) | const [virtual] |
Implements casa::PixelCanvas.
Bool casa::PSPixelCanvas::annotate_ [private] |
Definition at line 640 of file PSPixelCanvas.h.
Referenced by annotate().
Definition at line 630 of file PSPixelCanvas.h.
uLong casa::PSPixelCanvas::background_ [private] |
Definition at line 634 of file PSPixelCanvas.h.
Definition at line 626 of file PSPixelCanvas.h.
uLong casa::PSPixelCanvas::clearColor_ [private] |
Definition at line 634 of file PSPixelCanvas.h.
Bool casa::PSPixelCanvas::clipEnabled_ [private] |
Definition at line 638 of file PSPixelCanvas.h.
float casa::PSPixelCanvas::clipx0_ [private] |
Definition at line 636 of file PSPixelCanvas.h.
float casa::PSPixelCanvas::clipx1_ [private] |
Definition at line 636 of file PSPixelCanvas.h.
float casa::PSPixelCanvas::clipy0_ [private] |
Definition at line 636 of file PSPixelCanvas.h.
float casa::PSPixelCanvas::clipy1_ [private] |
Definition at line 636 of file PSPixelCanvas.h.
Definition at line 632 of file PSPixelCanvas.h.
Definition at line 631 of file PSPixelCanvas.h.
Definition at line 629 of file PSPixelCanvas.h.
Definition at line 628 of file PSPixelCanvas.h.
uLong casa::PSPixelCanvas::foreground_ [private] |
Color indexes the three colors we know about.
Definition at line 634 of file PSPixelCanvas.h.
Bool casa::PSPixelCanvas::haveClipInfo_ [private] |
Definition at line 637 of file PSPixelCanvas.h.
Int casa::PSPixelCanvas::itsComponentBPC [private] |
Definition at line 644 of file PSPixelCanvas.h.
uLong casa::PSPixelCanvas::itsComponentHeight [private] |
Definition at line 643 of file PSPixelCanvas.h.
uShort* casa::PSPixelCanvas::itsComponents [private] |
Definition at line 645 of file PSPixelCanvas.h.
uLong casa::PSPixelCanvas::itsComponentWidth [private] |
Definition at line 643 of file PSPixelCanvas.h.
Float casa::PSPixelCanvas::itsComponentX [private] |
Component support.
Definition at line 642 of file PSPixelCanvas.h.
Float casa::PSPixelCanvas::itsComponentY [private] |
Definition at line 642 of file PSPixelCanvas.h.
Definition at line 627 of file PSPixelCanvas.h.
Definition at line 625 of file PSPixelCanvas.h.
float casa::PSPixelCanvas::lineWidth_ [private] |
Definition at line 624 of file PSPixelCanvas.h.
Referenced by lineWidth().
Definition at line 621 of file PSPixelCanvas.h.
Referenced by PSpcctbl().
PSDriver* casa::PSPixelCanvas::ps [private] |
Definition at line 622 of file PSPixelCanvas.h.
Bool casa::PSPixelCanvas::smooth_ [private] |
Definition at line 639 of file PSPixelCanvas.h.
Referenced by smooth().
float casa::PSPixelCanvas::xppp_ [private] |
Definition at line 623 of file PSPixelCanvas.h.
float casa::PSPixelCanvas::xt_ [private] |
Definition at line 635 of file PSPixelCanvas.h.
float casa::PSPixelCanvas::yppp_ [private] |
Definition at line 623 of file PSPixelCanvas.h.
float casa::PSPixelCanvas::yt_ [private] |
Definition at line 635 of file PSPixelCanvas.h.