## class LinePiece

> horizontal or vertical line (cell boundary).

### Public Methods

  | LinePiece (Grafport *g, Point *from, Point *to, LineStyle::Type style, unsigned width)
  void | Draw ()
  void | Undraw ()
  bool | HitLine (int x, int y) return iff (x,y) is on line piece
  void | SetLineStyle (LineStyle::Type t)
  LineStyle::Type | GetLineStyle ()
  void | UpdateLineStyle (LineStyle::Type t)
  void | SetLineWidth (unsigned n)
  unsigned | GetLineWidth ()
  void | UpdateLineWidth (unsigned n)
  void | SetBegin (const Point *pt)
  void | SetEnd (const Point *pt)
  void | SetPoints (const Point *pt1, const Point *pt2)
  void | UpdatePoints (const Point *pt1, const Point *pt2)
  void | UpdateBegin (const Point *pt)
  void | UpdateEnd (const Point *pt)
  void | SetGrafport (Grafport *g)
  void | Write (OutputFile *f)
  bool | Read (InputFile *f, double format)
  Point* | GetBegin ()
  Point* | GetEnd ()
  bool | IsVisible ()
  void | SetVisible (bool b)

## Documentation

> horizontal or vertical line (cell boundary).

`LinePiece(Grafport *g, Point *from, Point *to, LineStyle::Type style, unsigned width)`

`void Draw()`

`void Undraw()`

`bool HitLine(int x, int y)`
  return iff (x,y) is on line piece

`void SetLineStyle(LineStyle::Type t)`

`LineStyle::Type GetLineStyle()`

`void UpdateLineStyle(LineStyle::Type t)`

`void SetLineWidth(unsigned n)`

`unsigned GetLineWidth()`

`void UpdateLineWidth(unsigned n)`

`void SetBegin(const Point *pt)`

`void SetEnd(const Point *pt)`

`void SetPoints(const Point *pt1, const Point *pt2)`

`void UpdatePoints(const Point *pt1, const Point *pt2)`

`void UpdateBegin(const Point *pt)`

`void UpdateEnd(const Point *pt)`

`void SetGrafport(Grafport *g)`

`void Write(OutputFile *f)`

`bool Read(InputFile *f, double format)`

`Point* GetBegin()`

`Point* GetEnd()`

`bool IsVisible()`

`void SetVisible(bool b)`

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