| TerraLib 4.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

- File List
- File Members

E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/image_processing/TePDIBatchGeoMosaic.hpp
Go to the documentation of this file.

    00001 /*
    00002 TerraLib - a library for developing GIS applications.
    00003 Copyright  2001, 2002, 2003 INPE and Tecgraf/PUC-Rio.
    00004
    00005 This code is part of the TerraLib library.
    00006 This library is free software; you can redistribute it and/or
    00007 modify it under the terms of the GNU Lesser General Public
    00008 License as published by the Free Software Foundation; either
    00009 version 2.1 of the License, or (at your option) any later version.
    00010
    00011 You should have received a copy of the GNU Lesser General Public
    00012 License along with this library.
    00013
    00014 The authors reassure the license terms regarding the warranties.
    00015 They specifically disclaim any warranties, including, but not limited to,
    00016 the implied warranties of merchantability and fitness for a particular
    00017 purpose. The library provided hereunder is on an "as is" basis, and the
    00018 authors have no obligation to provide maintenance, support, updates,
    00019 enhancements, or modifications.
    00020 In no event shall INPE be held liable to any party
    00021 for direct, indirect, special, incidental, or consequential damages arising
    00022 out of the use of this library and its documentation.
    00023 */
    00024
    00025 #ifndef TEPDIBATCHGEOMOSAIC_HPP
    00026   #define TEPDIBATCHGEOMOSAIC_HPP
    00027
    00028   #include "TePDIAlgorithm.hpp"
    00029   #include "TePDIParameters.hpp"
    00030   #include "../kernel/TeSharedPtr.h"
    00031
    00065   class PDI_DLL TePDIBatchGeoMosaic : public TePDIAlgorithm {
    00066     public :
    00067
    00068       TePDIBatchGeoMosaic();
    00069
    00070       ~TePDIBatchGeoMosaic();
    00071
    00072       //Overloaded
    00073       bool CheckParameters( const TePDIParameters& parameters ) const;
    00074
    00075     protected :
    00076
    00078       class RastersListNodeT
    00079       {
    00080         public :
    00081
    00083           TePDITypes::TePDIRasterPtrType rasterPtr_;
    00084
    00087           TePolygon dataPolygonRefProj_;
    00088
    00091           TePolygon dataPolygonRaProj_;
    00092
    00094           std::vector< unsigned int > channelsVec_;
    00095
    00096           RastersListNodeT();
    00097
    00098           ~RastersListNodeT();
    00099
    00100           const RastersListNodeT& operator=( const RastersListNodeT& other );
    00101       };
    00102
    00104       typedef std::list< RastersListNodeT > RastersListT;
    00105
    00106       //Overloaded
    00107       void ResetState( const TePDIParameters& params );
    00108
    00109       //Overloaded
    00110       bool RunImplementation();
    00111
    00120       bool getRUsedChannels(
    00121         const unsigned int& inputRastersIdx,
    00122         const std::vector< unsigned int >& bands,
    00123         const TePDITypes::TePDIRasterVectorType& input_rasters,
    00124         std::vector< unsigned int >& channels ) const;
    00125
    00134       bool initRastersList( const std::vector< unsigned int >& bands,
    00135         const TePDITypes::TePDIRasterVectorType& input_rasters,
    00136         TeProjection* referenceProjPtr,
    00137         RastersListT& rList ) const;
    00138
    00145       TeProjection* getFreqProjection(
    00146         const TePDITypes::TePDIRasterVectorType& rastersVec ) const;
    00147
    00155       bool extractCloserRasterNode( RastersListT& rList,
    00156         const RastersListNodeT& inputNode,
    00157         RastersListNodeT& outputNode ) const;
    00158
    00166       bool extractClosestRastersNodes( RastersListT& rList,
    00167         RastersListNodeT& outputNode1, RastersListNodeT& outputNode2 ) const;
    00168
    00169   };
    00170
    00171 #endif

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines