VR-Forces 4.2 Class Documentation
compositeDrawer.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2003 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: compositeDrawer.h,v $ $Revision: 1.5 $ $State: Exp $
7 *******************************************************************************/
8 
11 
12 #ifndef DtCompositeDrawer_H_
13 #define DtCompositeDrawer_H_
14 
17 
18 class DtSymbol;
19 
21 #include <QtGui/QPixmap>
22 #include "ngutil/dtqlist.h"
23 
27 
29 {
30 public:
31 
33  virtual ~DtCompositeDrawer();
34 
39  virtual bool draw( QPainter& paint,
40  const DtSymbol * const symbol ) const;
41 
44  virtual QSize calcBBox( const DtSymbol * const symbol ) const;
45 
46  virtual void addDrawer(DtSymbolDrawer* drawer);
47  virtual void removeDrawer(DtSymbolDrawer* drawer);
48  virtual DtPtrQList<DtSymbolDrawer*>* drawers();
49 
53  void destroyDrawer(DtSymbolDrawer*, bool add = true);
54 
55 protected:
56  virtual bool forceUpdate(const DtSymbol* const symbol) const;
57 
60  virtual bool endTransparentDraw(QPainter& paint,
61  const DtSymbol * const symbol) const;
62 
63 private:
68 
69 protected:
72 };
73 
75 {
76  if (add)
77  {
78  if (myDrawersToDestroy.findRef(d) == -1)
79  {
80  myDrawersToDestroy.append(d);
81  }
82  }
83  else
84  {
86  }
87 }
88 
89 #endif

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)