PSImageBase Class Reference

#include <PSImageBase.hpp>

Inheritance diagram for PSImageBase:

Inheritance graph
[legend]
Collaboration diagram for PSImageBase:

Collaboration graph
[legend]
List of all members.

Detailed Description

This class implements the functionality common between the EPS and Postscript formats.

Definition at line 48 of file PSImageBase.hpp.

Public Member Functions

 PSImageBase (std::ostream &stream, double width=US_LETTER_WIDTH_PTS, double height=US_LETTER_HEIGHT_PTS, ORIGIN_LOCATION iloc=LOWER_LEFT)
 Create a Postscript output stream attached to an existing stream.
 PSImageBase (const char *fname, double width=US_LETTER_WIDTH_PTS, double height=US_LETTER_HEIGHT_PTS, ORIGIN_LOCATION iloc=LOWER_LEFT)
 Create a Postscript output stream attached to an existing stream.
 ~PSImageBase (void)
 Destructor.
void setMarker (const Marker &newMarker)
void comment (const Comment &comment)
void line (const Line &line)
void rectangle (const Rectangle &rect)
void circle (const Circle &circle)
void polygon (const Polygon &polygon)
void bitmap (const Bitmap &bitmap)
void text (const Text &text)

Protected Attributes

std::ofstream myfstream
 When writing to a file, this is used to set ostr.
std::ostream & ostr
 The stream to write to.
std::string filename
 Remember the output file name.
StrokeStyle lastUsedStrokeStyle
 Postscript uses one color at a time.
TextStyle lastUsedTextStyle
 Last text style used.


Constructor & Destructor Documentation

PSImageBase std::ostream &  stream,
double  width = US_LETTER_WIDTH_PTS,
double  height = US_LETTER_HEIGHT_PTS,
ORIGIN_LOCATION  iloc = LOWER_LEFT
 

Create a Postscript output stream attached to an existing stream.

Parameters:
stream Stream to insert Postscript graphic elements
width Width of the Postscript canvas in points
height Height of the Postscript canvas in points
iloc Location of the origin the drawer will use.

Definition at line 39 of file PSImageBase.cpp.

PSImageBase const char *  fname,
double  width = US_LETTER_WIDTH_PTS,
double  height = US_LETTER_HEIGHT_PTS,
ORIGIN_LOCATION  iloc = LOWER_LEFT
 

Create a Postscript output stream attached to an existing stream.

Parameters:
fname Name of the output file to be created
width Width of the Postscript canvas in points
height Height of the Postscript canvas in points
iloc Location of the origin the drawer will use.

Definition at line 51 of file PSImageBase.cpp.

~PSImageBase void   ) 
 

Destructor.

Definition at line 63 of file PSImageBase.cpp.


Member Function Documentation

void bitmap const Bitmap bitmap  ) 
 

Definition at line 364 of file PSImageBase.cpp.

References Bitmap::boxes, comment(), InterpolatedColorMap::get(), ColorMap::get(), Bitmap::getCM(), ColorMap::getCols(), InterpolatedColorMap::getCols(), Bitmap::getICM(), Color::getRGB(), ColorMap::getRows(), InterpolatedColorMap::getRows(), Bitmap::osc, Bitmap::osr, ostr, Bitmap::x1, Bitmap::x2, Bitmap::y1, and Bitmap::y2.

void circle const Circle circle  ) 
 

Definition at line 300 of file PSImageBase.cpp.

References comment(), ostr, Circle::radius, Circle::xc, and Circle::yc.

void comment const Comment comment  ) 
 

Definition at line 77 of file PSImageBase.cpp.

References ostr, and Comment::str.

Referenced by bitmap(), circle(), polygon(), rectangle(), and text().

void line const Line line  ) 
 

Definition at line 157 of file PSImageBase.cpp.

References Marker::getColor(), Markable::getMarker(), Color::getRGBTripletFractional(), and ostr.

void polygon const Polygon polygon  ) 
 

Definition at line 334 of file PSImageBase.cpp.

References comment(), and ostr.

void rectangle const Rectangle rect  ) 
 

Definition at line 265 of file PSImageBase.cpp.

References comment(), ostr, Rectangle::x1, Rectangle::x2, Rectangle::y1, and Rectangle::y2.

void setMarker const Marker newMarker  )  [inline]
 

Definition at line 79 of file PSImageBase.hpp.

void text const Text text  ) 
 

Definition at line 439 of file PSImageBase.cpp.

References comment(), Text::getAngle(), TextStyle::getColor(), Color::getRGBTripletFractional(), Text::getString(), Text::isCenter(), Text::isRight(), lastUsedTextStyle, ostr, Text::x, and Text::y.


Member Data Documentation

std::string filename [protected]
 

Remember the output file name.

Definition at line 109 of file PSImageBase.hpp.

StrokeStyle lastUsedStrokeStyle [protected]
 

Postscript uses one color at a time.

It doesn't use separate colors for edges, lines or shapes.

Definition at line 115 of file PSImageBase.hpp.

TextStyle lastUsedTextStyle [protected]
 

Last text style used.

Definition at line 118 of file PSImageBase.hpp.

Referenced by text().

std::ofstream myfstream [protected]
 

When writing to a file, this is used to set ostr.

Definition at line 103 of file PSImageBase.hpp.

std::ostream& ostr [protected]
 

The stream to write to.

Definition at line 106 of file PSImageBase.hpp.

Referenced by bitmap(), circle(), comment(), line(), polygon(), rectangle(), and text().


The documentation for this class was generated from the following files:
Generated on Mon May 20 03:31:35 2013 for GPS ToolKit Software Library by  doxygen 1.3.9.1