IdentityOperation.h
Go to the documentation of this file.
1 /* Copyright (C) 2008 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/vp/IdentityOperation.h
22 
23  \brief Represents an identity operation between two sets of features
24  */
25 
26 #ifndef __TERRALIB_VP_INTERNAL_IDENTITYOPERATION_H
27 #define __TERRALIB_VP_INTERNAL_IDENTITYOPERATION_H
28 
29  //Terralib include files
30 #include "Config.h"
31 
32 #include "AbstractOperation.h"
33 
34 #include <memory>
35 #include <vector>
36 
37 namespace te
38 {
39  namespace vp
40  {
41  class AbstractParameters;
42  class DifferenceOperation;
43  class FeatureSet;
44  class IntersectionOperation;
45 
46  /*!
47  \class UnionOperation
48  \brief Represents an IDENTITY operation between two sets of features.
49 
50  It executes 2 operations (A - B), and (A & B)
51  */
53  {
54  public:
55 
56  /*!
57  * \brief Constructor
58  */
60 
61  //!< Destructor
62  virtual ~IdentityOperation();
63 
64  virtual void initialize() override;
65 
66  std::vector<te::vp::FeatureSet> executeImpl(const std::vector<te::vp::FeatureSet>& vecInput) override;
67 
68  protected:
69  std::unique_ptr<te::vp::IntersectionOperation> m_intersectionOperation;
70  std::unique_ptr<te::vp::DifferenceOperation> m_differenceOperation;
71  };
72 
74  {
75  public:
76 
78 
80 
81  protected:
82 
83  virtual te::vp::AbstractOperation* build() override;
84  };
85 
86  }//end namespace vp
87 }// end namespace te
88 
89 #endif // __TERRALIB_VP_INTERNAL_IDENTITYOPERATION_H
te
TerraLib.
Definition: AddressGeocodingOp.h:52
te::vp::IdentityOperation::executeImpl
std::vector< te::vp::FeatureSet > executeImpl(const std::vector< te::vp::FeatureSet > &vecInput) override
te::vp::IdentityOperation::m_intersectionOperation
std::unique_ptr< te::vp::IntersectionOperation > m_intersectionOperation
Definition: IdentityOperation.h:69
te::vp::OperationFactory
Abstract factory used to create Operations.
Definition: AbstractOperation.h:306
te::vp::IdentityOperation::IdentityOperation
IdentityOperation()
Constructor.
te::vp::IdentityOperationFactory::IdentityOperationFactory
IdentityOperationFactory()
te::vp::IdentityOperationFactory
Definition: IdentityOperation.h:74
TEVPEXPORT
#define TEVPEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:61
te::vp::IdentityOperationFactory::build
virtual te::vp::AbstractOperation * build() override
Concrete factories (derived from this one) must implement this method in order to create objects.
te::vp::IdentityOperationFactory::~IdentityOperationFactory
virtual ~IdentityOperationFactory()
te::vp::IdentityOperation
Definition: IdentityOperation.h:53
Config.h
Proxy configuration file for TerraView (see terraview_config.h).
te::vp::IdentityOperation::initialize
virtual void initialize() override
te::vp::AbstractOperation
Abstract class used to define an operation.
Definition: AbstractOperation.h:204
te::vp::IdentityOperation::~IdentityOperation
virtual ~IdentityOperation()
te::vp::IdentityOperation::m_differenceOperation
std::unique_ptr< te::vp::DifferenceOperation > m_differenceOperation
Definition: IdentityOperation.h:70
AbstractOperation.h
Abstract Class to represent an abstract vector operation.