#include <Txq2dLine.h>
Inheritance diagram for Txq2dLine::

Public Methods | |
| Txq2dLine () | |
| Creates a Txq2dLine with the default start and end points. More... | |
| virtual | ~Txq2dLine () |
| The destructor. More... | |
| Txq2dLine (const std::vector< int > &xpoints, const std::vector< int > &ypoints) | |
| Constructs the line segments points in the real-world coordinates. More... | |
| Txq2dLine (const std::vector< QPoint > &qpoints) | |
| Constructs the line segments points in the real-world coordinates. More... | |
| Txq2dLine (const std::vector< TxqDoublePoint > &txdouble) | |
| Constructs the line segments points in the real-world coordinates. More... | |
| Txq2dLine (const std::vector< double > &xpoints, const std::vector< double > &ypoints) | |
| Constructs the line segments points in the real-world coordinates. More... | |
| Txq2dLine (const std::vector< double > &xpoints, const std::vector< double > &ypoints, int numPoints) | |
| Constructs the line points in the real-world coordinates numPoints determines the number of points in a line xpoints.size()/numPoints will equal the total number of line segments. More... | |
| void | addPoint (TxqDoublePoint point) |
| Add a point to the line segment vector. More... | |
| void | addPoint (int x, int y) |
| Add a point to the line segment vector. More... | |
| void | addPoint (double x, double y) |
| Add a point to the line segment vector. More... | |
| void | addPoint (QPoint point) |
| Add a point to the line segment vector. More... | |
| void | makeLineSegments () |
| Make the line segments. More... | |
| void | setPoints (const std::vector< int > &xpoints, const std::vector< int > &ypoints) |
| Set the line segments points in the real-world coordinates. More... | |
| void | setPoints (const std::vector< QPoint > &qpoints) |
| Set the line segments points in the real-world coordinates. More... | |
| void | setPoints (const std::vector< TxqDoublePoint > &txdouble) |
| Set the line segments points in the real-world coordinates. More... | |
| void | setPoints (const std::vector< double > &xpoints, const std::vector< double > &ypoints) |
| Set the line segments points in the real-world coordinates. More... | |
| void | setPoints (const std::vector< double > &xpoints, const std::vector< double > &ypoints, int numPoints) |
| Set the line segments points in the real-world coordinates. More... | |
| void | paint (QPainter *g) |
| Paints the line using the end points. More... | |
| void | setColor (QColor c) |
| Set the color. More... | |
| void | setPrintColor (QColor c) |
| Set the print color. More... | |
Protected Methods | |
| virtual void | initialize () |
| Initialize the class data members. More... | |
| void | dump (QTextStream *ts) |
| Dump the objects contents to the text stream ts. More... | |
Private Attributes | |
| std::vector<Txq2dLineSeg*> | line |
| The vector of Txq2dLineSeg's making the line. More... | |
| int | lineSegPoints |
| The length of the points vector. More... | |
| int | numLinePoints |
| The number of points in a line. More... | |
The line is defined by specifying the two end points.
Definition at line 31 of file Txq2dLine.h.
|
|
Creates a Txq2dLine with the default start and end points.
|
|
|
The destructor.
|
|
|
Constructs the line segments points in the real-world coordinates.
|
|
|
Constructs the line segments points in the real-world coordinates.
|
|
|
Constructs the line segments points in the real-world coordinates.
|
|
|
Constructs the line segments points in the real-world coordinates.
|
|
|
Constructs the line points in the real-world coordinates numPoints determines the number of points in a line xpoints.size()/numPoints will equal the total number of line segments.
|
|
|
Add a point to the line segment vector.
|
|
|
Add a point to the line segment vector.
|
|
|
Add a point to the line segment vector.
|
|
|
Add a point to the line segment vector.
|
|
|
Dump the objects contents to the text stream ts.
Reimplemented from Txq2dLineSeg. |
|
|
Initialize the class data members.
Reimplemented from Txq2dLineSeg. |
|
|
Make the line segments.
|
|
|
Paints the line using the end points.
Reimplemented from Txq2dLineSeg. |
|
|
Set the color.
Reimplemented from TxqDrawable. |
|
|
Set the line segments points in the real-world coordinates.
|
|
|
Set the line segments points in the real-world coordinates.
|
|
|
Set the line segments points in the real-world coordinates.
|
|
|
Set the line segments points in the real-world coordinates.
|
|
|
Set the line segments points in the real-world coordinates.
|
|
|
Set the print color.
Reimplemented from TxqDrawable. |
|
|
The vector of Txq2dLineSeg's making the line.
Definition at line 218 of file Txq2dLine.h. |
|
|
The length of the points vector.
Definition at line 223 of file Txq2dLine.h. |
|
|
The number of points in a line.
Definition at line 228 of file Txq2dLine.h. |
Copyright Tech-X Corporation, all rights reserved.