VR-Forces 4.0.4 Class Documentation
include/terrainqt/terrainBackground.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 2002 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /*********************************************************************
00006 ** $RCSfile: terrainBackground.h,v $ $Revision: 1.10 $ $State: Exp $
00007 *********************************************************************/
00008 
00011 
00012 #ifndef TERRAINBACKGROUND_H
00013 #define TERRAINBACKGROUND_H
00014 
00015 #include "tmqt/tmBackground.h"
00016 #include "drawerNative/coordUtils.h"
00017 
00018 class DtTerrainFactory;
00019 class DtTerrainViewportExtents;
00020 class DtTacticalGdbDrawer;
00021 class DtQtDrawer;
00022 class DtTdbDrawerOptions;
00023 class DtList;
00024 class DtTerrainDatabase;
00025 class DtPaperMapDatabase;
00026 
00027 #include "terrainqt/terrainqtDefines.h"
00028 class DT_DLL_terrainqt DtTerrainBackground : public DtTMBackground
00029 {
00030    Q_OBJECT
00031 
00032 public:
00033 
00034    DtTerrainBackground();
00035 
00036    DtTerrainBackground(const DtTerrainBackground& orig);
00037 
00038    virtual ~DtTerrainBackground();
00039 
00040    DtTerrainBackground& operator=(const DtTerrainBackground& rhs);
00041 
00042    virtual bool init(DtTMArea* area);
00043 
00044    virtual bool init
00045    (
00046       DtTacticalGdbDrawer* tdbDrawer,
00047       DtQtDrawer* qtDrawer,
00048       const DtTdbDrawerOptions* o,
00049       DtTerrainViewportExtents* v
00050    );
00051    
00053    static DtTMBackground* create();
00054 
00055    virtual void draw(QPainter* painter = NULL);
00056 
00057    virtual void clear();
00058 
00059    virtual DtTacticalGdbDrawer* tdbDrawer() const;
00060    virtual void setTdbDrawer(DtTacticalGdbDrawer* t);
00061 
00062    virtual DtQtDrawer* qtDrawer() const;
00063    virtual void setQtDrawer(DtQtDrawer* d);
00064 
00065    virtual const DtTdbDrawerOptions* tdbDrawerOptions() const;
00066    virtual void setTdbDrawerOptions(const DtTdbDrawerOptions* o);
00067 
00072    virtual void setFeatureDrawOrder(DtList* list);
00073 
00074    virtual void setTerrainDatabase(const DtTerrainDatabase*);
00075    virtual void setPaperMapDatabase(const DtPaperMapDatabase* db);
00076 
00077    virtual const DtTerrainDatabase* terrainDatabase() const;
00078 
00079 public slots:
00080    virtual void updateCoordinateSystem(const DtCoordSys& sys);
00081 
00082 protected:
00085    virtual void fillBackground(QPainter* usePainter);
00086 
00087 protected:
00088   
00089    DtTacticalGdbDrawer* myTdbDrawer;
00090    DtQtDrawer* myQtDrawer;
00091    const DtTerrainDatabase* myTerrainDatabase;
00092 };
00093 
00094 #endif //TERRAINBACKGROUND_H
00095 

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)