VR-Forces 4.0.4 Class Documentation
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
DtVertexDrawer Class Reference

Qt includes. More...

Inheritance diagram for DtVertexDrawer:
Inheritance graph
[legend]

List of all members.

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)
DtVertexDraweroperator= (const DtVertexDrawer &orig)

Detailed Description

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


Member Enumeration Documentation

Enumerator:
DtSquare 
DtCircle 

Constructor & Destructor Documentation

virtual DtVertexDrawer::~DtVertexDrawer ( ) [virtual]
DtVertexDrawer::DtVertexDrawer ( const DtVertexDrawer orig) [private]

Member Function Documentation

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.

Returns:
true if successful, false otherwise.

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]

Member Data Documentation


The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)