21 #ifndef otbVectorDataToRandomLineGenerator_h
22 #define otbVectorDataToRandomLineGenerator_h
26 #include "itkPreOrderTreeIterator.h"
27 #include "itkMersenneTwisterRandomVariateGenerator.h"
48 template <
class TVectorData>
67 typedef typename DataNodeType::PolygonType::RegionType
RegionType;
69 typedef typename DataNodeType::LineType
LineType;
70 typedef typename DataNodeType::LineType::VertexType
VertexType;
73 typedef itk::PreOrderTreeIterator<typename VectorDataType::DataTreeType>
TreeIteratorType;
78 using Superclass::SetInput;
83 itkGetConstMacro(NumberOfOutputLine,
unsigned int);
84 itkSetMacro(NumberOfOutputLine,
unsigned int);
86 itkGetConstMacro(MinLineSize,
unsigned int);
87 itkSetMacro(MinLineSize,
unsigned int);
89 itkGetConstMacro(MaxLineSize,
unsigned int);
90 itkSetMacro(MaxLineSize,
unsigned int);
95 m_RandomGenerator->SetSeed(seed);
96 m_RandomSizeGenerator->SetSeed(seed);
105 void PrintSelf(std::ostream& os, itk::Indent indent)
const override;
108 void GenerateData(
void)
override;
110 PointVectorType RandomPointsGenerator(DataNodeType* node);
114 void operator=(
const Self&) =
delete;
118 std::ostringstream oss;
119 oss << m_CurrentID++;
134 #ifndef OTB_MANUAL_INSTANTIATION