VR-Forces 4.2 Class Documentation
tmBackground.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2002 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: tmBackground.h,v $ $Revision: 1.5 $ $State: Exp $
7 *******************************************************************************/
8 
11 
12 #ifndef TMBACKGROUND_H_
13 #define TMBACKGROUND_H_
14 
15 #include <QtCore/QObject>
16 #include <QtGui/QPixmap>
17 
18 class DtTMArea;
20 
24 #include "tmqt/tmqtDefines.h"
26 {
27 
28 public:
29 
32 
34  DtTMBackground(const DtTMBackground& orig);
35 
37  virtual ~DtTMBackground();
38 
40  DtTMBackground& operator=(const DtTMBackground& rhs);
41 
44  virtual bool init(DtTMArea* area);
45 
47  virtual void draw(QPainter* painter = NULL) = 0;
48  virtual void clear() = 0;
49 
50  virtual const DtTMViewportExtents* viewportExtents() const;
51  virtual void setViewportExtents(DtTMViewportExtents* v);
52 
53  virtual QPixmap* pixmap() const;
54 
56  virtual void setPixmap(QPixmap*);
57 
58  void setNeedsRedraw(bool);
59  bool needsRedraw() const;
60 
61 protected:
62  QPixmap* myPixmap;
63 
66 
68 };
69 
70 inline void DtTMBackground::setNeedsRedraw(bool b)
71 {
72  myNeedsRedraw = b;
73 }
74 
75 inline bool DtTMBackground::needsRedraw() const
76 {
77  return myNeedsRedraw;
78 }
79 
80 #endif //TMBACKGROUND_H_

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)