Loading...
Searching...
No Matches
Band.h
Go to the documentation of this file.
1/* Copyright (C) 2008 National Institute For Space Research (INPE) - Brazil.
2
3 This file is part of the TerraLib - a Framework for building GIS enabled applications.
4
5 TerraLib is free software: you can redistribute it and/or modify
6 it under the terms of the GNU Lesser General Public License as published by
7 the Free Software Foundation, either version 3 of the License,
8 or (at your option) any later version.
9
10 TerraLib 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 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public License
16 along with TerraLib. See COPYING. If not, write to
17 TerraLib Team at <terralib-team@terralib.org>.
18 */
19
20/*!
21 \file terralib/terralib4/Band.h
22
23 \brief Band implementation for TerraLib 4.x.
24*/
25
26#ifndef __TERRALIB_TERRALIB4_INTERNAL_BAND_H
27#define __TERRALIB_TERRALIB4_INTERNAL_BAND_H
28
29// TerraLib
30#include "../raster/Band.h"
31
32class TeRaster;
33
34namespace terralib4
35{
36 class Raster;
37
38 class Band : public te::rst::Band
39 {
40 public:
41
42 Band(Raster* parent, TeRaster* iraster, te::rst::BandProperty* bp, std::size_t idx);
43
45
47
48 void getValue(unsigned int c, unsigned int r, double& value) const;
49
50 void setValue(unsigned int c, unsigned int r, const double value);
51
52 void getIValue(unsigned int c, unsigned int r, double& value) const;
53
54 void setIValue(unsigned int c, unsigned int r, const double value);
55
56 void read(int x, int y, void* buffer) const;
57
58 void* read(int x, int y);
59
60 void write(int x, int y, void* buffer);
61
62 private:
63
64 class Impl;
65
66 Impl* m_pImpl;
67 };
68
69} // end namespace terralib4
70
71#endif // __TERRALIB_TERRALIB4_INTERNAL_BAND_H
A raster band description.
Definition: BandProperty.h:62
A raster band description.
Definition: Band.h:64
An abstract class for raster data strucutures.
Definition: Raster.h:72
void setIValue(unsigned int c, unsigned int r, const double value)
Sets the imaginary attribute value in a complex band of a cell.
te::rst::Raster * getRaster() const
Returns the associated raster.
void setValue(unsigned int c, unsigned int r, const double value)
Sets the cell attribute value.
void write(int x, int y, void *buffer)
It writes a data block from the specified buffer.
Band(Raster *parent, TeRaster *iraster, te::rst::BandProperty *bp, std::size_t idx)
void getIValue(unsigned int c, unsigned int r, double &value) const
Returns the imaginary attribute value in a complex band of a cell.
void read(int x, int y, void *buffer) const
It reads a data block to the specified buffer.
Impl * m_pImpl
Definition: Band.h:66
~Band()
Virtual destructor.
void * read(int x, int y)
It reads and returns a data block.
void getValue(unsigned int c, unsigned int r, double &value) const
Returns the cell attribute value.
Definition: Band.h:35