VR-Forces 4.1.1 Class Documentation
polygonDrawer.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2001 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: polygonDrawer.h,v $ $Revision: 1.17 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtPolygonDrawer_H_
13 #define DtPolygonDrawer_H_
14 
18 
19 class DtSymbol;
20 class DtCenterPoint;
21 
23 #include <QtCore/QCache>
24 #include <QtGui/QPixmap>
25 
26 
29 
31 {
32 public:
34  virtual ~DtPolygonDrawer();
35 
36  virtual bool draw( QPainter& paint,
37  const DtSymbol * const symbol ) const;
38 
41  virtual QSize calcBBox( const DtSymbol * const symbol ) const;
42 
44  virtual void setPenThickness(int thickness);
45 
46  virtual void setPolygonStyle(DtPolygonSymbol::DtPolygonStyle style);
47  virtual void clearPolygonStyle();
48 
49  virtual void setPatternStyle(Qt::BrushStyle style);
50  virtual void clearPatternStyle();
51 
54  virtual void setPenStyle(Qt::PenStyle style);
55  virtual void clearPenStyleOverride();
56 
57  static DtSymbolDrawer* create();
58 
59 private:
61  DtPolygonDrawer(const DtPolygonDrawer& orig);
64 
65 protected:
67 
70 
71  Qt::BrushStyle myPatternStyle;
73 
76 };
77 
78 #endif

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)