Skip to content
Snippets Groups Projects
Commit 3c0c08bc authored by Emmanuel Christophe's avatar Emmanuel Christophe
Browse files

REFAC: ImageToPointSetFilter Should not copy/paste methods from base class

parent 9b8ac7fd
No related branches found
No related tags found
No related merge requests found
...@@ -24,7 +24,7 @@ namespace otb ...@@ -24,7 +24,7 @@ namespace otb
{ {
/** \class ImageToPointSetFilter /** \class ImageToPointSetFilter
* \brief * \brief Base class to output PointSet data with image data as input
* *
* ImageToPointSetFilter is the base class for all process objects that output * ImageToPointSetFilter is the base class for all process objects that output
* Point Set data and require image data as input. Specifically, this class * Point Set data and require image data as input. Specifically, this class
...@@ -47,7 +47,7 @@ public: ...@@ -47,7 +47,7 @@ public:
itkTypeMacro(ImageToPointSetFilter, PointSetSource); itkTypeMacro(ImageToPointSetFilter, PointSetSource);
/** Create a valid output. */ /** Create a valid output. */
itk::DataObject::Pointer MakeOutput(unsigned int idx); // itk::DataObject::Pointer MakeOutput(unsigned int idx);
/** Some Image related typedefs. */ /** Some Image related typedefs. */
typedef TInputImage InputImageType; typedef TInputImage InputImageType;
...@@ -69,7 +69,7 @@ public: ...@@ -69,7 +69,7 @@ public:
const InputImageType * GetInput(unsigned int idx); const InputImageType * GetInput(unsigned int idx);
/** Get the output Point Set of this process object. */ /** Get the output Point Set of this process object. */
OutputPointSetType * GetOutput(void); // OutputPointSetType * GetOutput(void);
/** Prepare the output */ /** Prepare the output */
void GenerateOutputInformation(void); void GenerateOutputInformation(void);
......
...@@ -54,14 +54,14 @@ ImageToPointSetFilter<TInputImage,TOutputPointSet> ...@@ -54,14 +54,14 @@ ImageToPointSetFilter<TInputImage,TOutputPointSet>
/** /**
* Make Output * Make Output
*/ */
template <class TInputImage, class TOutputPointSet> // template <class TInputImage, class TOutputPointSet>
itk::DataObject::Pointer // itk::DataObject::Pointer
ImageToPointSetFilter<TInputImage,TOutputPointSet> // ImageToPointSetFilter<TInputImage,TOutputPointSet>
::MakeOutput(unsigned int) // ::MakeOutput(unsigned int)
{ // {
OutputPointSetPointer outputPointSet = OutputPointSetType::New(); // OutputPointSetPointer outputPointSet = OutputPointSetType::New();
return dynamic_cast< itk::DataObject *>( outputPointSet.GetPointer() ); // return dynamic_cast< itk::DataObject *>( outputPointSet.GetPointer() );
} // }
...@@ -98,14 +98,14 @@ ImageToPointSetFilter<TInputImage,TOutputPointSet> ...@@ -98,14 +98,14 @@ ImageToPointSetFilter<TInputImage,TOutputPointSet>
/** /**
* *
*/ */
template <class TInputImage, class TOutputPointSet> // template <class TInputImage, class TOutputPointSet>
typename ImageToPointSetFilter<TInputImage,TOutputPointSet>::OutputPointSetType * // typename ImageToPointSetFilter<TInputImage,TOutputPointSet>::OutputPointSetType *
ImageToPointSetFilter<TInputImage,TOutputPointSet> // ImageToPointSetFilter<TInputImage,TOutputPointSet>
::GetOutput(void) // ::GetOutput(void)
{ // {
return dynamic_cast<OutputPointSetType*> // return dynamic_cast<OutputPointSetType*>
(this->ProcessObjectType::GetOutput(0)); // (this->ProcessObjectType::GetOutput(0));
} // }
/** /**
......
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