Added gui options for wireframe, and colour coding
[tecorrec.git] / geo / tcGeoImageData.h
blobea17848e35d4bc7e64c912c3a95e8e969191e9f7
1 /***************************************************************************
2 * This file is part of Tecorrec. *
3 * Copyright 2008 James Hogan <james@albanarts.com> *
4 * *
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. *
9 * *
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. *
14 * *
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_
23 /**
24 * @file tcGeoImageData.h
25 * @brief Terrain image data.
28 #include "tcGeoData.h"
30 class tcSensor;
32 /// Terrain image data.
33 class tcGeoImageData : public tcGeoData
35 public:
38 * Types
41 /// Local coordinate.
42 struct LocalCoord
44 double x,y;
48 * Constructors + destructor
51 /// Default constructor.
52 tcGeoImageData();
54 /// Destructor.
55 virtual ~tcGeoImageData();
58 * Accessors
61 /// Get the number of channels.
62 int numChannels() const;
65 * Main interface
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;
74 protected:
77 * Protected variables
80 /// Number of channels.
81 int m_numChannels;
83 private:
86 * Variables
89 /// Sensors which collected the data.
90 tcSensor* m_sensor;
92 /// Direction of the sun in local space.
93 tcGeo* m_sunDirection;
96 #endif