TINCreateIsolines.h
Go to the documentation of this file.
1 /*!
2 \file terralib/mnt/core/TINCreateIsolines.h
3 
4 \brief This file contains a class to generate isolines from a TIN.
5 Adapted from SPRING
6 
7 */
8 
9 #ifndef __TERRALIB_MNT_INTERNAL_TINCREATEISOLINES_H
10 #define __TERRALIB_MNT_INTERNAL_TINCREATEISOLINES_H
11 
12 // Terralib Includes
13 #include "Config.h"
14 #include "Tin.h"
15 
16 #include "../../dataaccess/dataset/DataSet.h"
17 #include "../../dataaccess/dataset/DataSetType.h"
18 #include "../../dataaccess/datasource/DataSource.h"
19 
20 namespace te
21 {
22  namespace mnt
23  {
24 
25  /*!
26  \class TINCreateIsolines
27 
28  \brief Class to generate isolines from TIN.
29 
30  \ingroup mnt
31 
32  */
34  {
35  public:
37 
38  bool run();
39 
40  void setInput(te::da::DataSourcePtr inDsrc,
41  std::string inDsetName,
42  std::auto_ptr<te::da::DataSetType> inDsetType);
43 
44  void setOutput(te::da::DataSourcePtr outDsrc, std::string dsname);
45 
46  void setParams(std::vector<double> &val, std::vector<double> &gval, double tol);
47 
48  protected:
49 
51  std::string m_inDsetName;
52  std::auto_ptr<te::da::DataSetType> m_inDsetType;
53 
55  std::string m_outDsetName;
56 
57  std::vector<double> m_values;
58  std::vector<double> m_guidevalues;
59 
60  std::vector<te::gm::LineString> m_isolist;
61 
62  double m_tol;
63 
64  };
65  }
66 }
67 
68 #endif
std::vector< te::gm::LineString > m_isolist
Class to generate isolines from TIN.
te::da::DataSourcePtr m_outDsrc
boost::shared_ptr< DataSource > DataSourcePtr
Definition: DataSource.h:1438
std::auto_ptr< te::da::DataSetType > m_inDsetType
#define TEMNTEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:41
te::da::DataSourcePtr m_inDsrc
std::vector< double > m_values
std::vector< double > m_guidevalues
URI C++ Library.
Class to define TIN strutures.
Definition: Tin.h:276
This file contains a class to define a TIN. Adapted from SPRING.