Orfeo ToolBox  4.2
Orfeo ToolBox is not a black box
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
otb::VectorDataToRandomLineGenerator< TVectorData > Class Template Reference

Produces a VectorData Containing Random Lines. More...

#include <otbVectorDataToRandomLineGenerator.h>

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

Public Types

typedef itk::SmartPointer
< const Self
ConstPointer
 
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 Self
ConstPointer
 
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
 
const VectorDataTypeGetInput () const
 
virtual unsigned int GetMaxLineSize () const
 
virtual unsigned int GetMinLineSize () const
 
virtual const char * GetNameOfClass () const
 
virtual unsigned int GetNumberOfOutputLine () const
 
void SetInput (const VectorDataType *)
 
virtual void SetMaxLineSize (unsigned int _arg)
 
virtual void SetMinLineSize (unsigned int _arg)
 
virtual void SetNumberOfOutputLine (unsigned int _arg)
 
void SetSeed (unsigned int seed)
 
- Public Member Functions inherited from otb::VectorDataSource< TVectorData >
virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual OutputVectorDataTypeGetOutput (void)
 
virtual OutputVectorDataTypeGetOutput (unsigned int idx)
 
virtual void GraftNthOutput (unsigned int idx, itk::DataObject *output)
 
virtual void GraftOutput (itk::DataObject *output)
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from otb::VectorDataSource< TVectorData >
static Pointer New ()
 

Protected Member Functions

 VectorDataToRandomLineGenerator ()
 
virtual ~VectorDataToRandomLineGenerator ()
 
void GenerateData (void)
 
void PrintSelf (std::ostream &os, itk::Indent indent) const
 
PointVectorType RandomPointsGenerator (DataNodeType *node)
 
- Protected Member Functions inherited from otb::VectorDataSource< TVectorData >
 VectorDataSource ()
 
virtual ~VectorDataSource ()
 
virtual void AllocateOutputs ()
 
void PrintSelf (std::ostream &os, itk::Indent indent) const
 

Private Member Functions

 VectorDataToRandomLineGenerator (const Self &)
 
std::string GetNextID ()
 
void operator= (const Self &)
 

Private Attributes

unsigned int m_CurrentID
 
unsigned int m_MaxLineSize
 
unsigned int m_MinLineSize
 
unsigned int m_NumberOfOutputLine
 
RandomGeneratorType::Pointer m_RandomGenerator
 
RandomGeneratorType::Pointer m_RandomSizeGenerator
 

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 43 of file otbVectorDataToRandomLineGenerator.h.

Member Typedef Documentation

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

Definition at line 51 of file otbVectorDataToRandomLineGenerator.h.

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

Definition at line 61 of file otbVectorDataToRandomLineGenerator.h.

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

Definition at line 64 of file otbVectorDataToRandomLineGenerator.h.

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

Definition at line 50 of file otbVectorDataToRandomLineGenerator.h.

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

Definition at line 63 of file otbVectorDataToRandomLineGenerator.h.

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

Definition at line 66 of file otbVectorDataToRandomLineGenerator.h.

Definition at line 70 of file otbVectorDataToRandomLineGenerator.h.

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

Definition at line 62 of file otbVectorDataToRandomLineGenerator.h.

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

Standard class typedefs

Definition at line 48 of file otbVectorDataToRandomLineGenerator.h.

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

Definition at line 49 of file otbVectorDataToRandomLineGenerator.h.

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

Definition at line 68 of file otbVectorDataToRandomLineGenerator.h.

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

Definition at line 60 of file otbVectorDataToRandomLineGenerator.h.

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

Definition at line 57 of file otbVectorDataToRandomLineGenerator.h.

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

Definition at line 65 of file otbVectorDataToRandomLineGenerator.h.

Constructor & Destructor Documentation

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

Definition at line 29 of file otbVectorDataToRandomLineGenerator.txx.

template<class TVectorData>
virtual otb::VectorDataToRandomLineGenerator< TVectorData >::~VectorDataToRandomLineGenerator ( )
inlineprotectedvirtual

Definition at line 94 of file otbVectorDataToRandomLineGenerator.h.

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

Member Function Documentation

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

Triggers the Computation of the sample list

Definition at line 116 of file otbVectorDataToRandomLineGenerator.txx.

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

template<class TVectorData >
const TVectorData * otb::VectorDataToRandomLineGenerator< TVectorData >::GetInput ( void  ) const

Definition at line 62 of file otbVectorDataToRandomLineGenerator.txx.

template<class TVectorData>
virtual unsigned int otb::VectorDataToRandomLineGenerator< TVectorData >::GetMaxLineSize ( ) const
virtual
template<class TVectorData>
virtual unsigned int otb::VectorDataToRandomLineGenerator< TVectorData >::GetMinLineSize ( ) const
virtual
template<class TVectorData>
virtual const char* otb::VectorDataToRandomLineGenerator< TVectorData >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from otb::VectorDataSource< TVectorData >.

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

Definition at line 106 of file otbVectorDataToRandomLineGenerator.h.

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

Method for creation through the object factory.

template<class TVectorData>
void otb::VectorDataToRandomLineGenerator< TVectorData >::operator= ( const Self )
private
template<class TVectorData >
void otb::VectorDataToRandomLineGenerator< TVectorData >::PrintSelf ( std::ostream &  os,
itk::Indent  indent 
) const
protected

Definition at line 45 of file otbVectorDataToRandomLineGenerator.txx.

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

Definition at line 71 of file otbVectorDataToRandomLineGenerator.txx.

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

Connects the VectorData from which the extend will be extracted.

Definition at line 54 of file otbVectorDataToRandomLineGenerator.txx.

template<class TVectorData>
virtual void otb::VectorDataToRandomLineGenerator< TVectorData >::SetMaxLineSize ( unsigned int  _arg)
virtual
template<class TVectorData>
virtual void otb::VectorDataToRandomLineGenerator< TVectorData >::SetMinLineSize ( unsigned int  _arg)
virtual
template<class TVectorData>
virtual void otb::VectorDataToRandomLineGenerator< TVectorData >::SetNumberOfOutputLine ( unsigned int  _arg)
virtual
template<class TVectorData>
void otb::VectorDataToRandomLineGenerator< TVectorData >::SetSeed ( unsigned int  seed)
inline

Set the seed for random number generator

Definition at line 86 of file otbVectorDataToRandomLineGenerator.h.

Member Data Documentation

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

Definition at line 119 of file otbVectorDataToRandomLineGenerator.h.

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

Definition at line 118 of file otbVectorDataToRandomLineGenerator.h.

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

Definition at line 117 of file otbVectorDataToRandomLineGenerator.h.

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

Definition at line 116 of file otbVectorDataToRandomLineGenerator.h.

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

Definition at line 113 of file otbVectorDataToRandomLineGenerator.h.

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

Definition at line 114 of file otbVectorDataToRandomLineGenerator.h.


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