![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2002 MaK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: pixmapBackground.h,v $ $Revision: 1.5 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00011 00012 #ifndef PIXMAPBACKGROUND_H_ 00013 #define PIXMAPBACKGROUND_H_ 00014 00015 #include "tmqt/tmBackground.h" 00016 00020 #include "tmqt/tmqtDefines.h" 00021 class DT_DLL_tmqt DtPixmapBackground : public DtTMBackground 00022 { 00023 Q_OBJECT 00024 00025 public: 00027 DtPixmapBackground(); 00028 00030 DtPixmapBackground(const DtPixmapBackground& orig); 00031 00033 virtual ~DtPixmapBackground(); 00034 00036 DtPixmapBackground& operator=(const DtPixmapBackground& rhs); 00037 00039 static DtTMBackground* create(); 00040 00041 virtual bool init(DtTMArea* area); 00042 00043 virtual void draw(QPainter* painter = NULL); 00044 virtual void clear(); 00045 00047 virtual void setFillColor(QColor& color); 00048 00049 public slots: 00050 virtual void loadPixFile(const QString& file); 00051 00052 virtual void loadPix(const QPixmap& file); 00053 00054 00055 protected: 00056 QPixmap * myGlobalPixmap; 00057 QColor myFillColor; 00058 }; 00059 00060 #endif //PIXMAPBACKGROUND_H_