VR-Forces 4.0.4 Class Documentation
include/symbolDrawer/vertexDrawer.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2003 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: vertexDrawer.h,v $ $Revision: 1.4 $ $State: Exp $
00007 *******************************************************************************/
00008 
00011 
00012 #ifndef DtVertexDrawer_H_
00013 #define DtVertexDrawer_H_
00014 
00016 #include <symbolDrawerInterface/symbolDrawer.h>
00017 
00018 class DtSymbol;
00019 
00021 #include <QtGui/QPixmap>
00022 
00027 #include "symbolDrawer/symbolDrawerDefines.h"
00028 
00029 class DT_DLL_symbolDrawer DtVertexDrawer : public DtSymbolDrawer
00030 {
00031 public:
00032 
00033    DtVertexDrawer();
00034    virtual ~DtVertexDrawer();
00035    
00036    enum DtKnobStyle
00037    {
00038       DtSquare,
00039       DtCircle
00040    };
00041 
00046    virtual bool draw(QPainter& paint,
00047                     const DtSymbol * const symbol ) const;
00048 
00051    virtual bool draw(QPainter& paint,
00052                      const DtSymbol * const symbol, bool preTransparent) const;
00053 
00056    virtual QSize calcBBox( const DtSymbol * const symbol ) const;
00057    
00058    virtual void setKnobStyle(DtKnobStyle style);
00059    virtual DtKnobStyle knobStyle() const;
00060 
00061 protected:
00063    virtual void drawKnob(QPainter& paint, const QPoint& pnt, int iKnobSize) const;
00064    virtual void drawSquareKnob(QPainter& paint, const QPoint& pnt, int iKnobSize) const;
00065    virtual void drawCircleKnob(QPainter& paint, const QPoint& pnt, int iKnobSize) const;
00066 
00069    virtual bool endTransparentDraw(QPainter& paint,
00070                      const DtSymbol * const symbol) const;
00071 private:
00073    DtVertexDrawer(const DtVertexDrawer& orig);
00074    DtVertexDrawer& operator=(const DtVertexDrawer& orig);
00076 
00077 protected:
00078    DtKnobStyle myKnobStyle;
00079 };
00080 
00081 #endif

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)