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

Public Types | |
| enum | DtKnobStyle { DtSquare, DtCircle } |
Public Member Functions | |
| DtVertexDrawer () | |
| virtual | ~DtVertexDrawer () |
| virtual bool | draw (QPainter &paint, const DtSymbol *const symbol) const |
| draws the specified symbol on a device. | |
| virtual bool | draw (QPainter &paint, const DtSymbol *const symbol, bool preTransparent) const |
| If preTransparent is true, draw knobs in black if symbol is going to be a transparent draw so this drawer can fill in after. | |
| virtual QSize | calcBBox (const DtSymbol *const symbol) const |
| Calculate the drawn size of this symbol. | |
| virtual void | setKnobStyle (DtKnobStyle style) |
| virtual DtKnobStyle | knobStyle () const |
Protected Member Functions | |
| virtual void | drawKnob (QPainter &paint, const QPoint &pnt, int iKnobSize) const |
| Switches on myKnobStyle to draw knob of particular kind. | |
| virtual void | drawSquareKnob (QPainter &paint, const QPoint &pnt, int iKnobSize) const |
| virtual void | drawCircleKnob (QPainter &paint, const QPoint &pnt, int iKnobSize) const |
| virtual bool | endTransparentDraw (QPainter &paint, const DtSymbol *const symbol) const |
| Called after transparent draw is finished if symbol wants to draw transparently. | |
Protected Attributes | |
| DtKnobStyle | myKnobStyle |
Private Member Functions | |
| DtVertexDrawer (const DtVertexDrawer &orig) | |
| DtVertexDrawer & | operator= (const DtVertexDrawer &orig) |
Qt includes.
This class will draw "knobs" at the verticies of the line symbol attached to this drawer. The knob size is part of the DtLineSymbol and the drawing will be centered around the point
| virtual DtVertexDrawer::~DtVertexDrawer | ( | ) | [virtual] |
| DtVertexDrawer::DtVertexDrawer | ( | const DtVertexDrawer & | orig | ) | [private] |
| virtual bool DtVertexDrawer::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.
| virtual bool DtVertexDrawer::draw | ( | QPainter & | paint, |
| const DtSymbol *const | symbol, | ||
| bool | preTransparent | ||
| ) | const [virtual] |
If preTransparent is true, draw knobs in black if symbol is going to be a transparent draw so this drawer can fill in after.
| virtual QSize DtVertexDrawer::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.
| virtual void DtVertexDrawer::setKnobStyle | ( | DtKnobStyle | style | ) | [virtual] |
| virtual DtKnobStyle DtVertexDrawer::knobStyle | ( | ) | const [virtual] |
| virtual void DtVertexDrawer::drawKnob | ( | QPainter & | paint, |
| const QPoint & | pnt, | ||
| int | iKnobSize | ||
| ) | const [protected, virtual] |
Switches on myKnobStyle to draw knob of particular kind.
| virtual void DtVertexDrawer::drawSquareKnob | ( | QPainter & | paint, |
| const QPoint & | pnt, | ||
| int | iKnobSize | ||
| ) | const [protected, virtual] |
| virtual void DtVertexDrawer::drawCircleKnob | ( | QPainter & | paint, |
| const QPoint & | pnt, | ||
| int | iKnobSize | ||
| ) | const [protected, virtual] |
| virtual bool DtVertexDrawer::endTransparentDraw | ( | QPainter & | paint, |
| const DtSymbol *const | symbol | ||
| ) | const [protected, virtual] |
Called after transparent draw is finished if symbol wants to draw transparently.
Reimplemented from DtSymbolDrawer.
| DtVertexDrawer& DtVertexDrawer::operator= | ( | const DtVertexDrawer & | orig | ) | [private] |
DtKnobStyle DtVertexDrawer::myKnobStyle [protected] |