Go to the documentation of this file.
28 #ifndef __TERRALIB_SA_INTERNAL_SAMPLEPOINTSGENERATORABSTRACT_H
29 #define __TERRALIB_SA_INTERNAL_SAMPLEPOINTSGENERATORABSTRACT_H
32 #include "../../dataaccess/datasource/DataSource.h"
33 #include "../../geometry/Envelope.h"
34 #include "../Config.h"
41 #include <boost/random/mersenne_twister.hpp>
42 #include <boost/random/uniform_real_distribution.hpp>
47 namespace da {
class DataSetType; }
48 namespace gm {
class Point; }
49 namespace mem {
class DataSet; }
120 #endif // __TERRALIB_SA_INTERNAL_SAMPLEPOINTSGENERATORABSTRACT_H
An Envelope defines a 2D rectangular region.
boost::random::mt19937 m_gen
void saveDataSet(te::mem::DataSet *dataSet, te::da::DataSetType *dsType)
te::da::DataSourcePtr m_ds
Pointer to the output datasource.
boost::random::uniform_real_distribution m_distReal
int m_srid
Attribute with spatial reference information.
std::string m_outputDataSetName
Attribute that defines the output dataset name.
void setOutputDataSource(te::da::DataSourcePtr ds)
virtual std::unique_ptr< te::mem::DataSet > generateSamples(te::da::DataSetType *dsType)=0
#define TESAEXPORT
You can use this macro in order to export/import classes and functions from this module.
te::gm::Envelope m_env
Attribute used to restrict the area to generate the samples.
void setOutputDataSetName(std::string dataSetName)
Virtual class to generate samples points.
void execute()
Function to execute the kernel operation.
te::gm::Point * getPoint(const te::gm::Envelope *env)
virtual ~SamplePointsGeneratorAbstract()
Virtual destructor.
SamplePointsGeneratorType
Generator types used to create sample of points.
virtual std::unique_ptr< te::da::DataSetType > createDataSetType()=0
boost::shared_ptr< DataSource > DataSourcePtr
A class that models the description of a dataset.
void setEnvelope(te::gm::Envelope env)
A point with x and y coordinate values.
SamplePointsGeneratorAbstract()
Default constructor.
Implementation of a random-access dataset class for the TerraLib In-Memory Data Access driver.
te::sa::SamplePointsGeneratorType m_type
Generator Type.