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

STYLE

parent b012e56d
Branches
Tags
No related merge requests found
......@@ -31,9 +31,9 @@ namespace otb
* It then uses the otb::PolyLineImageIterator to draw each polyline. This iterator uses
* the general Bresenham algorithm known to be efficient in segment drawing.
*
* If the UsePathInternalValue is toggled, the filter check if the metadata dictionnary of the input path has a "Value" key.
* If it is the case, it will use this value to draw the Path instead of the default value. If not, it will use the default
* value.
* If the UsePathInternalValue is toggled, the filter check if the metadata dictionnary of
* the input path has a "Value" key. If it is the case, it will use this value to draw the
* Path instead of the default value. If not, it will use the default value.
*
* \sa PolyLineParametricPathWithValue
* \sa MetaDataDictionary
......@@ -47,10 +47,10 @@ class ITK_EXPORT DrawPathListFilter : public itk::ImageToImageFilter<TInputImage
{
public:
/** Standard class typedefs. */
typedef DrawPathListFilter Self;
typedef DrawPathListFilter Self;
typedef itk::ImageToImageFilter<TInputImage,TOutputImage> Superclass;
typedef itk::SmartPointer<Self> Pointer;
typedef itk::SmartPointer<const Self> ConstPointer;
typedef itk::SmartPointer<Self> Pointer;
typedef itk::SmartPointer<const Self> ConstPointer;
/** Method for creation through the object factory. */
itkNewMacro(Self);
......
......@@ -94,7 +94,7 @@ DrawPathListFilter<TInputImage,TInputPath,TOutputImage>
}
// Then we use otb::PolyLineImageIterator to draw polylines
for (PathListIteratorType plIt = pathListPtr->Begin(); plIt!=pathListPtr->End();++plIt)
for (PathListIteratorType plIt = pathListPtr->Begin(); plIt != pathListPtr->End(); ++plIt)
{
OutputImagePixelType value = itk::NumericTraits<OutputImagePixelType>::Zero;
if (m_UseInternalPathValue && plIt.Get()->GetMetaDataDictionary().HasKey("Value"))
......
......@@ -105,13 +105,16 @@ public:
virtual ~PolyLineImageConstIterator() {};
protected: //made protected so other iterators can access
/** Smart pointer to the source image. */
typename ImageType::ConstWeakPointer m_Image;
/** Smart pointer to the path */
typename PathType::ConstPointer m_Path;
InternalImageIteratorType m_InternalImageIterator;
VertexIteratorType m_InternalVertexIterator;
InternalImageIteratorType m_InternalImageIterator;
VertexIteratorType m_InternalVertexIterator;
};
}// End namespace otb
#ifndef OTB_MANUAL_INSTANTIATION
#include "otbPolyLineImageConstIterator.txx"
......
......@@ -43,7 +43,7 @@ class ITK_EXPORT PolyLineImageIterator
{
public:
/** Standard typedefs */
typedef PolyLineImageIterator Self;
typedef PolyLineImageIterator Self;
typedef PolyLineImageConstIterator<TImage,TPath> Superclass;
itkStaticConstMacro(ImageIteratorDimension, unsigned int,
......@@ -89,7 +89,8 @@ public:
{
this->Superclass::operator=(it);
return *this;
};
}
/** Constructor establishes an iterator to walk along a line */
PolyLineImageIterator(ImageType *imagePtr,PathType * pathPtr)
: Superclass(imagePtr,pathPtr) {};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment