| 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/kernel/TeSTElementSet.h
Go to the documentation of this file.

    00001 /************************************************************************************
    00002 TerraLib - a library for developing GIS applications.
    00003 Copyright  2001-2007 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 purpose.
    00017 The library provided hereunder is on an "as is" basis, and the authors have no
    00018 obligation to provide maintenance, support, updates, enhancements, or modifications.
    00019 In no event shall INPE and Tecgraf / PUC-Rio be held liable to any party for direct,
    00020 indirect, special, incidental, or consequential damages arising out of the use
    00021 of this library and its documentation.
    00022 *************************************************************************************/
    00028 #ifndef  __TERRALIB_INTERNAL_STELEMENTSET_H
    00029 #define  __TERRALIB_INTERNAL_STELEMENTSET_H
    00030
    00031 #include "TeBaseSTInstanceSet.h"
    00032 #include "TeSTInstance.h"
    00033 #include "TeTimeInterval.h"
    00034 #include "TeMultiGeometry.h"
    00035
    00036 class TeQuerier;
    00037 class TeTheme;
    00038 class TeLayer;
    00039
    00040
    00051 class TL_DLL TeSTElementSet  : public TeBaseSTInstanceSet<TeMultiGeometry, TeTimeInterval, TeSTInstance>
    00052 {
    00053 protected:
    00054
    00056            bool buildImpl(TeQuerier* querier, const int& slide = -1);
    00057
    00058 public:
    00060            TeSTElementSet() : TeBaseSTInstanceSet<TeMultiGeometry, TeTimeInterval, TeSTInstance>()
    00061            { }
    00062
    00064            TeSTElementSet(TeTheme* theme, TeAttributeList attList = TeAttributeList()) :
    00065                       TeBaseSTInstanceSet<TeMultiGeometry, TeTimeInterval, TeSTInstance>(theme, attList)
    00066            { }
    00067
    00069            TeSTElementSet(TeLayer* layer, TeAttributeList attList = TeAttributeList()) :
    00070                       TeBaseSTInstanceSet<TeMultiGeometry, TeTimeInterval, TeSTInstance>(layer, attList)
    00071            { }
    00072
    00073
    00075            TeSTElementSet(const TeBox& box, const TeAttributeList& attrList) :
    00076                       TeBaseSTInstanceSet<TeMultiGeometry, TeTimeInterval, TeSTInstance>(box, attrList)
    00077            { }
    00078
    00079
    00081            TeTimeInterval totalTime();
    00082
    00084            void totalTime(TeTimeInterval t);
    00085
    00087            bool hasElement(const string& objId);
    00088
    00090            bool setGeometry(const string& object_id, const TePolygonSet& geomSet, TeTimeInterval time = TeTimeInterval());
    00092            bool setGeometry(const string& object_id, const TeLineSet& geomSet, TeTimeInterval time = TeTimeInterval());
    00094            bool setGeometry(const string& object_id, const TePointSet& geomSet, TeTimeInterval time = TeTimeInterval());
    00096            bool setGeometry(const string& object_id, const TeCellSet& geomSet, TeTimeInterval time = TeTimeInterval());
    00098            bool setGeometry(const string& object_id, const TeTextSet& geomSet, TeTimeInterval time = TeTimeInterval());
    00099
    00101            bool getGeometry(const string& object_id, TePolygonSet& geomSet, TeTimeInterval time = TeTimeInterval());
    00103            bool getGeometry(const string& object_id, TeLineSet& geomSet, TeTimeInterval time = TeTimeInterval());
    00105            bool getGeometry(const string& object_id, TePointSet& geomSet, TeTimeInterval time = TeTimeInterval());
    00107            bool getGeometry(const string& object_id, TeCellSet& geomSet, TeTimeInterval time = TeTimeInterval());
    00109            bool getGeometry(const string& object_id, TeTextSet& geomSet, TeTimeInterval time = TeTimeInterval());
    00110 };
    00111
    00112
    00124 #endif
    00125

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines