#include <epsfutils.h>
Inheritance diagram for EpsfTools:
Public Member Functions | |
EpsfTools (int paper=A4PAPER) | |
virtual | ~EpsfTools () |
void | SetPaperTyp (int paper=A4PAPER) |
int | open (char *name, int fullpage=FALSE, int typ=-1, int info=-1) |
void | NIcons (int n=0) |
void | SetAbbWidth (double mm=FIGNRMWIDTH) |
void | SetFontSize (double p=FIGNRMFNTSZ) |
void | FootLine (Scan *s, int force=FALSE) |
void | init () |
void | placeimage () |
void | putframe () |
void | putline (Scan *s, int x1, int y1, int x2, int y2) |
void | putcircle (Scan *s, int x1, int y1, int x2, int y2) |
int | putticks (Scan *s, int OriginZero=TRUE) |
void | putgrey (Scan *s, Mem2d *m, int autoskl=TRUE, int quick=TRUE, int option=0) |
void | putbar (Scan *s) |
virtual void | putsize (Scan *s) |
virtual void | putmore (Scan *s, char *Title=NULL) |
void | endimage () |
void | close () |
EpsfTools (int paper=A4PAPER) | |
virtual | ~EpsfTools () |
void | SetPaperTyp (int paper=A4PAPER) |
int | open (char *name, int fullpage=FALSE, int typ=-1, int info=-1) |
void | NIcons (int n=0) |
void | SetAbbWidth (double mm=FIGNRMWIDTH) |
void | SetFontSize (double p=FIGNRMFNTSZ) |
void | FootLine (Scan *s, int force=FALSE) |
void | init () |
void | placeimage () |
void | putframe () |
void | putline (Scan *s, int x1, int y1, int x2, int y2) |
void | putcircle (Scan *s, int x1, int y1, int x2, int y2) |
int | putticks (Scan *s, int OriginZero=TRUE) |
void | putgrey (Scan *s, Mem2d *m, int autoskl=TRUE, int quick=TRUE, int option=0) |
void | putbar (Scan *s) |
virtual void | putsize (Scan *s) |
virtual void | putmore (Scan *s, char *Title=NULL) |
void | endimage () |
void | close () |
Protected Attributes | |
std::ofstream | Icf |
double | Width |
double | FontSize |
gchar * | font |
gchar * | font |
Private Member Functions | |
void | makesize (int &Nx, int &Ny) |
void | tr2picorigin (int Nx, int Ny) |
void | putheader (int fullpage, int typ, int info) |
void | putimgdef (Mem2d *m, int y=-1) |
void | makesize (int &Nx, int &Ny) |
void | tr2picorigin (int Nx, int Ny) |
void | putheader (int fullpage, int typ, int info) |
void | putimgdef (Mem2d *m, int y=-1) |
Private Attributes | |
char | EpsfBuffer [32000] |
char * | fname |
int | MkTyp |
int | imgdef |
int | PicNo |
int | nPicPage |
int | page |
int | papertyp |
char * | fname |
Definition at line 45 of file epsfutils.h.
|
Constructor. Only for initializing. Definition at line 128 of file epsfutils.C. References FALSE, font, imgdef, NIcons(), papertyp, PicNo, SetAbbWidth(), and SetFontSize(). |
|
Destructor. Only for clean up. Definition at line 141 of file epsfutils.C. |
|
|
|
|
|
|
|
Definition at line 1022 of file epsfutils.C. References Icf, nPicPage, and PicNo. Referenced by MkIconsPI(), and ~EpsfTools(). |
|
|
|
Definition at line 746 of file epsfutils.C. References EpsfBuffer, and Icf. Referenced by MkIconsPI(), and PIPrintPS(). |
|
|
|
Definition at line 756 of file epsfutils.C. References Scan::data, Scan_UserInfo::dateofscan, EpsfBuffer, Icf, nPicPage, PicNo, and SCAN_DATA::ui. Referenced by MkIconsPI(). |
|
|
|
Definition at line 700 of file epsfutils.C. References EpsfBuffer, Icf, nPicPage, and PicNo. Referenced by MkIconsPI(). |
|
|
|
Calculate Nx and Ny for resizing the image.
Definition at line 229 of file epsfutils.C. Referenced by putbar(), putcircle(), putimgdef(), putline(), and putticks(). |
|
Definition at line 52 of file epsfutils.h. |
|
Definition at line 52 of file epsfutils.h. References MkTyp, and nPicPage. Referenced by EpsfTools(), and MkIconsPI(). |
|
|
|
Open file for writing.
Definition at line 167 of file epsfutils.C. References ERR_FILEWRITE, ERR_SORRY, fname, Icf, and XSM_SHOW_ALERT. Referenced by MkIconsPI(), and PIPrintPS(). |
|
|
|
Definition at line 712 of file epsfutils.C. References A4PAPER, EPSF_XM, EPSF_YM_A4, EPSF_YM_LETTER, EpsfBuffer, FIGNRMWIDTH, Icf, imgdef, MkTyp, nPicPage, papertyp, PicNo, TRUE, and Width. Referenced by MkIconsPI(), and PIPrintPS(). |
|
|
|
Definition at line 647 of file epsfutils.C. References AutoSkl(), UnitObj::Base2Usr(), Scan::data, EpsfBuffer, font, Mem2d::GetNx(), Mem2d::GetNy(), makesize(), Scan::mem2d, UnitObj::psSymbol(), R2INT, Scan_Param::rx, SCAN_DATA::s, tr2picorigin(), and SCAN_DATA::Xunit. Referenced by PIPrintPS(). |
|
|
|
Draw a circle on top of the image. The first coordinate is the center. The second coordinate lies on the circle itself.
Definition at line 349 of file epsfutils.C. References Scan::data, EpsfBuffer, Mem2d::GetNx(), Mem2d::GetNy(), Icf, makesize(), Scan::mem2d, Scan_Param::rx, Scan_Param::ry, SCAN_DATA::s, sqrt(), tr2picorigin(), Scan_Param::x0, and Scan_Param::y0. |
|
|
|
Insert a frame aroudn the image into PS-stream. Definition at line 258 of file epsfutils.C. References EpsfBuffer, and Icf. Referenced by MkIconsPI(), and PIPrintPS(). |
|
|
|
Definition at line 828 of file epsfutils.C. References Mem2d::AutoDataSkl(), EpsfBuffer, Mem2d::GetDataVMode(), Mem2d::GetNx(), Mem2d::GetNy(), Icf, putimgdef(), Mem2d::SetDataRange(), and sqrt(). Referenced by MkIconsPI(), and PIPrintPS(). |
|
|
|
Insert neccessary EPSF header information into the PS-stream.
Definition at line 188 of file epsfutils.C. References A4PAPER, EpsfBuffer, fname, Icf, ID_PRINTI_NONE, ID_PRINTT_CIRC, ID_PRINTT_PLAIN, PACKAGE, papertyp, PSCode, and VERSION. |
|
|
|
Definition at line 780 of file epsfutils.C. References EpsfBuffer, Mem2d::GetNx(), Mem2d::GetNy(), Icf, makesize(), and tr2picorigin(). Referenced by putgrey(). |
|
|
|
Draw a line on top of the image.
Definition at line 282 of file epsfutils.C. References Scan::data, EpsfBuffer, Mem2d::GetNx(), Mem2d::GetNy(), Icf, makesize(), Scan::mem2d, Scan_Param::rx, Scan_Param::ry, SCAN_DATA::s, tr2picorigin(), Scan_Param::x0, and Scan_Param::y0. Referenced by PIPrintPS(). |
|
Reimplemented in SPA_epsftools, and SPA_epsftools. |
|
Reimplemented in SPA_epsftools, and SPA_epsftools. Definition at line 936 of file epsfutils.C. References Scan::data, Scan_UserInfo::dateofscan, DBG_L2, DBG_L3, font, Scan_UserInfo::host, Icf, Scan_UserInfo::name, Scan_UserInfo::originalname, Scan_UserInfo::type, SCAN_DATA::ui, Scan_UserInfo::user, and XSM_DEBUG. Referenced by PIPrintPS(). |
|
Reimplemented in SPA_epsftools, and SPA_epsftools. |
|
Reimplemented in SPA_epsftools, and SPA_epsftools. Definition at line 894 of file epsfutils.C. References Scan_UserInfo::comment, Scan::data, DBG_L3, SCAN_DATA::display, Scan_Param::dx, Scan_Param::dy, font, Icf, Scan_UserInfo::name, Scan_Param::nx, Scan_Param::ny, Scan_Param::rx, Scan_Param::ry, SCAN_DATA::s, SCAN_DATA::ui, UNIT_SM_PS, UnitObj::UsrString(), Display_Param::vrange_z, XSM_DEBUG, SCAN_DATA::Xunit, SCAN_DATA::Yunit, and SCAN_DATA::Zunit. Referenced by MkIconsPI(), and PIPrintPS(). |
|
|
|
Draw tic marks. Definition at line 412 of file epsfutils.C. References UnitObj::Base2Usr(), Scan::data, DBG_L2, EpsfBuffer, font, Mem2d::GetNx(), Mem2d::GetNy(), makesize(), Scan::mem2d, Scan_Param::rx, SCAN_DATA::s, tr2picorigin(), Scan_Param::x0, XSM_DEBUG, and SCAN_DATA::Xunit. Referenced by MkIconsPI(), and PIPrintPS(). |
|
Definition at line 53 of file epsfutils.h. References Width. |
|
Definition at line 53 of file epsfutils.h. References Width. Referenced by EpsfTools(), and PIPrintPS(). |
|
|
|
Insert font size selection in PS-stream. Definition at line 149 of file epsfutils.C. References FIGNRMWIDTH, font, FontSize, and Width. Referenced by EpsfTools(), and PIPrintPS(). |
|
Definition at line 50 of file epsfutils.h. References papertyp. |
|
Definition at line 50 of file epsfutils.h. References papertyp. Referenced by MkIconsPI(). |
|
|
|
Translate PS coordinate system.
Definition at line 248 of file epsfutils.C. References EpsfBuffer. Referenced by putbar(), putcircle(), putimgdef(), putline(), and putticks(). |
|
Definition at line 79 of file epsfutils.h. Referenced by endimage(), FootLine(), init(), placeimage(), putbar(), putcircle(), putframe(), putgrey(), putheader(), putimgdef(), putline(), putticks(), and tr2picorigin(). |
|
Definition at line 80 of file epsfutils.h. |
|
Definition at line 80 of file epsfutils.h. Referenced by open(), and putheader(). |
|
Definition at line 91 of file epsfutils.h. |
|
Definition at line 91 of file epsfutils.h. Referenced by EpsfTools(), putbar(), SPA_epsftools::putmore(), putmore(), SPA_epsftools::putsize(), putsize(), putticks(), SetFontSize(), and ~EpsfTools(). |
|
Definition at line 90 of file epsfutils.h. Referenced by SetFontSize(). |
|
Definition at line 89 of file epsfutils.h. Referenced by close(), endimage(), FootLine(), init(), open(), placeimage(), putcircle(), putframe(), putgrey(), putheader(), putimgdef(), putline(), SPA_epsftools::putmore(), putmore(), SPA_epsftools::putsize(), and putsize(). |
|
Definition at line 82 of file epsfutils.h. Referenced by EpsfTools(), and placeimage(). |
|
Definition at line 81 of file epsfutils.h. Referenced by NIcons(), and placeimage(). |
|
Definition at line 84 of file epsfutils.h. Referenced by close(), FootLine(), init(), NIcons(), and placeimage(). |
|
Definition at line 85 of file epsfutils.h. |
|
Definition at line 86 of file epsfutils.h. Referenced by EpsfTools(), placeimage(), putheader(), and SetPaperTyp(). |
|
Definition at line 83 of file epsfutils.h. Referenced by close(), EpsfTools(), FootLine(), init(), and placeimage(). |
|
Definition at line 90 of file epsfutils.h. Referenced by placeimage(), SetAbbWidth(), and SetFontSize(). |