te::sa::SamplePointsGeneratorRandom Class Reference

Class to generate samples points using random strategy. More...

#include <SamplePointsGeneratorRandom.h>

Inheritance diagram for te::sa::SamplePointsGeneratorRandom:
te::sa::SamplePointsGeneratorAbstract

Public Member Functions

void execute ()
 Function to execute the kernel operation. More...
 
 SamplePointsGeneratorRandom ()
 Default constructor. More...
 
void setEnvelope (te::gm::Envelope env)
 
void setNumberOfPoints (int nPoints)
 
void setOutputDataSetName (std::string dataSetName)
 
void setOutputDataSource (te::da::DataSourcePtr ds)
 
void setSRID (int srid)
 
virtual ~SamplePointsGeneratorRandom ()
 Virtual destructor. More...
 

Protected Member Functions

virtual std::auto_ptr< te::da::DataSetTypecreateDataSetType ()
 
virtual std::auto_ptr< te::mem::DataSetgenerateSamples (te::da::DataSetType *dsType)
 
te::gm::PointgetPoint (const te::gm::Envelope *env)
 
void saveDataSet (te::mem::DataSet *dataSet, te::da::DataSetType *dsType)
 

Protected Attributes

boost::random::uniform_real_distribution m_distReal
 
te::da::DataSourcePtr m_ds
 Pointer to the output datasource. More...
 
te::gm::Envelope m_env
 Attribute used to restrict the area to generate the samples. More...
 
boost::random::mt19937 m_gen
 
int m_nPoints
 Attribute used to define the number of points to be generated. More...
 
std::string m_outputDataSetName
 Attribute that defines the output dataset name. More...
 
int m_srid
 Attribute with spatial reference information. More...
 
te::sa::SamplePointsGeneratorType m_type
 Generator Type. More...
 

Detailed Description

Class to generate samples points using random strategy.

Definition at line 51 of file SamplePointsGeneratorRandom.h.

Constructor & Destructor Documentation

te::sa::SamplePointsGeneratorRandom::SamplePointsGeneratorRandom ( )

Default constructor.

virtual te::sa::SamplePointsGeneratorRandom::~SamplePointsGeneratorRandom ( )
virtual

Virtual destructor.

Member Function Documentation

virtual std::auto_ptr<te::da::DataSetType> te::sa::SamplePointsGeneratorRandom::createDataSetType ( )
protectedvirtual

Function used to create the output dataset type

Implements te::sa::SamplePointsGeneratorAbstract.

void te::sa::SamplePointsGeneratorAbstract::execute ( )
inherited

Function to execute the kernel operation.

virtual std::auto_ptr<te::mem::DataSet> te::sa::SamplePointsGeneratorRandom::generateSamples ( te::da::DataSetType dsType)
protectedvirtual

Function used to create the output data

Implements te::sa::SamplePointsGeneratorAbstract.

te::gm::Point* te::sa::SamplePointsGeneratorAbstract::getPoint ( const te::gm::Envelope env)
protectedinherited

Function used to generate a randon point inside a defined envelope

void te::sa::SamplePointsGeneratorAbstract::saveDataSet ( te::mem::DataSet dataSet,
te::da::DataSetType dsType 
)
protectedinherited

Function used to save the output dataset

void te::sa::SamplePointsGeneratorAbstract::setEnvelope ( te::gm::Envelope  env)
inherited

Function used to set the envelope parameter

void te::sa::SamplePointsGeneratorRandom::setNumberOfPoints ( int  nPoints)

Function used to set the number of points to be generated

void te::sa::SamplePointsGeneratorAbstract::setOutputDataSetName ( std::string  dataSetName)
inherited

Function used to set the output dataset name parameter

void te::sa::SamplePointsGeneratorAbstract::setOutputDataSource ( te::da::DataSourcePtr  ds)
inherited

Function used to set the output data source parameter

void te::sa::SamplePointsGeneratorAbstract::setSRID ( int  srid)
inherited

Function used to set the envelope parameter

Member Data Documentation

boost::random::uniform_real_distribution te::sa::SamplePointsGeneratorAbstract::m_distReal
protectedinherited

Definition at line 114 of file SamplePointsGeneratorAbstract.h.

te::da::DataSourcePtr te::sa::SamplePointsGeneratorAbstract::m_ds
protectedinherited

Pointer to the output datasource.

Definition at line 106 of file SamplePointsGeneratorAbstract.h.

te::gm::Envelope te::sa::SamplePointsGeneratorAbstract::m_env
protectedinherited

Attribute used to restrict the area to generate the samples.

Definition at line 104 of file SamplePointsGeneratorAbstract.h.

boost::random::mt19937 te::sa::SamplePointsGeneratorAbstract::m_gen
protectedinherited

Definition at line 112 of file SamplePointsGeneratorAbstract.h.

int te::sa::SamplePointsGeneratorRandom::m_nPoints
protected

Attribute used to define the number of points to be generated.

Definition at line 76 of file SamplePointsGeneratorRandom.h.

std::string te::sa::SamplePointsGeneratorAbstract::m_outputDataSetName
protectedinherited

Attribute that defines the output dataset name.

Definition at line 108 of file SamplePointsGeneratorAbstract.h.

int te::sa::SamplePointsGeneratorAbstract::m_srid
protectedinherited

Attribute with spatial reference information.

Definition at line 102 of file SamplePointsGeneratorAbstract.h.

te::sa::SamplePointsGeneratorType te::sa::SamplePointsGeneratorAbstract::m_type
protectedinherited

Generator Type.

Definition at line 110 of file SamplePointsGeneratorAbstract.h.


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