1 /***************************************************************************
2 * This file is part of Tecorrec. *
3 * Copyright 2008 James Hogan <james@albanarts.com> *
5 * Tecorrec is free software: you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation, either version 2 of the License, or *
8 * (at your option) any later version. *
10 * Tecorrec is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
15 * You should have received a copy of the GNU General Public License *
16 * along with Tecorrec. If not, write to the Free Software Foundation, *
17 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
18 ***************************************************************************/
20 #ifndef _tcGeoImageData_h_
21 #define _tcGeoImageData_h_
24 * @file tcGeoImageData.h
25 * @brief Terrain image data.
28 #include "tcGeoData.h"
32 /// Terrain image data.
33 class tcGeoImageData
: public tcGeoData
48 * Constructors + destructor
51 /// Default constructor.
55 virtual ~tcGeoImageData();
61 /// Get the number of channels.
62 int numChannels() const;
68 /// Convert a geo to local coordinates.
69 virtual void geoToLocal(const tcGeo
& coord
, LocalCoord
* local
) = 0;
71 /// Get the intensities of a selected channels at local coordinates.
72 virtual bool sampleIntensities(const LocalCoord
& coord
, int numChannels
, const int* channels
, float* results
) = 0;
80 /// Number of channels.
89 /// Sensors which collected the data.
92 /// Direction of the sun in local space.
93 tcGeo
* m_sunDirection
;