TsExpansibleRaster.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 TsExpansibleRaster.h
22 
23  \brief A test suit for the Expansible Raster Class.
24  */
25 
26 #ifndef __TERRALIB_UNITTEST_MEMORY_EXPANSIBLERASTER_INTERNAL_H
27 #define __TERRALIB_UNITTEST_MEMORY_EXPANSIBLERASTER_INTERNAL_H
28 
29 #include <terralib/memory.h>
30 
31 // Boost
32 #include <boost/shared_ptr.hpp>
33 
34 // cppUnit
35 #include <cppunit/extensions/HelperMacros.h>
36 
37 /*!
38  \class TsExpansibleRaster
39 
40  \brief A test suit for the Cached Raster class interface.
41 
42  ....
43  <br>
44  This test suite will check the Cached Raster class
45  </ul>
46  */
47 class TsExpansibleRaster : public CPPUNIT_NS::TestFixture
48 {
50 
52 
54 
56 
58 
60 
62 
64 
66 
68 
70 
71  protected :
72 
73  void writeValues( te::rst::Raster& raster );
74 
75  void fillWithNoDataValues( te::rst::Raster& raster );
76 
77  void assertUniqueElement( const double& targetValue,
78  const unsigned int& requiredBand,
79  const unsigned int& requiredCol, const unsigned int& requiredLine,
80  const te::rst::Raster& raster );
81 
82  void testValues( te::rst::Raster& raster );
83 
84  void readWriteTest();
85 
86  void addTopLinesTest();
87 
88  void addBottomLinesTest();
89 
90  void addLeftColumnsTest();
91 
92  void addRightColumnsTest();
93 
94  void addTopBandsTest();
95 
96  void addBottomBandsTest();
97 
98  void multiResolutionTest();
99 
100  void cloneTest();
101 };
102 
103 #endif // __TERRALIB_UNITTEST_MEMORY_EXPANSIBLERASTER_INTERNAL_H
104 
This file contains include headers for the memory data source of TerraLib.
void assertUniqueElement(const double &targetValue, const unsigned int &requiredBand, const unsigned int &requiredCol, const unsigned int &requiredLine, const te::rst::Raster &raster)
CPPUNIT_TEST_SUITE(TsExpansibleRaster)
An abstract class for raster data strucutures.
void fillWithNoDataValues(te::rst::Raster &raster)
void testValues(te::rst::Raster &raster)
void writeValues(te::rst::Raster &raster)
A test suit for the Cached Raster class interface.
CPPUNIT_TEST(readWriteTest)