VR-Forces 4.0.4 Class Documentation
include/drawertdb/terrainPaperMapDrawer.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2003 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: terrainPaperMapDrawer.h,v $ $Revision: 1.1 $ $State: Exp $
00007 *******************************************************************************/
00008 
00011 
00012 #ifndef TERRAINPAPERMAPDRAWER_H
00013 #define TERRAINPAPERMAPDRAWER_H
00014 
00015 #include "drawertdb/drawertdbDefines.h"
00016 #include "drawertdb/terrainDrawer.h"
00017 
00018 #include <QtGui/QColor>
00019 
00020 class DtPaperMapDatabase;
00021 class DtQtDrawer;
00022 class DtTdbDrawerOptions;
00023 class DtViewportExtents;
00024 class DtExtent;
00025 class DtPaperMap;
00026 class QColor;
00027 class Coordinate_System;
00028 
00029 class DT_DLL_drawertdb DtTerrainPaperMapDrawer : public DtTerrainDrawer
00030 {
00031 
00032 public:
00033 
00034    DtTerrainPaperMapDrawer();
00035    DtTerrainPaperMapDrawer(const DtTerrainPaperMapDrawer&);
00036 
00037    virtual ~DtTerrainPaperMapDrawer();
00038 
00039    DtTerrainPaperMapDrawer& operator=(const DtTerrainPaperMapDrawer&);
00040 
00041    virtual bool init(const DtPaperMapDatabase* d);
00042 
00043    virtual const DtPaperMapDatabase* paperMapDatabase() const;
00044    virtual void setPaperMapDatabase(const DtPaperMapDatabase* d);
00045 
00047    void setBackgroundColor(const QColor&);
00048    const QColor& backgroundColor() const;
00049 
00050    static DtTerrainPaperMapDrawer* create();
00051 
00052 protected:
00053    virtual void internalDraw(const DtTerrainDatabase* db, const DtViewportExtents* v, DtPrimitiveDrawer* painter);
00054 
00055 protected:
00056 
00057    virtual void drawPaperMaps(const Coordinate_System* coordSys, const DtViewportExtents* v,
00058       DtPrimitiveDrawer* d);
00059 
00060    virtual void drawPaperMap
00061    (
00062       const Coordinate_System* coordSys,
00063       DtPaperMap* p,
00064       const DtViewportExtents* v,
00065       DtPrimitiveDrawer* d,
00066       QColor* backgroundColor = 0
00067    );
00068 
00069 protected:
00070    const DtPaperMapDatabase* myPaperMapDatabase;
00071    QColor myBackgroundColor;
00072 };
00073 
00074 inline void DtTerrainPaperMapDrawer::setBackgroundColor(const QColor& c)
00075 {
00076    myBackgroundColor = c;
00077 }
00078 
00079 inline const QColor& DtTerrainPaperMapDrawer::backgroundColor() const
00080 {
00081    return myBackgroundColor;
00082 }
00083 
00084 #endif
00085 

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)