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

Public Methods | |
| Txq2dSeg () | |
| The constructor is default. More... | |
| virtual | ~Txq2dSeg () |
| The destructor is default. More... | |
| void | paint (QPainter *p) |
| The paint method does nothing but must be implemented. More... | |
| void | setStartPoint (TxqDoublePoint p) |
| Set the starting point of the segment in the Txq2dCanvas' coordinate system. More... | |
| TxqDoublePoint | getStartPoint () |
| Returns the starting point of the segment in the canvas coordinate system. More... | |
| void | setEndPoint (TxqDoublePoint p) |
| Set the ending point of the segment in the canvas coordinate system. More... | |
| TxqDoublePoint | getEndPoint () |
| Returns the ending point of the segment in the canvas coordinate system. More... | |
| void | setLocation (int x, int y) |
| Overrided to make sure start and end points are translated with moves to new locations. More... | |
Protected Attributes | |
| TxqDoublePoint | startPoint |
| The start point. More... | |
| TxqDoublePoint | endPoint |
| The end point. More... | |
The coordinates of these two points are with respect to the container's coordinate system. The container is assumed to be a Txq2dCanvas. A Txq2dSeg also has the property that it can find the closest intersection point with a given directional line (i.e. an infinite ray starting at a specified point and having a specified slope).
Warning: A Txq2dSeg cannot be painted.
Copyright 2000 by Tech-X Corporation
Definition at line 42 of file Txq2dSeg.h.
|
|
The constructor is default.
|
|
|
The destructor is default.
Definition at line 54 of file Txq2dSeg.h. |
|
|
Returns the ending point of the segment in the canvas coordinate system.
|
|
|
Returns the starting point of the segment in the canvas coordinate system.
|
|
|
The paint method does nothing but must be implemented.
Reimplemented from Txq2dDrawable. Reimplemented in Txq2dLine, Txq2dLineSeg, Txq2dPolygon, Txq2dPolygonArray, Txq2dSegmented, and Txq2dVector. Definition at line 59 of file Txq2dSeg.h. |
|
|
Set the ending point of the segment in the canvas coordinate system.
Reimplemented in Txq2dLineSeg. |
|
|
Overrided to make sure start and end points are translated with moves to new locations.
Reimplemented from TxqDrawable. |
|
|
Set the starting point of the segment in the Txq2dCanvas' coordinate system.
Reimplemented in Txq2dLineSeg. |
|
|
The end point.
Definition at line 104 of file Txq2dSeg.h. |
|
|
The start point.
Definition at line 99 of file Txq2dSeg.h. |
Copyright Tech-X Corporation, all rights reserved.