00001 #pragma ident "$Id: PSImage.hpp 1644 2009-01-27 19:26:14Z ckiesch $"
00002
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef VDRAW_PSIMAGE_H
00029 #define VDRAW_PSIMAGE_H
00030
00031 #include <string>
00032 #include <iostream>
00033 #include <fstream>
00034 #include "ViewerManager.hpp"
00035 #include "PSImageBase.hpp"
00036
00037 namespace vdraw
00038 {
00041
00046 class PSImage : public PSImageBase {
00047
00048 public:
00049
00057 PSImage(std::ostream& stream,
00058 double width=US_LETTER_WIDTH_PTS,
00059 double height=US_LETTER_HEIGHT_PTS,
00060 ORIGIN_LOCATION iloc=LOWER_LEFT);
00061
00069 PSImage(const char* fname, double width=US_LETTER_WIDTH_PTS,
00070 double height=US_LETTER_HEIGHT_PTS,
00071 ORIGIN_LOCATION iloc=LOWER_LEFT);
00072
00073
00075 ~PSImage(void);
00076
00078 void view (void) throw (VDrawException);
00079
00081 ViewerManager viewerManager;
00082
00083 protected:
00084
00085 virtual void outputHeader(void);
00086 virtual void outputFooter(void);
00087
00088 private:
00089
00090
00091
00092 };
00093
00095
00096 }
00097
00098 #endif //VDRAW_PSIMAGE_H
00099