## class FigGrafport : public Grafport

> Fig Grafport Class

## Inheritance:

### Public Methods

  | FigGrafport (const char *fileName) open grafport to filename, When filename = "", stdout is used.
  virtual | ~FigGrafport ()
  bool | IsSucces ()
  void | ClearArea (int, int, int, int)
  void | SetLineWidth (unsigned n)
  void | SetBackgroundColor (const string *)
  void | SetBackgroundColor (const char *)
  void | SetForegroundColor (const string *)
  void | SetForegroundColor (const char *)
  void | DrawRectangle (int x, int y, int wd, int ht)
  void | FillRectangle (int x, int y, int wd, int ht)
  void | DrawRoundedRectangle (int x, int y, int wd, int ht, int rd)
  void | FillRoundedRectangle (int x, int y, int wd, int ht, int rd)
  void | DrawEllipsedRectangle (int x, int y, int wd, int ht, int rd)
  void | FillEllipsedRectangle (int x, int y, int wd, int ht, int rd)
  void | DrawDisk (int x, int y, int wd, int ht, int rd)
  void | FillDisk (int x, int y, int wd, int ht, int rd)
  void | DrawUnzoomedRectangle (int x, int y, int wd, int ht)
  void | DrawStringLeft (int x, int y, const char *str)
  void | DrawStringCentered (int x, int y, const char *str)
  void | DrawStringRight (int x, int y, const char *str)
  void | DrawUnzoomedStringLeft (int x, int y, const char *str)
  void | DrawUnzoomedStringCentered (int x, int y, const char *str)
  void | DrawStringLeftUnderlined (int x, int y, const char *str)
  void | DrawStringCenteredUnderlined (int x, int y, const char *str)
  void | DrawStringRightUnderlined (int x, int y, const char *str)
  void | DrawLine (int x1, int y1, int x2, int y2)
  void | DrawLine (const Point *p1, const Point *p2)
  void | DrawCurve (const Point *p1, const Point *p2, const Point *p3, const Point *p4)
  void | DrawUnzoomedLine (int x1, int y1, int x2, int y2)
  void | DrawPoint (int x, int y)
  void | DrawPoint (const Point *p)
  void | DrawEllipse (int x, int y, int wd, int ht)
  void | FillEllipse (int x, int y, int wd, int ht)
  void | DrawArc (int x, int y, int wd, int ht, int arc1, int arc2)
  void | FillArc (int x, int y, int wd, int ht, int arc1, int arc2)
  void | DrawPolygon (const Point *points, int n)
  void | FillPolygon (const Point *points, int n)
  void | Header (bool landscape=False) generate Fig header.
  void | SetFont (XFont *font) set grafport font.
  void | SetPageSize (double x, double y)
  void | SetFactor (double f)
  void | SetTexFonts (bool b)
  bool | IsTexFonts ()

### Protected Methods

  static void | MakeFigString (string *str)

### Inherited from Grafport:

### Public Methods

virtual bool DrawsXor()
virtual void UpdateSize(int, int)
virtual int GetWidth()
virtual int GetHeight()
virtual void Redraw(int, int, int, int, int, int)
XFont* GetFont()
const string* GetBackgroundColor()
const string* GetForegroundColor()
List <Color *> * GetColors()
void SetLineStyle(LineStyle::Type s)
LineStyle::Type GetLineStyle()
void SetFillStyle(FillStyle::Type s)
FillStyle::Type GetFillStyle()
unsigned GetLineWidth()
void SetZoomValue(double newValue)
double GetZoomValue()
int Zoom(int x)
int ZoomCorrect(int x)
void DrawRectangles(const Rectangle *rects, int n)
void FillRectangles(const Rectangle *rects, int n)
virtual void DrawEditDashedRectangle(int, int, int, int)
Point DrawStringsCentered(int x, int y, const string *str, bool ul, int cursor=0)
Point DrawStringsLeft( int topLeftx, int topLefty, const string *str, bool ul, int cursor=0)
Point DrawStringsRight( int topRightx, int topRighty, const string *str, bool ul, int cursor=0)
unsigned CursorPosition( int x, int y, const string *str, int hitX, int hitY)
virtual void DrawEditLine(int, int, int, int)
virtual void DrawEditLine(const Point *, const Point *)
virtual void DrawEditDottedGridLine(int, int, int, int)
virtual void DrawEditDottedLine(int, int, int, int)
virtual void DrawEditPoint(int, int)
virtual void DrawEditPoint(const Point *)
virtual void DrawActiveCaret(int, int)
virtual void DrawDeactiveCaret(int, int)

### Public

### Protected Methods

Point CursorPosition(int x, int y, const string *buf, int cursor)
Color* LookupColor(const string *colorName)
Color* LookupColor(const char *colorName)
void AddColor(const string *colorName, unsigned long pixel)
void AddColor(const char *colorName, unsigned long pixel)
void AddColor(Color *c)
virtual void InitColors()
void RecalcPolygon(const Point *points, int nrPoints, Point *newPoints, int d)

## Documentation

> Fig Grafport Class

`FigGrafport(const char *fileName)`
  open grafport to filename, When filename = "", stdout is used.

`virtual ~FigGrafport()`

`bool IsSucces()`

`void ClearArea(int, int, int, int)`

`void SetLineWidth(unsigned n)`

`void SetBackgroundColor(const string *)`

`void SetBackgroundColor(const char *)`

`void SetForegroundColor(const string *)`

`void SetForegroundColor(const char *)`

`void DrawRectangle(int x, int y, int wd, int ht)`

`void FillRectangle(int x, int y, int wd, int ht)`

`void DrawRoundedRectangle(int x, int y, int wd, int ht, int rd)`

`void FillRoundedRectangle(int x, int y, int wd, int ht, int rd)`

`void DrawEllipsedRectangle(int x, int y, int wd, int ht, int rd)`

`void FillEllipsedRectangle(int x, int y, int wd, int ht, int rd)`

`void DrawDisk(int x, int y, int wd, int ht, int rd)`

`void FillDisk(int x, int y, int wd, int ht, int rd)`

`void DrawUnzoomedRectangle(int x, int y, int wd, int ht)`

`void DrawStringLeft(int x, int y, const char *str)`

`void DrawStringCentered(int x, int y, const char *str)`

`void DrawStringRight(int x, int y, const char *str)`

`void DrawUnzoomedStringLeft(int x, int y, const char *str)`

`void DrawUnzoomedStringCentered(int x, int y, const char *str)`

`void DrawStringLeftUnderlined(int x, int y, const char *str)`

`void DrawStringCenteredUnderlined(int x, int y, const char *str)`

`void DrawStringRightUnderlined(int x, int y, const char *str)`

`void DrawLine(int x1, int y1, int x2, int y2)`

`void DrawLine(const Point *p1, const Point *p2)`

`void DrawCurve(const Point *p1, const Point *p2, const Point *p3, const Point *p4)`

`void DrawUnzoomedLine(int x1, int y1, int x2, int y2)`

`void DrawPoint(int x, int y)`

`void DrawPoint(const Point *p)`

`void DrawEllipse(int x, int y, int wd, int ht)`

`void FillEllipse(int x, int y, int wd, int ht)`

`void DrawArc(int x, int y, int wd, int ht, int arc1, int arc2)`

`void FillArc(int x, int y, int wd, int ht, int arc1, int arc2)`

`void DrawPolygon(const Point *points, int n)`

`void FillPolygon(const Point *points, int n)`

`void Header(bool landscape=False)`
  generate Fig header.

`void SetFont(XFont *font)`
  set grafport font.

`void SetPageSize(double x, double y)`

`void SetFactor(double f)`

`void SetTexFonts(bool b)`

`bool IsTexFonts()`

`static void MakeFigString(string *str)`

This class has no child classes.

alphabetic index hierarchy of classes

this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de