Virtual class to generate samples points. More...
#include <SamplePointsGeneratorAbstract.h>
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::DataSetType > | createDataSetType ()=0 |
virtual std::auto_ptr< te::mem::DataSet > | generateSamples (te::da::DataSetType *dsType)=0 |
te::gm::Point * | getPoint (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... | |
Virtual class to generate samples points.
Definition at line 59 of file SamplePointsGeneratorAbstract.h.
te::sa::SamplePointsGeneratorAbstract::SamplePointsGeneratorAbstract | ( | ) |
Default constructor.
|
virtual |
Virtual destructor.
|
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.
|
protectedpure virtual |
Function used to create the output data
Implemented in te::sa::SamplePointsGeneratorStratified, and te::sa::SamplePointsGeneratorRandom.
|
protected |
Function used to generate a randon point inside a defined envelope
|
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
|
protected |
Definition at line 114 of file SamplePointsGeneratorAbstract.h.
|
protected |
Pointer to the output datasource.
Definition at line 106 of file SamplePointsGeneratorAbstract.h.
|
protected |
Attribute used to restrict the area to generate the samples.
Definition at line 104 of file SamplePointsGeneratorAbstract.h.
|
protected |
Definition at line 112 of file SamplePointsGeneratorAbstract.h.
|
protected |
Attribute that defines the output dataset name.
Definition at line 108 of file SamplePointsGeneratorAbstract.h.
|
protected |
Attribute with spatial reference information.
Definition at line 102 of file SamplePointsGeneratorAbstract.h.
|
protected |
Generator Type.
Definition at line 110 of file SamplePointsGeneratorAbstract.h.