VR-Forces 4.0.4 Class Documentation
include/symbolDrawer/polygonDrawer.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 2001 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /*********************************************************************
00006 ** $RCSfile: polygonDrawer.h,v $ $Revision: 1.17 $ $State: Exp $
00007 *********************************************************************/
00008 
00011 
00012 #ifndef DtPolygonDrawer_H_
00013 #define DtPolygonDrawer_H_
00014 
00016 #include "symbolDrawer/baseSymbolDrawer.h"
00017 #include "symbology/polygonSymbol.h"
00018 
00019 class DtSymbol;
00020 class DtCenterPoint;
00021 
00023 #include <QtCore/QCache>
00024 #include <QtGui/QPixmap>
00025 
00026 
00028 #include "symbolDrawer/symbolDrawerDefines.h"
00029 
00030 class DT_DLL_symbolDrawer DtPolygonDrawer : public DtBaseSymbolDrawer
00031 {
00032 public:
00033    DtPolygonDrawer();
00034    virtual ~DtPolygonDrawer();
00035 
00036    virtual bool draw( QPainter& paint,
00037                       const DtSymbol * const symbol ) const;
00038 
00041    virtual QSize calcBBox( const DtSymbol * const symbol ) const;
00042 
00044    virtual void setPenThickness(int thickness);
00045 
00046    virtual void setPolygonStyle(DtPolygonSymbol::DtPolygonStyle style);
00047    virtual void clearPolygonStyle();
00048 
00049    virtual void setPatternStyle(Qt::BrushStyle style);
00050    virtual void clearPatternStyle();
00051 
00054    virtual void setPenStyle(Qt::PenStyle style);
00055    virtual void clearPenStyleOverride();
00056 
00057    static DtSymbolDrawer* create();
00058 
00059 private:
00061    DtPolygonDrawer(const DtPolygonDrawer& orig);
00062    DtPolygonDrawer& operator=(const DtPolygonDrawer& orig);
00064 
00065 protected:
00066    int myPenThickness;
00067 
00068    DtPolygonSymbol::DtPolygonStyle myPolygonStyle;   
00069    bool myOverridePolygonStyle;
00070 
00071    Qt::BrushStyle myPatternStyle;
00072    bool myOverridePatternStyle;
00073 
00074    Qt::PenStyle myPenStyle;
00075    bool myPenStyleOverride;
00076 };
00077 
00078 #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)