Skip to content
Snippets Groups Projects
Commit 4d324686 authored by Aurélien Bricier's avatar Aurélien Bricier
Browse files

STYLE: cleaned VectorDataToSpecificDescriptionFilterBase class

parent d8ebf142
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,6 @@
#define __otbVectorDataToSpecificDescriptionFilterBase_h
#include "otbVectorDataToVectorDataFilter.h"
//#include "otbDataNodeDescriptorBase.h" #include "otbDataNodeFunctionBase.h"
namespace otb
{
......@@ -27,7 +26,7 @@ namespace otb
* \brief Base class for VectorDataToSpecificDescriptionFilters.
*
* VectorDataToSpecificDescriptionFilterBase is a base class, it is
* suposed to be used through a derivated class.
* supposed to be used through a inheriting class.
* Input and output are both VectorDatas. Each data node of the
* output VectorData contains its score regarding to the associated
* descriptors.
......@@ -60,9 +59,6 @@ public:
typedef TVectorData VectorDataType;
typedef typename VectorDataType::Pointer VectorDataPointer;
typedef typename VectorDataType::DataNodeType DataNodeType;
//typedef typename DataNodeDescriptorBase<VectorDataType>
// DescriptorType;
//typedef typename DescriptorType::Pointer DescriptorPointerType;
typedef itk::DataObject::Pointer DataObjectPointer;
typedef itk::DataObject DataObject;
......@@ -71,10 +67,6 @@ public:
virtual void AddSupport(const itk::DataObject * support, unsigned int idx);
const itk::DataObject * GetSupport(unsigned int idx);
/** Descriptor bench accessors. */
//virtual void ClearDescriptors();
//virtual void PushBackDescriptor(DescriptorType * descriptor);
protected:
/** Constructor */
VectorDataToSpecificDescriptionFilterBase();
......@@ -87,8 +79,6 @@ private:
VectorDataToSpecificDescriptionFilterBase(const Self &); //purposely not implemented
void operator =(const Self&); //purposely not implemented
// Descriptor bench
//std::vector<DescriptorPointerType> m_Descriptors;
};
} // end namespace otb
......
......@@ -58,24 +58,6 @@ VectorDataToSpecificDescriptionFilterBase<TVectorData>
(this->itk::ProcessObject::GetInput(idx+1));
}
/*
template <class TVectorData>
void
VectorDataToSpecificDescriptionFilterBase<TVectorData>
::ClearDescriptors()
{
m_Descriptors.clear();
}
template <class TVectorData>
void
VectorDataToSpecificDescriptionFilterBase<TVectorData>
:: PushBackDescriptor(DescriptorType * descriptor)
{
m_Descriptors.push_back(descriptor);
}
*/
// PrintSelf Method
template <class TVectorData>
void
......@@ -84,7 +66,6 @@ VectorDataToSpecificDescriptionFilterBase<TVectorData>
{
Superclass::PrintSelf(os, indent);
os<<indent<<"Number of Support: "<<(int)(this->GetNumberOfInputs())-1<<std::endl;
//os<<indent<<"Number of Descriptor: "<<m_Descriptors.size<<std::endl;
}
} // end namespace otb
......
......@@ -27,7 +27,8 @@ int otbVectorDataToSpecificDescriptionFilterBaseNew(int argc, char* argv[])
{
typedef float PrecisionType;
typedef otb::VectorData<PrecisionType> VectorDataType;
typedef otb::VectorDataToSpecificDescriptionFilterBase<VectorDataType> VectorDataToSpecificDescriptionFilterType;
typedef otb::VectorDataToSpecificDescriptionFilterBase<VectorDataType>
VectorDataToSpecificDescriptionFilterType;
VectorDataToSpecificDescriptionFilterType::Pointer filter =
VectorDataToSpecificDescriptionFilterType::New();
......
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