OTB  9.0.0
Orfeo Toolbox
Public Types | Public Member Functions | Static Public Member Functions | List of all members
otb::VectorDataToRandomLineGenerator< TVectorData > Class Template Reference

#include <otbVectorDataToRandomLineGenerator.h>

+ Inheritance diagram for otb::VectorDataToRandomLineGenerator< TVectorData >:
+ Collaboration diagram for otb::VectorDataToRandomLineGenerator< TVectorData >:

Public Types

typedef itk::SmartPointer< const SelfConstPointer
 
typedef VectorDataType::DataNodeType DataNodeType
 
typedef DataNodeType::LineType LineType
 
typedef itk::SmartPointer< SelfPointer
 
typedef DataNodeType::PointType PointType
 
typedef std::vector< PointTypePointVectorType
 
typedef itk::Statistics::MersenneTwisterRandomVariateGenerator RandomGeneratorType
 
typedef DataNodeType::PolygonType::RegionType RegionType
 
typedef VectorDataToRandomLineGenerator Self
 
typedef VectorDataSource< TVectorData > Superclass
 
typedef itk::PreOrderTreeIterator< typename VectorDataType::DataTreeType > TreeIteratorType
 
typedef VectorDataType::Pointer VectorDataPointerType
 
typedef TVectorData VectorDataType
 
typedef DataNodeType::LineType::VertexType VertexType
 
- Public Types inherited from otb::VectorDataSource< TVectorData >
typedef itk::SmartPointer< const SelfConstPointer
 
typedef itk::ProcessObject::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
 
typedef TVectorData ::Pointer OutputVectorDataPointer
 
typedef TVectorData OutputVectorDataType
 
typedef itk::SmartPointer< SelfPointer
 
typedef VectorDataSource Self
 
typedef itk::ProcessObject Superclass
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual const char * GetNameOfClass () const
 
- Public Member Functions inherited from otb::VectorDataSource< TVectorData >
virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual const char * GetNameOfClass () const
 
virtual void GraftOutput (itk::DataObject *output)
 
virtual void GraftNthOutput (unsigned int idx, itk::DataObject *output)
 
virtual OutputVectorDataTypeGetOutput (void)
 
virtual OutputVectorDataTypeGetOutput (DataObjectPointerArraySizeType idx)
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from otb::VectorDataSource< TVectorData >
static Pointer New ()
 
RandomGeneratorType::Pointer m_RandomGenerator
 
RandomGeneratorType::Pointer m_RandomSizeGenerator
 
unsigned int m_NumberOfOutputLine
 
unsigned int m_MinLineSize
 
unsigned int m_MaxLineSize
 
unsigned int m_CurrentID
 
void SetInput (const VectorDataType *)
 
const VectorDataTypeGetInput () const
 
virtual unsigned int GetNumberOfOutputLine () const
 
virtual void SetNumberOfOutputLine (unsigned int _arg)
 
virtual unsigned int GetMinLineSize () const
 
virtual void SetMinLineSize (unsigned int _arg)
 
virtual unsigned int GetMaxLineSize () const
 
virtual void SetMaxLineSize (unsigned int _arg)
 
void SetSeed (unsigned int seed)
 
 VectorDataToRandomLineGenerator ()
 
 ~VectorDataToRandomLineGenerator () override
 
void PrintSelf (std::ostream &os, itk::Indent indent) const override
 
void GenerateData (void) override
 
PointVectorType RandomPointsGenerator (DataNodeType *node)
 
 VectorDataToRandomLineGenerator (const Self &)=delete
 
void operator= (const Self &)=delete
 
std::string GetNextID ()
 

Additional Inherited Members

- Protected Member Functions inherited from otb::VectorDataSource< TVectorData >
 VectorDataSource ()
 
 ~VectorDataSource () override
 
void PrintSelf (std::ostream &os, itk::Indent indent) const override
 
virtual void AllocateOutputs ()
 

Detailed Description

template<class TVectorData>
class otb::VectorDataToRandomLineGenerator< TVectorData >

Produces a VectorData Containing Random Lines.

This generator produces a unique vector data containing randomly generated lines inside polygons contained in the input vectorData.

The user can set the range of point per line through SetMinLineSize() and SetMaxLineSize(). The generated line number per polygon can be set through SetNumberOfOutputLine

See also
VectorDataSource

Definition at line 49 of file otbVectorDataToRandomLineGenerator.h.

Member Typedef Documentation

◆ ConstPointer

template<class TVectorData >
typedef itk::SmartPointer<const Self> otb::VectorDataToRandomLineGenerator< TVectorData >::ConstPointer

Definition at line 56 of file otbVectorDataToRandomLineGenerator.h.

◆ DataNodeType

template<class TVectorData >
typedef VectorDataType::DataNodeType otb::VectorDataToRandomLineGenerator< TVectorData >::DataNodeType

Definition at line 66 of file otbVectorDataToRandomLineGenerator.h.

◆ LineType

template<class TVectorData >
typedef DataNodeType::LineType otb::VectorDataToRandomLineGenerator< TVectorData >::LineType

Definition at line 69 of file otbVectorDataToRandomLineGenerator.h.

◆ Pointer

template<class TVectorData >
typedef itk::SmartPointer<Self> otb::VectorDataToRandomLineGenerator< TVectorData >::Pointer

Definition at line 55 of file otbVectorDataToRandomLineGenerator.h.

◆ PointType

template<class TVectorData >
typedef DataNodeType::PointType otb::VectorDataToRandomLineGenerator< TVectorData >::PointType

Definition at line 68 of file otbVectorDataToRandomLineGenerator.h.

◆ PointVectorType

template<class TVectorData >
typedef std::vector<PointType> otb::VectorDataToRandomLineGenerator< TVectorData >::PointVectorType

Definition at line 71 of file otbVectorDataToRandomLineGenerator.h.

◆ RandomGeneratorType

template<class TVectorData >
typedef itk::Statistics::MersenneTwisterRandomVariateGenerator otb::VectorDataToRandomLineGenerator< TVectorData >::RandomGeneratorType

Definition at line 75 of file otbVectorDataToRandomLineGenerator.h.

◆ RegionType

template<class TVectorData >
typedef DataNodeType::PolygonType::RegionType otb::VectorDataToRandomLineGenerator< TVectorData >::RegionType

Definition at line 67 of file otbVectorDataToRandomLineGenerator.h.

◆ Self

template<class TVectorData >
typedef VectorDataToRandomLineGenerator otb::VectorDataToRandomLineGenerator< TVectorData >::Self

Standard class typedefs

Definition at line 53 of file otbVectorDataToRandomLineGenerator.h.

◆ Superclass

template<class TVectorData >
typedef VectorDataSource<TVectorData> otb::VectorDataToRandomLineGenerator< TVectorData >::Superclass

Definition at line 54 of file otbVectorDataToRandomLineGenerator.h.

◆ TreeIteratorType

template<class TVectorData >
typedef itk::PreOrderTreeIterator<typename VectorDataType::DataTreeType> otb::VectorDataToRandomLineGenerator< TVectorData >::TreeIteratorType

Definition at line 73 of file otbVectorDataToRandomLineGenerator.h.

◆ VectorDataPointerType

template<class TVectorData >
typedef VectorDataType::Pointer otb::VectorDataToRandomLineGenerator< TVectorData >::VectorDataPointerType

Definition at line 65 of file otbVectorDataToRandomLineGenerator.h.

◆ VectorDataType

template<class TVectorData >
typedef TVectorData otb::VectorDataToRandomLineGenerator< TVectorData >::VectorDataType

Definition at line 62 of file otbVectorDataToRandomLineGenerator.h.

◆ VertexType

template<class TVectorData >
typedef DataNodeType::LineType::VertexType otb::VectorDataToRandomLineGenerator< TVectorData >::VertexType

Definition at line 70 of file otbVectorDataToRandomLineGenerator.h.

Constructor & Destructor Documentation

◆ VectorDataToRandomLineGenerator() [1/2]

template<class TVectorData >
otb::VectorDataToRandomLineGenerator< TVectorData >::VectorDataToRandomLineGenerator
protected

◆ ~VectorDataToRandomLineGenerator()

template<class TVectorData >
otb::VectorDataToRandomLineGenerator< TVectorData >::~VectorDataToRandomLineGenerator ( )
inlineoverrideprotected

Set the seed for random number generator

Definition at line 102 of file otbVectorDataToRandomLineGenerator.h.

◆ VectorDataToRandomLineGenerator() [2/2]

template<class TVectorData >
otb::VectorDataToRandomLineGenerator< TVectorData >::VectorDataToRandomLineGenerator ( const Self )
privatedelete

Set the seed for random number generator

Member Function Documentation

◆ CreateAnother()

template<class TVectorData >
virtual::itk::LightObject::Pointer otb::VectorDataToRandomLineGenerator< TVectorData >::CreateAnother ( void  ) const

◆ GenerateData()

template<class TVectorData >
void otb::VectorDataToRandomLineGenerator< TVectorData >::GenerateData ( void  )
overrideprotected

Triggers the Computation of the sample list

Definition at line 103 of file otbVectorDataToRandomLineGenerator.hxx.

References otb::DOCUMENT, and otb::FEATURE_LINE.

◆ GetInput()

template<class TVectorData >
const TVectorData * otb::VectorDataToRandomLineGenerator< TVectorData >::GetInput

Set the seed for random number generator

Definition at line 54 of file otbVectorDataToRandomLineGenerator.hxx.

◆ GetMaxLineSize()

template<class TVectorData >
virtual unsigned int otb::VectorDataToRandomLineGenerator< TVectorData >::GetMaxLineSize ( ) const
virtual

Set the seed for random number generator

◆ GetMinLineSize()

template<class TVectorData >
virtual unsigned int otb::VectorDataToRandomLineGenerator< TVectorData >::GetMinLineSize ( ) const
virtual

Set the seed for random number generator

◆ GetNameOfClass()

template<class TVectorData >
virtual const char* otb::VectorDataToRandomLineGenerator< TVectorData >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

◆ GetNextID()

template<class TVectorData >
std::string otb::VectorDataToRandomLineGenerator< TVectorData >::GetNextID ( )
inlineprivate

Set the seed for random number generator

Definition at line 116 of file otbVectorDataToRandomLineGenerator.h.

◆ GetNumberOfOutputLine()

template<class TVectorData >
virtual unsigned int otb::VectorDataToRandomLineGenerator< TVectorData >::GetNumberOfOutputLine ( ) const
virtual

Set the seed for random number generator

◆ New()

template<class TVectorData >
static Pointer otb::VectorDataToRandomLineGenerator< TVectorData >::New ( )
static

Method for creation through the object factory.

◆ operator=()

template<class TVectorData >
void otb::VectorDataToRandomLineGenerator< TVectorData >::operator= ( const Self )
privatedelete

Set the seed for random number generator

◆ PrintSelf()

template<class TVectorData >
void otb::VectorDataToRandomLineGenerator< TVectorData >::PrintSelf ( std::ostream &  os,
itk::Indent  indent 
) const
overrideprotected

Set the seed for random number generator

Definition at line 41 of file otbVectorDataToRandomLineGenerator.hxx.

◆ RandomPointsGenerator()

template<class TVectorData >
VectorDataToRandomLineGenerator< TVectorData >::PointVectorType otb::VectorDataToRandomLineGenerator< TVectorData >::RandomPointsGenerator ( DataNodeType node)
protected

Set the seed for random number generator

Definition at line 60 of file otbVectorDataToRandomLineGenerator.hxx.

◆ SetInput()

template<class TVectorData >
void otb::VectorDataToRandomLineGenerator< TVectorData >::SetInput ( const VectorDataType vectorData)

Set the seed for random number generator

Definition at line 48 of file otbVectorDataToRandomLineGenerator.hxx.

◆ SetMaxLineSize()

template<class TVectorData >
virtual void otb::VectorDataToRandomLineGenerator< TVectorData >::SetMaxLineSize ( unsigned int  _arg)
virtual

Set the seed for random number generator

◆ SetMinLineSize()

template<class TVectorData >
virtual void otb::VectorDataToRandomLineGenerator< TVectorData >::SetMinLineSize ( unsigned int  _arg)
virtual

Set the seed for random number generator

◆ SetNumberOfOutputLine()

template<class TVectorData >
virtual void otb::VectorDataToRandomLineGenerator< TVectorData >::SetNumberOfOutputLine ( unsigned int  _arg)
virtual

Set the seed for random number generator

◆ SetSeed()

template<class TVectorData >
void otb::VectorDataToRandomLineGenerator< TVectorData >::SetSeed ( unsigned int  seed)
inline

Set the seed for random number generator

Definition at line 93 of file otbVectorDataToRandomLineGenerator.h.

Member Data Documentation

◆ m_CurrentID

template<class TVectorData >
unsigned int otb::VectorDataToRandomLineGenerator< TVectorData >::m_CurrentID
private

Set the seed for random number generator

Definition at line 129 of file otbVectorDataToRandomLineGenerator.h.

◆ m_MaxLineSize

template<class TVectorData >
unsigned int otb::VectorDataToRandomLineGenerator< TVectorData >::m_MaxLineSize
private

Set the seed for random number generator

Definition at line 128 of file otbVectorDataToRandomLineGenerator.h.

◆ m_MinLineSize

template<class TVectorData >
unsigned int otb::VectorDataToRandomLineGenerator< TVectorData >::m_MinLineSize
private

Set the seed for random number generator

Definition at line 127 of file otbVectorDataToRandomLineGenerator.h.

◆ m_NumberOfOutputLine

template<class TVectorData >
unsigned int otb::VectorDataToRandomLineGenerator< TVectorData >::m_NumberOfOutputLine
private

Set the seed for random number generator

Definition at line 126 of file otbVectorDataToRandomLineGenerator.h.

◆ m_RandomGenerator

template<class TVectorData >
RandomGeneratorType::Pointer otb::VectorDataToRandomLineGenerator< TVectorData >::m_RandomGenerator
private

Set the seed for random number generator

Definition at line 123 of file otbVectorDataToRandomLineGenerator.h.

Referenced by otb::VectorDataToRandomLineGenerator< TVectorData >::VectorDataToRandomLineGenerator().

◆ m_RandomSizeGenerator

template<class TVectorData >
RandomGeneratorType::Pointer otb::VectorDataToRandomLineGenerator< TVectorData >::m_RandomSizeGenerator
private

Set the seed for random number generator

Definition at line 124 of file otbVectorDataToRandomLineGenerator.h.

Referenced by otb::VectorDataToRandomLineGenerator< TVectorData >::VectorDataToRandomLineGenerator().


The documentation for this class was generated from the following files: