![]() |
VR-Forces 4.0.4 Class Documentation
|
Qt includes. More...

Public Member Functions | |
| DtLineDrawer () | |
| virtual | ~DtLineDrawer () |
| virtual bool | draw (QPainter &paint, const DtSymbol *const symbol) const |
| draws the specified symbol on a device. | |
| virtual QSize | calcBBox (const DtSymbol *const symbol) const |
| Calculate the drawn size of this symbol. | |
| virtual void | setPenThickness (int thickness) |
| Set the thickness of the pen when drawing the lines;. | |
| virtual void | setArrowStyle (DtLineSymbol::DtArrowStyle style) |
| Sets the arrow style to be this style regardless of what is set in the symbol. | |
| virtual void | clearArrowStyleOverride () |
| virtual void | setPenStyle (Qt::PenStyle style) |
| Sets the pen style to be this style regardless of what is set in the symbol. | |
| virtual void | clearPenStyleOverride () |
Static Public Member Functions | |
| static void | drawClippedLine (QPainterPath &path, QPainter &paint, const QPoint &point) |
| This method draws a line from the QPainterPaths's current position to the given point. | |
| static void | drawClippedLine (QPainter &paint, const QPoint &start, const QPoint &end) |
| static DtSymbolDrawer * | create () |
Protected Member Functions | |
| virtual void | drawSimpleArrow (QPainterPath &path, QPainter &paint, const DtLineSymbol *const arrowSymbol) const |
| virtual void | drawMainArrow (QPainterPath &path, QPainter &paint, const DtLineSymbol *const arrowSymbol) const |
| virtual void | drawRearArrow (QPainterPath &path, QPainter &paint, const DtLineSymbol *const arrowSymbol) const |
| virtual void | drawCappedSides (QPainterPath &path, QPainter &paint, const DtLineSymbol *const arrowSymbol) const |
| virtual void | drawTriangle (QPainterPath &path, QPainter &paint, const DtLineSymbol *const arrowSymbol) const |
| virtual void | drawThickArrow (QPainterPath &path, QPainter &paint, const DtLineSymbol *const arrowSymbol) const |
| virtual void | drawThickDoubleArrow (QPainterPath &path, QPainter &paint, const DtLineSymbol *const arrowSymbol) const |
| virtual void | drawFeintArrow (QPainterPath &path, QPainter &paint, const DtLineSymbol *const arrowSymbol) const |
| virtual void | draw2525TailArrow (QPainterPath &path, QPainter &paint, const DtLineSymbol *const arrowSymbol) const |
| virtual void | drawBridge (QPainterPath &path, QPainter &paint, const DtLineSymbol *const arrowSymbol) const |
Protected Attributes | |
| int | myPenThickness |
| DtLineSymbol::DtArrowStyle | myArrowStyle |
| bool | myArrowStyleOverride |
| Qt::PenStyle | myPenStyle |
| bool | myPenStyleOverride |
Private Member Functions | |
| DtLineDrawer (const DtLineDrawer &orig) | |
| DtLineDrawer & | operator= (const DtLineDrawer &orig) |
Qt includes.
Concrete class which draws arrows and lines. Arrows draw from the start position to the end position, i.e. the arrow is on the end position.
| virtual DtLineDrawer::~DtLineDrawer | ( | ) | [virtual] |
| DtLineDrawer::DtLineDrawer | ( | const DtLineDrawer & | orig | ) | [private] |
| virtual bool DtLineDrawer::draw | ( | QPainter & | paint, |
| const DtSymbol *const | symbol | ||
| ) | const [virtual] |
draws the specified symbol on a device.
The symbol must be of a DtLineSymbol type or nothing will be drawn.
Implements DtSymbolDrawer.
Reimplemented in DtMultiLineDrawer.
| static void DtLineDrawer::drawClippedLine | ( | QPainterPath & | path, |
| QPainter & | paint, | ||
| const QPoint & | point | ||
| ) | [static] |
This method draws a line from the QPainterPaths's current position to the given point.
It insures that if either of the endpoints of the line are beyond the limits of screen's coordinate system, they will be drawn properly. If the line is completely undrawable, the QPainterPaths's position will be manually moved to the endpoint even though the line is not drawn.
| static void DtLineDrawer::drawClippedLine | ( | QPainter & | paint, |
| const QPoint & | start, | ||
| const QPoint & | end | ||
| ) | [static] |
| virtual QSize DtLineDrawer::calcBBox | ( | const DtSymbol *const | symbol | ) | const [virtual] |
Calculate the drawn size of this symbol.
The symbol must be of a type this drawer can recognize.
Implements DtSymbolDrawer.
Reimplemented in DtMultiLineDrawer.
| virtual void DtLineDrawer::setPenThickness | ( | int | thickness | ) | [virtual] |
Set the thickness of the pen when drawing the lines;.
| virtual void DtLineDrawer::setArrowStyle | ( | DtLineSymbol::DtArrowStyle | style | ) | [virtual] |
Sets the arrow style to be this style regardless of what is set in the symbol.
To turn this off call clearArrowStyleOverride()
| virtual void DtLineDrawer::clearArrowStyleOverride | ( | ) | [virtual] |
| virtual void DtLineDrawer::setPenStyle | ( | Qt::PenStyle | style | ) | [virtual] |
Sets the pen style to be this style regardless of what is set in the symbol.
To turn this off, call clearPenStyleOverride()
| virtual void DtLineDrawer::clearPenStyleOverride | ( | ) | [virtual] |
| static DtSymbolDrawer* DtLineDrawer::create | ( | ) | [static] |
Reimplemented in DtMultiLineDrawer.
| DtLineDrawer& DtLineDrawer::operator= | ( | const DtLineDrawer & | orig | ) | [private] |
| virtual void DtLineDrawer::drawSimpleArrow | ( | QPainterPath & | path, |
| QPainter & | paint, | ||
| const DtLineSymbol *const | arrowSymbol | ||
| ) | const [protected, virtual] |
| virtual void DtLineDrawer::drawMainArrow | ( | QPainterPath & | path, |
| QPainter & | paint, | ||
| const DtLineSymbol *const | arrowSymbol | ||
| ) | const [protected, virtual] |
| virtual void DtLineDrawer::drawRearArrow | ( | QPainterPath & | path, |
| QPainter & | paint, | ||
| const DtLineSymbol *const | arrowSymbol | ||
| ) | const [protected, virtual] |
| virtual void DtLineDrawer::drawCappedSides | ( | QPainterPath & | path, |
| QPainter & | paint, | ||
| const DtLineSymbol *const | arrowSymbol | ||
| ) | const [protected, virtual] |
| virtual void DtLineDrawer::drawTriangle | ( | QPainterPath & | path, |
| QPainter & | paint, | ||
| const DtLineSymbol *const | arrowSymbol | ||
| ) | const [protected, virtual] |
| virtual void DtLineDrawer::drawThickArrow | ( | QPainterPath & | path, |
| QPainter & | paint, | ||
| const DtLineSymbol *const | arrowSymbol | ||
| ) | const [protected, virtual] |
| virtual void DtLineDrawer::drawThickDoubleArrow | ( | QPainterPath & | path, |
| QPainter & | paint, | ||
| const DtLineSymbol *const | arrowSymbol | ||
| ) | const [protected, virtual] |
| virtual void DtLineDrawer::drawFeintArrow | ( | QPainterPath & | path, |
| QPainter & | paint, | ||
| const DtLineSymbol *const | arrowSymbol | ||
| ) | const [protected, virtual] |
Reimplemented in DtMultiLineDrawer.
| virtual void DtLineDrawer::draw2525TailArrow | ( | QPainterPath & | path, |
| QPainter & | paint, | ||
| const DtLineSymbol *const | arrowSymbol | ||
| ) | const [protected, virtual] |
| virtual void DtLineDrawer::drawBridge | ( | QPainterPath & | path, |
| QPainter & | paint, | ||
| const DtLineSymbol *const | arrowSymbol | ||
| ) | const [protected, virtual] |
int DtLineDrawer::myPenThickness [protected] |
DtLineSymbol::DtArrowStyle DtLineDrawer::myArrowStyle [protected] |
bool DtLineDrawer::myArrowStyleOverride [protected] |
Qt::PenStyle DtLineDrawer::myPenStyle [protected] |
bool DtLineDrawer::myPenStyleOverride [protected] |