VR-Forces 4.2 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
tmqt
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
;
19
class
DtTMViewportExtents
;
20
24
#include "
tmqt/tmqtDefines.h
"
25
class
DT_DLL_tmqt
DtTMBackground
:
public
QObject
26
{
27
28
public
:
29
31
DtTMBackground
();
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
64
DtTMViewportExtents
*
myViewportExtents
;
65
DtTMArea
*
myArea
;
66
67
bool
myNeedsRedraw
;
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
)