Bitmap Class Reference

#include <Bitmap.hpp>

Collaboration diagram for Bitmap:

Collaboration graph
[legend]
List of all members.

Detailed Description

This class defines a simple rectangle.

The rectangle can have a user defined appearance, specified using a StrokeStyle.

Definition at line 42 of file Bitmap.hpp.

Public Types

enum  CMType { CM, ICM }
 Declare the enumeration. More...

Public Member Functions

 Bitmap (double ix1, double iy1, double ix2, double iy2, const ColorMap &c)
 Constructor.
 Bitmap (double ix1, double iy1, double ix2, double iy2, const InterpolatedColorMap &ic)
 Constructor.
 Bitmap (const Bitmap &o)
 Copy constructor.
 ~Bitmap ()
 Destructor.
bool getCM (ColorMap *c) const
 Get the ColorMap and return true if that is what this was initialized with.
bool getICM (InterpolatedColorMap *c) const
 Get the InterpolatedColorMap and return true if that is what this was initialized with.
void oversample (int scale)
 Oversample such that each color is represented in scale^2 pixels.
void oversample (int rscale, int cscale)
 Scaling such that 1 colormap entry = xscale*yscale final image entries in the output image.
void useBoxes (bool useboxes)
 Whether or not to just draw boxes.

Public Attributes

double x1
 X coordinate of first corner.
double y1
 Y coordinate of first corner.
double x2
 X coordinate of opposite corner.
double y2
 Y coordinate of opposite corner.
int osr
 Row overscaling.
int osc
 Column overscaling.
bool boxes
 Just draw (way too many) boxes?


Member Enumeration Documentation

enum CMType
 

Declare the enumeration.

Enumeration values:
CM 
ICM 

Definition at line 47 of file Bitmap.hpp.


Constructor & Destructor Documentation

Bitmap double  ix1,
double  iy1,
double  ix2,
double  iy2,
const ColorMap c
 

Constructor.

Parameters:
ix1 x coordinate of first corner
iy1 y coordinate of first corner
ix2 x coordinate of opposite corner
iy2 y coordinate of opposite corner
c Color map to be drawn in

Bitmap double  ix1,
double  iy1,
double  ix2,
double  iy2,
const InterpolatedColorMap ic
 

Constructor.

Parameters:
ix1 x coordinate of first corner
iy1 y coordinate of first corner
ix2 x coordinate of opposite corner
iy2 y coordinate of opposite corner
ic Color map to be drawn in

Bitmap const Bitmap o  ) 
 

Copy constructor.

~Bitmap  )  [inline]
 

Destructor.

Definition at line 96 of file Bitmap.hpp.


Member Function Documentation

bool getCM ColorMap c  )  const [inline]
 

Get the ColorMap and return true if that is what this was initialized with.

Definition at line 100 of file Bitmap.hpp.

Referenced by PSImageBase::bitmap(), and PNG::cost_constant().

bool getICM InterpolatedColorMap c  )  const [inline]
 

Get the InterpolatedColorMap and return true if that is what this was initialized with.

Definition at line 109 of file Bitmap.hpp.

Referenced by PSImageBase::bitmap(), PNG::cost_constant(), and PNG::cost_indexed().

void oversample int  rscale,
int  cscale
[inline]
 

Scaling such that 1 colormap entry = xscale*yscale final image entries in the output image.

Parameters:
rscale 1 ColorMap row mapped to rscale image rows
cscale 1 ColorMap column mapped to cscale image columns

Definition at line 125 of file Bitmap.hpp.

void oversample int  scale  )  [inline]
 

Oversample such that each color is represented in scale^2 pixels.

Definition at line 117 of file Bitmap.hpp.

void useBoxes bool  useboxes  )  [inline]
 

Whether or not to just draw boxes.

Definition at line 134 of file Bitmap.hpp.


Member Data Documentation

bool boxes
 

Just draw (way too many) boxes?

Definition at line 68 of file Bitmap.hpp.

Referenced by SVGImage::bitmap(), and PSImageBase::bitmap().

int osc
 

Column overscaling.

Definition at line 65 of file Bitmap.hpp.

Referenced by PSImageBase::bitmap(), PNG::cost_constant(), and PNG::cost_indexed().

int osr
 

Row overscaling.

Definition at line 62 of file Bitmap.hpp.

Referenced by PSImageBase::bitmap(), PNG::cost_constant(), and PNG::cost_indexed().

double x1
 

X coordinate of first corner.

Definition at line 50 of file Bitmap.hpp.

Referenced by SVGImage::bitmap(), and PSImageBase::bitmap().

double x2
 

X coordinate of opposite corner.

Definition at line 56 of file Bitmap.hpp.

Referenced by SVGImage::bitmap(), and PSImageBase::bitmap().

double y1
 

Y coordinate of first corner.

Definition at line 53 of file Bitmap.hpp.

Referenced by SVGImage::bitmap(), and PSImageBase::bitmap().

double y2
 

Y coordinate of opposite corner.

Definition at line 59 of file Bitmap.hpp.

Referenced by SVGImage::bitmap(), and PSImageBase::bitmap().


The documentation for this class was generated from the following file:
Generated on Tue Feb 7 03:31:24 2012 for GPS ToolKit Software Library by  doxygen 1.3.9.1