Orfeo Toolbox  4.0
otbVectorImage.txx
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ORFEO Toolbox
4  Language: C++
5  Date: $Date$
6  Version: $Revision$
7 
8 
9  Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
10  See OTBCopyright.txt for details.
11 
12 
13  This software is distributed WITHOUT ANY WARRANTY; without even
14  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  PURPOSE. See the above copyright notices for more information.
16 
17 =========================================================================*/
18 #ifndef __otbVectorImage_txx
19 #define __otbVectorImage_txx
20 
21 
22 #include "otbVectorImage.h"
24 #include "otbImageKeywordlist.h"
25 #include "itkMetaDataObject.h"
26 
27 namespace otb
28 {
29 
30 template <class TPixel, unsigned int VImageDimension>
32 {
33 }
34 
35 template <class TPixel, unsigned int VImageDimension>
37 {
38  return (this->GetMetaDataInterface()->GetProjectionRef());
39 }
40 
41 template <class TPixel, unsigned int VImageDimension>
43 {
44  return (this->GetMetaDataInterface()->GetGCPProjection());
45 }
46 
47 template <class TPixel, unsigned int VImageDimension>
49 {
50  return (this->GetMetaDataInterface()->GetGCPCount());
51 }
52 
53 template <class TPixel, unsigned int VImageDimension>
55 {
56  return (this->GetMetaDataInterface()->GetGCPs(GCPnum));
57 }
58 
59 template <class TPixel, unsigned int VImageDimension>
60 const OTB_GCP& VectorImage<TPixel, VImageDimension>::GetGCPs(unsigned int GCPnum) const
61 {
62  return (this->GetMetaDataInterface()->GetGCPs(GCPnum));
63 }
64 
65 template <class TPixel, unsigned int VImageDimension>
66 std::string VectorImage<TPixel, VImageDimension>::GetGCPId(unsigned int GCPnum) const
67 {
68  return (this->GetMetaDataInterface()->GetGCPId(GCPnum));
69 }
70 
71 template <class TPixel, unsigned int VImageDimension>
72 std::string VectorImage<TPixel, VImageDimension>::GetGCPInfo(unsigned int GCPnum) const
73 {
74  return (this->GetMetaDataInterface()->GetGCPInfo(GCPnum));
75 }
76 
77 template <class TPixel, unsigned int VImageDimension>
78 double VectorImage<TPixel, VImageDimension>::GetGCPRow(unsigned int GCPnum) const
79 {
80  return (this->GetMetaDataInterface()->GetGCPRow(GCPnum));
81 }
82 
83 template <class TPixel, unsigned int VImageDimension>
84 double VectorImage<TPixel, VImageDimension>::GetGCPCol(unsigned int GCPnum) const
85 {
86  return (this->GetMetaDataInterface()->GetGCPCol(GCPnum));
87 }
88 
89 template <class TPixel, unsigned int VImageDimension>
90 double VectorImage<TPixel, VImageDimension>::GetGCPX(unsigned int GCPnum) const
91 {
92  return (this->GetMetaDataInterface()->GetGCPX(GCPnum));
93 }
94 
95 template <class TPixel, unsigned int VImageDimension>
96 double VectorImage<TPixel, VImageDimension>::GetGCPY(unsigned int GCPnum) const
97 {
98  return (this->GetMetaDataInterface()->GetGCPY(GCPnum));
99 }
100 
101 template <class TPixel, unsigned int VImageDimension>
102 double VectorImage<TPixel, VImageDimension>::GetGCPZ(unsigned int GCPnum) const
103 {
104  return (this->GetMetaDataInterface()->GetGCPZ(GCPnum));
105 }
106 
107 template <class TPixel, unsigned int VImageDimension>
110 {
111  return (this->GetMetaDataInterface()->GetGeoTransform());
112 }
113 
114 template <class TPixel, unsigned int VImageDimension>
117 {
118  return (this->GetMetaDataInterface()->GetUpperLeftCorner());
119 }
120 
121 template <class TPixel, unsigned int VImageDimension>
124 {
125  return (this->GetMetaDataInterface()->GetUpperRightCorner());
126 }
127 
128 template <class TPixel, unsigned int VImageDimension>
131 {
132  return (this->GetMetaDataInterface()->GetLowerLeftCorner());
133 }
134 
135 template <class TPixel, unsigned int VImageDimension>
138 {
139  return (this->GetMetaDataInterface()->GetLowerRightCorner());
140 }
141 
142 template <class TPixel, unsigned int VImageDimension>
145 {
146  ImageKeywordlist kwl;
147 
148  itk::ExposeMetaData<ImageKeywordlist>(this->GetMetaDataDictionary(),
150  kwl);
151  return kwl;
152 }
153 
154 template <class TPixel, unsigned int VImageDimension>
157 {
158  ImageKeywordlist kwl;
159 
160  itk::ExposeMetaData<ImageKeywordlist>(this->GetMetaDataDictionary(),
162  kwl);
163  return kwl;
164 }
165 
166 template <class TPixel, unsigned int VImageDimension>
167 void
170 {
171  Superclass::CopyInformation(data);
173 }
174 
175 template <class TPixel, unsigned int VImageDimension>
179 {
180  if (m_ImageMetadataInterface.IsNull())
181  m_ImageMetadataInterface = ImageMetadataInterfaceFactory::CreateIMI(this->GetMetaDataDictionary());
182  return m_ImageMetadataInterface;
183 }
184 
185 template <class TPixel, unsigned int VImageDimension>
186 void
188 {
189  Superclass::PrintSelf(os, indent);
190  this->GetMetaDataInterface()->PrintSelf(os, indent, this->GetMetaDataDictionary());
191 }
192 
193 } // end namespace otb
194 #endif

Generated at Sat Mar 8 2014 16:24:52 for Orfeo Toolbox with doxygen 1.8.3.1