Line Class Reference

#include <Line.hpp>

Inheritance diagram for Line:

Inheritance graph
[legend]
Collaboration diagram for Line:

Collaboration graph
[legend]
List of all members.

Detailed Description

This class defines a simple line between a set of points.

The line can have a user defined appearance, specified using a StrokeStyle. It can also contain its own Marker which will show how each point is displayed.

Definition at line 49 of file Line.hpp.

Public Member Functions

 Line (double ix1, double iy1, double ix2, double iy2)
 Constructor.
 Line (double ix1, double iy1, double ix2, double iy2, const StrokeStyle &istyle)
 Constructor.
 Line (const Path &iPath)
 Constructor.
 Line (const Path &iPath, const StrokeStyle &istyle)
 Constructor.
 Line (const Path &iPath, const Marker &imarker)
 Constructor.
 Line (const Path &iPath, const StrokeStyle &istyle, const Marker &imarker)
 Constructor.


Constructor & Destructor Documentation

Line double  ix1,
double  iy1,
double  ix2,
double  iy2
 

Constructor.

Defines the start and end points of the line.

Parameters:
ix1 x coordinate of start point
iy1 y coordinate of start point
ix2 x coordinate of end point
iy2 y coordinate of end point

Line double  ix1,
double  iy1,
double  ix2,
double  iy2,
const StrokeStyle istyle
 

Constructor.

Defines the start and end points of the line and its appearance.

Parameters:
ix1 x coordinate of start point
iy1 y coordinate of start point
ix2 x coordinate of end point
iy2 y coordinate of end point
istyle appearance of the stroke

Line const Path iPath  )  [inline]
 

Constructor.

Defines a line of several segments.

Parameters:
iPath the set of points to connect

Definition at line 78 of file Line.hpp.

Line const Path iPath,
const StrokeStyle istyle
[inline]
 

Constructor.

Defines a line of several segments.

Parameters:
iPath the set of points to connect
istyle appearance of the stroke

Definition at line 87 of file Line.hpp.

Line const Path iPath,
const Marker imarker
[inline]
 

Constructor.

Defines a line of several segments.

Note:
If this constructor is used and there is no default linestyle set for the stream in which this line is drawn, then there will only be marks at the points and there will be no lines connecting them. This also applies if the selected stroke style has a clear color.
Parameters:
iPath the set of points to connect
imarker the marker for the points of the line

Definition at line 100 of file Line.hpp.

Line const Path iPath,
const StrokeStyle istyle,
const Marker imarker
[inline]
 

Constructor.

Defines a line of several segments.

Parameters:
iPath the set of points to connect
istyle appearance of the stroke
imarker the marker for the points of the line

Definition at line 110 of file Line.hpp.


The documentation for this class was generated from the following file:
Generated on Tue Feb 7 03:31:25 2012 for GPS ToolKit Software Library by  doxygen 1.3.9.1