Skip to content
Snippets Groups Projects
Commit 57d2857e authored by Jordi Inglada's avatar Jordi Inglada
Browse files

ENH: GISTableToGISTableFilter

parent 8eed1f8f
No related branches found
No related tags found
No related merge requests found
......@@ -15,32 +15,32 @@
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#ifndef __otbVectorDataToVectorDataFilter_h
#define __otbVectorDataToVectorDataFilter_h
#ifndef __otbGISTableToGISTableFilter_h
#define __otbGISTableToGISTableFilter_h
#include "otbVectorDataSource.h"
#include "otbGISTableSource.h"
namespace otb
{
/** \class VectorDataToVectorDataFilter
* \brief Base class for filters that take an VectorData as input and produce an VectorData as output.
/** \class GISTableToGISTableFilter
* \brief Base class for filters that take an GISTable as input and produce an GISTable as output.
*
* VectorDataToVectorDataFilter is the base class for all process objects that output
* VectorData data and require VectorData data as input. Specifically, this class
* GISTableToGISTableFilter is the base class for all process objects that output
* GISTable data and require GISTable data as input. Specifically, this class
* defines the SetInput() method for defining the input to a filter.
*
*
*
* \ingroup VectorDataFilter
* \ingroup GISTableFilter
*/
template <class TInputVectorData, class TOutputVectorData >
class ITK_EXPORT VectorDataToVectorDataFilter : public otb::VectorDataSource<TOutputVectorData>
template <class TInputGISTable, class TOutputGISTable >
class ITK_EXPORT GISTableToGISTableFilter : public otb::GISTableSource<TOutputGISTable>
{
public:
/** Standard class typedefs. */
typedef VectorDataToVectorDataFilter Self;
typedef otb::VectorDataSource<TOutputVectorData> Superclass;
typedef GISTableToGISTableFilter Self;
typedef otb::GISTableSource<TOutputGISTable> Superclass;
typedef itk::SmartPointer<Self> Pointer;
typedef itk::SmartPointer<const Self> ConstPointer;
......@@ -48,31 +48,31 @@ public:
itkNewMacro(Self);
/** Run-time type information (and related methods). */
itkTypeMacro(VectorDataToVectorDataFilter, VectorDataSource);
itkTypeMacro(GISTableToGISTableFilter, GISTableSource);
/** Some typedefs. */
typedef TInputVectorData InputVectorDataType;
typedef TOutputVectorData OutputVectorDataType;
typedef typename TInputVectorData::ConstPointer InputVectorDataPointer;
typedef typename TOutputVectorData::Pointer OutputVectorDataPointer;
typedef TInputGISTable InputGISTableType;
typedef TOutputGISTable OutputGISTableType;
typedef typename TInputGISTable::ConstPointer InputGISTablePointer;
typedef typename TOutputGISTable::Pointer OutputGISTablePointer;
typedef itk::DataObject::Pointer DataObjectPointer;
virtual void SetInput( const InputVectorDataType *input);
const InputVectorDataType * GetInput(void);
virtual void SetInput( const InputGISTableType *input);
const InputGISTableType * GetInput(void);
protected:
/** Constructor */
VectorDataToVectorDataFilter();
GISTableToGISTableFilter();
/** Destructor */
virtual ~VectorDataToVectorDataFilter() {};
virtual ~GISTableToGISTableFilter() {};
/**PrintSelf method */
virtual void PrintSelf(std::ostream& os, itk::Indent indent) const;
private:
VectorDataToVectorDataFilter(const Self&); //purposely not implemented
GISTableToGISTableFilter(const Self&); //purposely not implemented
void operator=(const Self&); //purposely not implemented
};
......@@ -80,7 +80,7 @@ private:
} // end namespace otb
#ifndef ITK_MANUAL_INSTANTIATION
#include "otbVectorDataToVectorDataFilter.txx"
#include "otbGISTableToGISTableFilter.txx"
#endif
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment