te::sa::SamplePointsGeneratorAbstract Class Referenceabstract

Virtual class to generate samples points. More...

#include <SamplePointsGeneratorAbstract.h>

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

Public Member Functions

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

Protected Member Functions

virtual std::auto_ptr< te::da::DataSetTypecreateDataSetType ()=0
 
virtual std::auto_ptr< te::mem::DataSetgenerateSamples (te::da::DataSetType *dsType)=0
 
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
 
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

Virtual class to generate samples points.

Definition at line 59 of file SamplePointsGeneratorAbstract.h.

Constructor & Destructor Documentation

te::sa::SamplePointsGeneratorAbstract::SamplePointsGeneratorAbstract ( )

Default constructor.

virtual te::sa::SamplePointsGeneratorAbstract::~SamplePointsGeneratorAbstract ( )
virtual

Virtual destructor.

Member Function Documentation

virtual std::auto_ptr<te::da::DataSetType> te::sa::SamplePointsGeneratorAbstract::createDataSetType ( )
protectedpure virtual

Function used to create the output dataset type

Implemented in te::sa::SamplePointsGeneratorStratified, and te::sa::SamplePointsGeneratorRandom.

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

Function to execute the kernel operation.

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

Function used to create the output data

Implemented in te::sa::SamplePointsGeneratorStratified, and te::sa::SamplePointsGeneratorRandom.

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

Function used to generate a randon point inside a defined envelope

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

Function used to save the output dataset

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

Function used to set the envelope parameter

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

Function used to set the output dataset name parameter

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

Function used to set the output data source parameter

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

Function used to set the envelope parameter

Member Data Documentation

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

Definition at line 114 of file SamplePointsGeneratorAbstract.h.

te::da::DataSourcePtr te::sa::SamplePointsGeneratorAbstract::m_ds
protected

Pointer to the output datasource.

Definition at line 106 of file SamplePointsGeneratorAbstract.h.

te::gm::Envelope te::sa::SamplePointsGeneratorAbstract::m_env
protected

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
protected

Definition at line 112 of file SamplePointsGeneratorAbstract.h.

std::string te::sa::SamplePointsGeneratorAbstract::m_outputDataSetName
protected

Attribute that defines the output dataset name.

Definition at line 108 of file SamplePointsGeneratorAbstract.h.

int te::sa::SamplePointsGeneratorAbstract::m_srid
protected

Attribute with spatial reference information.

Definition at line 102 of file SamplePointsGeneratorAbstract.h.

te::sa::SamplePointsGeneratorType te::sa::SamplePointsGeneratorAbstract::m_type
protected

Generator Type.

Definition at line 110 of file SamplePointsGeneratorAbstract.h.


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