## class LineEnd

> different line ending of a line

### Public Classes

  enum | Type
  enum |

### Public Fields

  static const int | CIRCLE_WIDTH the default width of a circle line end.
  static const int | OPEN_ARROW_LENGTH default length of open arrow.
  static const int | OPEN_ARROW_WIDTH default width of open arrow.
  static const int | FILLED_ARROW_LENGTH default length of the sides of the arrow head
  static const int | FILLED_ARROW_ANGLE angle between each side and the line in degrees
  static const double | FILLED_ARROW_INSET percentage inset for base of arrow [0..1] (values +- 0.60 work well).
  static const int | TRIANGLE_WIDTH default width of a triangle
  static const int | TRIANGLE_LENGTH default length of a side of a triangle.
  static const int | DIAMOND_WIDTH default width of a diamond.
  static const int | DIAMOND_LENGTH default length of a side of a diamond.
  static const TypeName | typeNames []

### Public Methods

  | LineEnd ()
  | LineEnd (Type t)
  void | SetType (Type t)
  LineEnd::Type | GetType ()
  void | SetLength (int l)
  int | GetLength ()
  void | SetWidth (int w)
  int | GetWidth ()
  static Type | String2Type (const string *s) e.g. convert "OpenArrow" to OPEN\_ARROW.
  static void | Type2String (Type t, string *s) e.g. convert OPEN\_ARROW to "OpenArrow".
  void | Draw (Grafport *g, const Point *from, const Point *to, Point *newEnd) draw the given line ending in the grafport.
  void static | CalcDiamond (const Point *from, const Point *to, int len, int wd, Point *points)
  void static | CalcDirectionDiamond (const Point *from, const Point *to, const Point *apos, int len, int wd, Point *points)
  static void | CalcFilledArrowHead (const Point *from, const Point *to, int len, Point *points)

## Documentation

> different line ending of a line

`enum Type`

`enum`

`LineEnd()`

`LineEnd(Type t)`

`void SetType(Type t)`

`LineEnd::Type GetType()`

`void SetLength(int l)`

`int GetLength()`

`void SetWidth(int w)`

`int GetWidth()`

`static const int CIRCLE_WIDTH`
  the default width of a circle line end.

`static const int OPEN_ARROW_LENGTH`
  default length of open arrow.

`static const int OPEN_ARROW_WIDTH`
  default width of open arrow.

`static const int FILLED_ARROW_LENGTH`
  default length of the sides of the arrow head

`static const int FILLED_ARROW_ANGLE`
  angle between each side and the line in degrees

`static const double FILLED_ARROW_INSET`
  percentage inset for base of arrow [0..1] (values +- 0.60 work well).

`static const int TRIANGLE_WIDTH`
  default width of a triangle

`static const int TRIANGLE_LENGTH`
  default length of a side of a triangle.

`static const int DIAMOND_WIDTH`
  default width of a diamond.

`static const int DIAMOND_LENGTH`
  default length of a side of a diamond.

`static const TypeName typeNames[]`

`static Type String2Type(const string *s)`
  e.g. convert "OpenArrow" to OPEN\_ARROW.

`static void Type2String(Type t, string *s)`
  e.g. convert OPEN\_ARROW to "OpenArrow".

`void Draw(Grafport *g, const Point *from, const Point *to, Point *newEnd)`
  draw the given line ending in the grafport.

`void static CalcDiamond(const Point *from, const Point *to, int len, int wd, Point *points)`

`void static CalcDirectionDiamond(const Point *from, const Point *to, const Point *apos, int len, int wd, Point *points)`

`static void CalcFilledArrowHead(const Point *from, const Point *to, int len, Point *points)`

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