VR-Forces 4.1 Class Documentation
rasterMapSet.h
Go to the documentation of this file.
1  /*********************************************************************
2 ** Copyright (c) 2002 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: rasterMapSet.h,v $ $Revision: 1.11 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 
13 #ifndef DtRasterMapSet_H_
14 #define DtRasterMapSet_H_
15 
17 #include "papermap/rasterMap.h"
18 
19 #ifndef NO_VRLINK
20 #include <mtl/mtl.h>
21 #endif
22 
23 class DtPoint;
24 class Coordinate_System;
25 
26 #include "ngutil/dtqlist.h"
27 #include <QtCore/QSize>
28 
34 class DT_DLL_papermap DtRasterMapSet : public DtPtrQList<DtRasterMapResSet*>
35 {
36 public:
39 
41  DtRasterMapSet(const DtRasterMapSet & orig);
42 
44  DtRasterMapSet& operator=(const DtRasterMapSet& orig);
45 
46  virtual DtRasterMapSet * clone() const;
47 
49  virtual ~DtRasterMapSet();
50 
51 #ifndef NO_VRLINK
52  virtual void readFromMtlFile(DtlObjPtr& mtlObj);
53  virtual bool writeToMtlFile(FILE* fp, int indentLevel = 0) const;
54  virtual void putIndent(FILE *fp, int indentLevel) const;
55 #endif
56 
57  virtual bool addEntry(const DtRasterMapResSet & entry);
58  virtual bool prependEntry(const DtRasterMapResSet & entry);
59 
62  virtual DtRasterMapResSet* resSetForRes(const double res) const;
63 
66  virtual DtRasterMap* mapContainingForRes(const DtPoint &point,
67  const double res) const;
68 
69  void setGeodetic(bool);
70  bool geodetic() const;
71 
72  void setImageSize(int, int);
73  const QSize& imageSize() const;
74 
75  void setExtentScaleX(double d);
76  double extentScaleX() const;
77 
78  void setExtentScaleY(double d);
79  double extentScaleY() const;
80 
81  virtual void convertTo(const Coordinate_System* coordSys);
82 
83  int version() const;
84 
85 protected:
86 
87  virtual bool addEntry(DtRasterMapResSet * entry);
88  virtual bool prependEntry(DtRasterMapResSet * entry);
89  virtual void copyList(const DtRasterMapSet & orig);
90 
91 protected:
92  bool myGeodetic;
95  QSize myImageSize;
96  int myVersion;
97 };
98 
99 inline void DtRasterMapSet::setGeodetic(bool b)
100 {
101  myGeodetic = b;
102 }
103 
104 inline bool DtRasterMapSet::geodetic() const
105 {
106  return myGeodetic;
107 }
108 
109 inline void DtRasterMapSet::setImageSize(int w, int h)
110 {
111  myImageSize = QSize(w, h);
112 }
113 
114 inline const QSize& DtRasterMapSet::imageSize() const
115 {
116  return myImageSize;
117 }
118 
119 inline void DtRasterMapSet::setExtentScaleX(double d)
120 {
121  myExtentScaleX = d;
122 }
123 
124 inline double DtRasterMapSet::extentScaleX() const
125 {
126  return myExtentScaleX;
127 }
128 
129 inline void DtRasterMapSet::setExtentScaleY(double d)
130 {
131  myExtentScaleY = d;
132 }
133 
134 inline double DtRasterMapSet::extentScaleY() const
135 {
136  return myExtentScaleY;
137 }
138 
139 inline int DtRasterMapSet::version() const
140 {
141  return myVersion;
142 }
143 
144 #endif //DtRasterMapSet_H_
145 

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)