OTB  5.0.0
Orfeo Toolbox
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

#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
itk::ProcessObject::DataObjectPointerArraySizeType 
DataObjectPointerArraySizeType
 
typedef TVectorData::Pointer OutputVectorDataPointer
 
typedef TVectorData OutputVectorDataType
 
typedef itk::SmartPointer< SelfPointer
 
typedef VectorDataSource Self
 
typedef itk::ProcessObject Superclass
 
- Public Types inherited from itk::ProcessObject
typedef SmartPointer< const SelfConstPointer
 
typedef
DataObject::DataObjectIdentifierType 
DataObjectIdentifierType
 
typedef DataObject::Pointer DataObjectPointer
 
typedef std::vector
< DataObjectPointer
DataObjectPointerArray
 
typedef
DataObjectPointerArray::size_type 
DataObjectPointerArraySizeType
 
typedef std::vector
< DataObjectIdentifierType
NameArray
 
typedef SmartPointer< SelfPointer
 
typedef ProcessObject Self
 
typedef Object Superclass
 
- Public Types inherited from itk::Object
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef Object Self
 
typedef LightObject Superclass
 
- Public Types inherited from itk::LightObject
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef LightObject Self
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual unsigned int GetMaxLineSize () const
 
virtual unsigned int GetMinLineSize () const
 
virtual const char * GetNameOfClass () const
 
virtual unsigned int GetNumberOfOutputLine () const
 
virtual void SetMaxLineSize (unsigned int _arg)
 
virtual void SetMinLineSize (unsigned int _arg)
 
virtual void SetNumberOfOutputLine (unsigned int _arg)
 
void SetInput (const VectorDataType *)
 
const VectorDataTypeGetInput () const
 
void SetSeed (unsigned int seed)
 
- Public Member Functions inherited from otb::VectorDataSource< TVectorData >
virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual void GraftNthOutput (unsigned int idx, itk::DataObject *output)
 
virtual void GraftOutput (itk::DataObject *output)
 
virtual OutputVectorDataTypeGetOutput (void)
 
virtual OutputVectorDataTypeGetOutput (DataObjectPointerArraySizeType idx)
 
- Public Member Functions inherited from itk::ProcessObject
virtual void AbortGenerateDataOff ()
 
virtual void AbortGenerateDataOn ()
 
virtual void EnlargeOutputRequestedRegion (DataObject *)
 
virtual const bool & GetAbortGenerateData () const
 
DataObjectPointerArray GetIndexedInputs ()
 
DataObjectPointerArray GetIndexedOutputs ()
 
NameArray GetInputNames () const
 
DataObjectPointerArray GetInputs ()
 
MultiThreader * GetMultiThreader () const
 
DataObjectPointerArraySizeType GetNumberOfIndexedInputs () const
 
DataObjectPointerArraySizeType GetNumberOfIndexedOutputs () const
 
DataObjectPointerArraySizeType GetNumberOfInputs () const
 
DataObjectPointerArraySizeType GetNumberOfOutputs () const
 
virtual const ThreadIdTypeGetNumberOfThreads () const
 
virtual
DataObjectPointerArraySizeType 
GetNumberOfValidRequiredInputs () const
 
NameArray GetOutputNames () const
 
DataObjectPointerArray GetOutputs ()
 
virtual const float & GetProgress () const
 
virtual const bool & GetReleaseDataBeforeUpdateFlag () const
 
virtual bool GetReleaseDataFlag () const
 
NameArray GetRequiredInputNames () const
 
bool HasInput (const DataObjectIdentifierType &key) const
 
bool HasOutput (const DataObjectIdentifierType &key) const
 
virtual DataObjectPointer MakeOutput (const DataObjectIdentifierType &)
 
virtual DataObjectPointer MakeOutput (DataObjectPointerArraySizeType idx)
 
virtual void PrepareOutputs ()
 
virtual void PropagateRequestedRegion (DataObject *output)
 
virtual void ReleaseDataBeforeUpdateFlagOff ()
 
virtual void ReleaseDataBeforeUpdateFlagOn ()
 
void ReleaseDataFlagOff ()
 
void ReleaseDataFlagOn ()
 
virtual void ResetPipeline ()
 
virtual void SetAbortGenerateData (bool _arg)
 
virtual void SetNumberOfThreads (ThreadIdType _arg)
 
void SetProgress (float progress)
 
virtual void SetReleaseDataBeforeUpdateFlag (bool _arg)
 
virtual void SetReleaseDataFlag (bool flag)
 
virtual void Update ()
 
virtual void UpdateLargestPossibleRegion ()
 
virtual void UpdateOutputData (DataObject *output)
 
virtual void UpdateOutputInformation ()
 
void UpdateProgress (float progress)
 
- Public Member Functions inherited from itk::Object
unsigned long AddObserver (const EventObject &event, Command *)
 
unsigned long AddObserver (const EventObject &event, Command *) const
 
virtual void DebugOff () const
 
virtual void DebugOn () const
 
CommandGetCommand (unsigned long tag)
 
bool GetDebug () const
 
const MetaDataDictionaryGetMetaDataDictionary (void) const
 
MetaDataDictionaryGetMetaDataDictionary (void)
 
virtual ModifiedTimeType GetMTime () const
 
virtual const std::string & GetObjectName () const
 
virtual const TimeStampGetTimeStamp () const
 
bool HasObserver (const EventObject &event) const
 
void InvokeEvent (const EventObject &)
 
void InvokeEvent (const EventObject &) const
 
virtual void Modified () const
 
virtual void Register () const ITK_OVERRIDE
 
void RemoveAllObservers ()
 
void RemoveObserver (unsigned long tag)
 
void SetDebug (bool debugFlag) const
 
void SetMetaDataDictionary (const MetaDataDictionary &rhs)
 
virtual void SetObjectName (std::string _arg)
 
virtual void SetReferenceCount (int) ITK_OVERRIDE
 
virtual void UnRegister () const ITK_OVERRIDE
 
- Public Member Functions inherited from itk::LightObject
virtual void Delete ()
 
virtual int GetReferenceCount () const
 
 itkCloneMacro (Self)
 
void Print (std::ostream &os, Indent indent=0) const
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from otb::VectorDataSource< TVectorData >
static Pointer New ()
 
- Static Public Member Functions inherited from itk::Object
static bool GetGlobalWarningDisplay ()
 
static void GlobalWarningDisplayOff ()
 
static void GlobalWarningDisplayOn ()
 
static Pointer New ()
 
static void SetGlobalWarningDisplay (bool flag)
 
- Static Public Member Functions inherited from itk::LightObject
static void BreakOnError ()
 
static Pointer New ()
 

Protected Member Functions

void GenerateData (void)
 
void PrintSelf (std::ostream &os, itk::Indent indent) const
 
PointVectorType RandomPointsGenerator (DataNodeType *node)
 
 VectorDataToRandomLineGenerator ()
 
virtual ~VectorDataToRandomLineGenerator ()
 
- Protected Member Functions inherited from otb::VectorDataSource< TVectorData >
virtual void AllocateOutputs ()
 
void PrintSelf (std::ostream &os, itk::Indent indent) const
 
 VectorDataSource ()
 
virtual ~VectorDataSource ()
 
- Protected Member Functions inherited from itk::ProcessObject
virtual void AddInput (DataObject *input)
 
virtual void AddOutput (DataObject *output)
 
bool AddRequiredInputName (const DataObjectIdentifierType &)
 
bool AddRequiredInputName (const DataObjectIdentifierType &, DataObjectPointerArraySizeType idx)
 
virtual void CacheInputReleaseDataFlags ()
 
virtual void GenerateInputRequestedRegion ()
 
virtual void GenerateOutputInformation ()
 
virtual void GenerateOutputRequestedRegion (DataObject *output)
 
DataObjectGetInput (const DataObjectIdentifierType &key)
 
const DataObjectGetInput (const DataObjectIdentifierType &key) const
 
DataObjectGetInput (DataObjectPointerArraySizeType idx)
 
const DataObjectGetInput (DataObjectPointerArraySizeType idx) const
 
virtual const
DataObjectPointerArraySizeType
GetNumberOfRequiredInputs () const
 
virtual const
DataObjectPointerArraySizeType
GetNumberOfRequiredOutputs () const
 
DataObjectGetOutput (const DataObjectIdentifierType &key)
 
const DataObjectGetOutput (const DataObjectIdentifierType &key) const
 
DataObjectGetOutput (DataObjectPointerArraySizeType idx)
 
const DataObjectGetOutput (DataObjectPointerArraySizeType idx) const
 
DataObjectGetPrimaryInput ()
 
const DataObjectGetPrimaryInput () const
 
virtual const char * GetPrimaryInputName (void) const
 
DataObjectGetPrimaryOutput ()
 
const DataObjectGetPrimaryOutput () const
 
virtual const char * GetPrimaryOutputName (void) const
 
bool IsIndexedInputName (const DataObjectIdentifierType &) const
 
bool IsIndexedOutputName (const DataObjectIdentifierType &) const
 
bool IsRequiredInputName (const DataObjectIdentifierType &) const
 
 itkLegacyMacro (virtual void RemoveOutput(DataObject *output))
 
 itkLegacyMacro (void SetNumberOfOutputs(DataObjectPointerArraySizeType num))
 
 itkLegacyMacro (virtual void RemoveInput(DataObject *input))
 
 itkLegacyMacro (void SetNumberOfInputs(DataObjectPointerArraySizeType num))
 
DataObjectPointerArraySizeType MakeIndexFromInputName (const DataObjectIdentifierType &name) const
 
DataObjectPointerArraySizeType MakeIndexFromOutputName (const DataObjectIdentifierType &name) const
 
DataObjectIdentifierType MakeNameFromInputIndex (DataObjectPointerArraySizeType idx) const
 
DataObjectIdentifierType MakeNameFromOutputIndex (DataObjectPointerArraySizeType idx) const
 
virtual void PopBackInput ()
 
virtual void PopFrontInput ()
 
 ProcessObject ()
 
virtual void PropagateResetPipeline ()
 
virtual void PushBackInput (const DataObject *input)
 
virtual void PushFrontInput (const DataObject *input)
 
virtual void ReleaseInputs ()
 
virtual void RemoveInput (const DataObjectIdentifierType &key)
 
virtual void RemoveInput (DataObjectPointerArraySizeType)
 
virtual void RemoveOutput (const DataObjectIdentifierType &key)
 
virtual void RemoveOutput (DataObjectPointerArraySizeType idx)
 
bool RemoveRequiredInputName (const DataObjectIdentifierType &)
 
virtual void RestoreInputReleaseDataFlags ()
 
virtual void SetInput (const DataObjectIdentifierType &key, DataObject *input)
 
virtual void SetNthInput (DataObjectPointerArraySizeType num, DataObject *input)
 
virtual void SetNthOutput (DataObjectPointerArraySizeType num, DataObject *output)
 
void SetNumberOfIndexedInputs (DataObjectPointerArraySizeType num)
 
void SetNumberOfIndexedOutputs (DataObjectPointerArraySizeType num)
 
virtual void SetNumberOfRequiredInputs (DataObjectPointerArraySizeType)
 
virtual void SetNumberOfRequiredOutputs (DataObjectPointerArraySizeType _arg)
 
virtual void SetOutput (const DataObjectIdentifierType &key, DataObject *output)
 
virtual void SetPrimaryInput (DataObject *input)
 
virtual void SetPrimaryInputName (const DataObjectIdentifierType &key)
 
virtual void SetPrimaryOutput (DataObject *output)
 
virtual void SetPrimaryOutputName (const DataObjectIdentifierType &key)
 
void SetRequiredInputNames (const NameArray &)
 
virtual void VerifyInputInformation ()
 
virtual void VerifyPreconditions ()
 
 ~ProcessObject ()
 
- Protected Member Functions inherited from itk::Object
 Object ()
 
bool PrintObservers (std::ostream &os, Indent indent) const
 
virtual void SetTimeStamp (const TimeStamp &time)
 
virtual ~Object ()
 
- Protected Member Functions inherited from itk::LightObject
virtual LightObject::Pointer InternalClone () const
 
 LightObject ()
 
virtual void PrintHeader (std::ostream &os, Indent indent) const
 
virtual void PrintTrailer (std::ostream &os, Indent indent) const
 
virtual ~LightObject ()
 

Private Member Functions

std::string GetNextID ()
 
void operator= (const Self &)
 
 VectorDataToRandomLineGenerator (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
 

Additional Inherited Members

- Protected Types inherited from itk::LightObject
typedef int InternalReferenceCountType
 
- Protected Attributes inherited from itk::ProcessObject
TimeStamp m_OutputInformationMTime
 
bool m_Updating
 
- Protected Attributes inherited from itk::LightObject
InternalReferenceCountType m_ReferenceCount
 
SimpleFastMutexLock m_ReferenceCountLock
 

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

Member Typedef Documentation

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

Definition at line 53 of file otbVectorDataToRandomLineGenerator.h.

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

Definition at line 63 of file otbVectorDataToRandomLineGenerator.h.

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

Definition at line 66 of file otbVectorDataToRandomLineGenerator.h.

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

Definition at line 52 of file otbVectorDataToRandomLineGenerator.h.

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

Definition at line 65 of file otbVectorDataToRandomLineGenerator.h.

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

Definition at line 68 of file otbVectorDataToRandomLineGenerator.h.

Definition at line 72 of file otbVectorDataToRandomLineGenerator.h.

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

Definition at line 64 of file otbVectorDataToRandomLineGenerator.h.

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

Standard class typedefs

Definition at line 50 of file otbVectorDataToRandomLineGenerator.h.

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

Definition at line 51 of file otbVectorDataToRandomLineGenerator.h.

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

Definition at line 70 of file otbVectorDataToRandomLineGenerator.h.

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

Definition at line 62 of file otbVectorDataToRandomLineGenerator.h.

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

Definition at line 59 of file otbVectorDataToRandomLineGenerator.h.

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

Definition at line 67 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 99 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
virtual

Reimplemented from itk::Object.

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

Triggers the Computation of the sample list

Reimplemented from itk::ProcessObject.

Definition at line 116 of file otbVectorDataToRandomLineGenerator.txx.

References otb::DOCUMENT, otb::FEATURE_LINE, and itk::TreeIteratorBase< TTreeType >::GoToBegin().

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 111 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
protectedvirtual

Reimplemented from itk::ProcessObject.

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)

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

Member Data Documentation

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

Definition at line 124 of file otbVectorDataToRandomLineGenerator.h.

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

Definition at line 123 of file otbVectorDataToRandomLineGenerator.h.

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

Definition at line 122 of file otbVectorDataToRandomLineGenerator.h.

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

Definition at line 121 of file otbVectorDataToRandomLineGenerator.h.

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

Definition at line 118 of file otbVectorDataToRandomLineGenerator.h.

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

Definition at line 119 of file otbVectorDataToRandomLineGenerator.h.


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