VR-Forces 4.0.4 Class Documentation
include/papermap/rasterMapSet.h
Go to the documentation of this file.
00001  /*********************************************************************
00002 ** Copyright (c) 2002 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /*********************************************************************
00006 ** $RCSfile: rasterMapSet.h,v $ $Revision: 1.11 $ $State: Exp $
00007 *********************************************************************/
00008 
00011 
00012 
00013 #ifndef DtRasterMapSet_H_
00014 #define DtRasterMapSet_H_
00015 
00016 #include "papermap/rasterMapResSet.h"
00017 #include "papermap/rasterMap.h"
00018 
00019 #ifndef NO_VRLINK
00020 #include <mtl/mtl.h>
00021 #endif
00022 
00023 class DtPoint;
00024 class Coordinate_System;
00025 
00026 #include "ngutil/dtqlist.h"
00027 #include <QtCore/QSize>
00028 
00033 #include "papermap/papermapDefines.h"
00034 class DT_DLL_papermap DtRasterMapSet : public DtPtrQList<DtRasterMapResSet*>
00035 {
00036 public:
00038    DtRasterMapSet();
00039 
00041    DtRasterMapSet(const DtRasterMapSet & orig);
00042 
00044    DtRasterMapSet& operator=(const DtRasterMapSet& orig);
00045 
00046    virtual DtRasterMapSet * clone() const;
00047 
00049    virtual ~DtRasterMapSet();
00050    
00051 #ifndef NO_VRLINK
00052    virtual void readFromMtlFile(DtlObjPtr& mtlObj);
00053    virtual bool writeToMtlFile(FILE* fp, int indentLevel = 0) const;
00054    virtual void putIndent(FILE *fp, int indentLevel) const;
00055 #endif
00056 
00057    virtual bool addEntry(const DtRasterMapResSet & entry);
00058    virtual bool prependEntry(const DtRasterMapResSet & entry);
00059 
00062    virtual DtRasterMapResSet* resSetForRes(const double res) const;
00063 
00066    virtual DtRasterMap* mapContainingForRes(const DtPoint &point, 
00067                                             const double res) const;
00068 
00069    void setGeodetic(bool);
00070    bool geodetic() const;
00071 
00072    void setImageSize(int, int);
00073    const QSize& imageSize() const;
00074 
00075    void setExtentScaleX(double d);
00076    double extentScaleX() const;
00077 
00078    void setExtentScaleY(double d);
00079    double extentScaleY() const;
00080 
00081    virtual void convertTo(const Coordinate_System* coordSys);
00082 
00083    int version() const;
00084 
00085 protected:
00086 
00087    virtual bool addEntry(DtRasterMapResSet * entry);
00088    virtual bool prependEntry(DtRasterMapResSet * entry);
00089    virtual void copyList(const DtRasterMapSet & orig);
00090 
00091 protected:
00092    bool  myGeodetic;
00093    double myExtentScaleX;
00094    double myExtentScaleY;
00095    QSize  myImageSize;
00096    int    myVersion;
00097 };
00098 
00099 inline void DtRasterMapSet::setGeodetic(bool b)
00100 {
00101    myGeodetic = b;
00102 }
00103 
00104 inline bool DtRasterMapSet::geodetic() const
00105 {
00106    return myGeodetic;
00107 }
00108 
00109 inline void DtRasterMapSet::setImageSize(int w, int h)
00110 {
00111    myImageSize = QSize(w, h);
00112 }
00113 
00114 inline const QSize& DtRasterMapSet::imageSize() const
00115 {
00116    return myImageSize;
00117 }
00118 
00119 inline void DtRasterMapSet::setExtentScaleX(double d)
00120 {
00121    myExtentScaleX = d;
00122 }
00123 
00124 inline double DtRasterMapSet::extentScaleX() const
00125 {
00126    return myExtentScaleX;
00127 }
00128 
00129 inline void DtRasterMapSet::setExtentScaleY(double d)
00130 {
00131    myExtentScaleY = d;
00132 }
00133 
00134 inline double DtRasterMapSet::extentScaleY() const
00135 {
00136    return myExtentScaleY;
00137 }
00138 
00139 inline int DtRasterMapSet::version() const
00140 {
00141    return myVersion;
00142 }
00143 
00144 #endif //DtRasterMapSet_H_
00145 

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)