| 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/dtm/TeDTMAlgorithm.h
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 TEDTMALGORITHM_HPP
    00026   #define TEDTMALGORITHM_HPP
    00027
    00028   #include "TeDTMParameters.h"
    00029
    00035   class DTM_DLL TeDTMAlgorithm
    00036   {
    00037     public :
    00038
    00042       virtual ~TeDTMAlgorithm();
    00043
    00050       bool apply();
    00051
    00058       bool reset( const TeDTMParameters& params );
    00059
    00069       virtual bool checkParameters(
    00070         const TeDTMParameters& parameters ) const = 0;
    00071
    00077       const TeDTMParameters& getParameters() const;
    00078
    00084       void toggleProgInt( bool enabled );
    00085
    00086     protected :
    00090       mutable TeDTMParameters params_;
    00091
    00095       bool progress_enabled_;
    00096
    00100       TeDTMAlgorithm();
    00101
    00107       virtual bool runImplementation() = 0;
    00108
    00114       virtual void resetState( const TeDTMParameters& params ) = 0;
    00115
    00124       bool checkInternalParameters() const;
    00125
    00126     private :
    00127
    00133       TeDTMAlgorithm( const TeDTMAlgorithm& ) {};
    00134
    00143       const TeDTMAlgorithm& operator=(
    00144         const TeDTMAlgorithm& external );
    00145   };
    00146
    00147 #endif //TEDTMALGORITHM_HPP

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines