All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
VectorizerPolygonStructure.h
Go to the documentation of this file.
1 /* Copyright (C) 2008-2013 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/raster/VectorizerPolygonStructure.h
22 
23  \brief A polygon container node class.
24 */
25 
26 #ifndef __TERRALIB_RASTER_INTERNAL_VECTORIZERPOLYGONSTRUCTURE_H
27 #define __TERRALIB_RASTER_INTERNAL_VECTORIZERPOLYGONSTRUCTURE_H
28 
29 // TerraLib
30 #include "../geometry/Polygon.h"
31 #include "TileIndexer.h"
32 #include "Config.h"
33 
34 namespace te
35 {
36  namespace rst
37  {
38  /*!
39  \class VectorizerPolygonStructure
40 
41  \brief A polygon container node class.
42  */
44  {
45  public:
46  /*! \brief Default constructor. */
48 
49  /*!
50  \brief Copy constructor.
51 
52  \param rhs The right-hand side VectorizerPolygonStructure.
53  */
55 
56  /*!
57  \brief Constructor with non default parameters.
58 
59  \param p Polygon reference.
60  \param v Parameter V.
61  \param tidy Tile indexer dy.
62  */
63  VectorizerPolygonStructure(const te::gm::Polygon& p, const int& v, const double& tidy);
64 
65  /*! \brief Default destructor. */
67 
68  /*! \brief Init internal variables. */
69  void init();
70 
71  /*! \brief Init internal variables. */
72  void clear();
73 
74  /*!
75  \brief Reset the current instance.
76 
77  \param p Polygon reference.
78  \param v Parameter V.
79  \param tidy Tile indexer dy.
80  */
81  void reset(const te::gm::Polygon& p, const int& v, const double& tidy);
82 
83  /*!
84  \brief Assignment operator.
85 
86  \param rhs The right-hand-side copy that would be used to copy from.
87 
88  \return A reference to this object.
89  */
91 
92  public:
93  int m_value; //!< The value (color) related to a polygon.
94  double m_tileIndexerDY; //!< The polygon tile indexer Y Axis resolution.
95  TileIndexer* m_indexer; //!< The polygon tile indexer pointer.
96  te::gm::Polygon m_polygon; //!< The stored polygon instance.
97 
98  };
99 
100  } // end namespace rst
101 } // end namespace te
102 
103 #endif // __TERRALIB_RASTER_INTERNAL_VECTORIZERPOLYGONSTRUCTURE_H
double m_tileIndexerDY
The polygon tile indexer Y Axis resolution.
#define TERASTEREXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:65
Polygon tile indexing class for optmized geometrical relational tests.
Definition: TileIndexer.h:55
te::gm::Polygon m_polygon
The stored polygon instance.
TileIndexer * m_indexer
The polygon tile indexer pointer.
A polygon container node class.
Polygon tile indexing class for optmized geometrical relational tests.
int m_value
The value (color) related to a polygon.
Polygon is a subclass of CurvePolygon whose rings are defined by linear rings.
Definition: Polygon.h:50
Configuration flags for the Raster module of TerraLib.