te::mnt::CreateIsolines Class Reference

#include <CreateIsolinesCore.h>

Public Member Functions

std::vector< RasterBlockSizecalculateBlocks (unsigned int numRows, unsigned int numThreads)
 
bool connectLines (std::vector< te::gm::LineString * > vecSegments, std::vector< te::gm::LineString * > &lsOut)
 
bool connectLines1 (std::vector< te::gm::LineString * > vecSegments, double scale, std::vector< te::gm::LineString * > &lsOut)
 
 CreateIsolines ()
 Default constructor. More...
 
std::unique_ptr< te::rst::RastergetPrepareRaster ()
 
void rstMemoryBlock (std::unique_ptr< te::rst::Raster > raster, std::vector< RasterBlockSize > vecBlocks, std::vector< GenerateSegmentsParams * > &vecGenerateParams)
 
bool run (std::unique_ptr< te::rst::Raster > raster)
 
void setInput (te::da::DataSourcePtr inRasterDsrc, std::string inRasterName, std::unique_ptr< te::da::DataSetType > inDsetType)
 
void setOutput (te::da::DataSourcePtr outDsrc, std::string dsname)
 
void setParams (std::vector< double > &nval, std::vector< double > &gval, double vmax, double vmin, double dummy, bool hasDummy)
 
 ~CreateIsolines ()
 Virtual destructor. More...
 

Static Public Member Functions

static bool connectLines (std::vector< te::gm::LineString * > vec, int srid, std::vector< te::gm::LineString * > &lsOut)
 
static bool connectLinesThreaded (ConnectLinesParams *params)
 
static void firstCaseSpecial (double quota, double &lineSupLeft, double &lineSupRigth, double &lineInfLeft, double &lineInfRigth)
 
static bool generateSegments (std::unique_ptr< te::rst::Raster > raster, std::vector< double > nvals, std::vector< std::vector< te::gm::LineString * > > &vecSegments)
 
static bool generateSegmentsThreaded (GenerateSegmentsParams *params)
 
static void interpolacao (int direction, te::gm::LineString *line, double quota, double coord, double c_inf, double c_sup, double z_inf, double z_sup)
 
static void segments (int idQuota, std::unique_ptr< te::gm::LineString > line, double quota, double ylg_sup, double xlg_ant, double xlg_pos, double ylg_inf, double &lineSupLeft, double &lineSupRigth, double &lineInfLeft, double &lineInfRigth, std::vector< std::vector< te::gm::LineString * > > &vecSegments)
 

Protected Attributes

std::vector< double > m_guidevalues
 
te::da::DataSourcePtr m_inRasterDsrc
 
std::unique_ptr< te::da::DataSetTypem_inRasterDsType
 
std::string m_inRasterName
 
std::string m_outDsetName
 
te::da::DataSourcePtr m_outDsrc
 
int m_srid
 
std::vector< double > m_values
 

Static Protected Attributes

static double m_dummy
 
static bool m_hasDummy
 
static double m_vmax
 
static double m_vmin
 

Detailed Description

Definition at line 105 of file CreateIsolinesCore.h.

Constructor & Destructor Documentation

◆ CreateIsolines()

te::mnt::CreateIsolines::CreateIsolines ( )

Default constructor.

◆ ~CreateIsolines()

te::mnt::CreateIsolines::~CreateIsolines ( )

Virtual destructor.

Member Function Documentation

◆ calculateBlocks()

std::vector<RasterBlockSize> te::mnt::CreateIsolines::calculateBlocks ( unsigned int  numRows,
unsigned int  numThreads 
)

◆ connectLines() [1/2]

static bool te::mnt::CreateIsolines::connectLines ( std::vector< te::gm::LineString * >  vec,
int  srid,
std::vector< te::gm::LineString * > &  lsOut 
)
static

◆ connectLines() [2/2]

bool te::mnt::CreateIsolines::connectLines ( std::vector< te::gm::LineString * >  vecSegments,
std::vector< te::gm::LineString * > &  lsOut 
)

◆ connectLines1()

bool te::mnt::CreateIsolines::connectLines1 ( std::vector< te::gm::LineString * >  vecSegments,
double  scale,
std::vector< te::gm::LineString * > &  lsOut 
)

◆ connectLinesThreaded()

static bool te::mnt::CreateIsolines::connectLinesThreaded ( ConnectLinesParams params)
static

◆ firstCaseSpecial()

static void te::mnt::CreateIsolines::firstCaseSpecial ( double  quota,
double &  lineSupLeft,
double &  lineSupRigth,
double &  lineInfLeft,
double &  lineInfRigth 
)
static

◆ generateSegments()

static bool te::mnt::CreateIsolines::generateSegments ( std::unique_ptr< te::rst::Raster raster,
std::vector< double >  nvals,
std::vector< std::vector< te::gm::LineString * > > &  vecSegments 
)
static

◆ generateSegmentsThreaded()

static bool te::mnt::CreateIsolines::generateSegmentsThreaded ( GenerateSegmentsParams params)
static

◆ getPrepareRaster()

std::unique_ptr<te::rst::Raster> te::mnt::CreateIsolines::getPrepareRaster ( )

◆ interpolacao()

static void te::mnt::CreateIsolines::interpolacao ( int  direction,
te::gm::LineString line,
double  quota,
double  coord,
double  c_inf,
double  c_sup,
double  z_inf,
double  z_sup 
)
static

◆ rstMemoryBlock()

void te::mnt::CreateIsolines::rstMemoryBlock ( std::unique_ptr< te::rst::Raster raster,
std::vector< RasterBlockSize vecBlocks,
std::vector< GenerateSegmentsParams * > &  vecGenerateParams 
)

◆ run()

bool te::mnt::CreateIsolines::run ( std::unique_ptr< te::rst::Raster raster)

◆ segments()

static void te::mnt::CreateIsolines::segments ( int  idQuota,
std::unique_ptr< te::gm::LineString line,
double  quota,
double  ylg_sup,
double  xlg_ant,
double  xlg_pos,
double  ylg_inf,
double &  lineSupLeft,
double &  lineSupRigth,
double &  lineInfLeft,
double &  lineInfRigth,
std::vector< std::vector< te::gm::LineString * > > &  vecSegments 
)
static

◆ setInput()

void te::mnt::CreateIsolines::setInput ( te::da::DataSourcePtr  inRasterDsrc,
std::string  inRasterName,
std::unique_ptr< te::da::DataSetType inDsetType 
)

◆ setOutput()

void te::mnt::CreateIsolines::setOutput ( te::da::DataSourcePtr  outDsrc,
std::string  dsname 
)

◆ setParams()

void te::mnt::CreateIsolines::setParams ( std::vector< double > &  nval,
std::vector< double > &  gval,
double  vmax,
double  vmin,
double  dummy,
bool  hasDummy 
)

Member Data Documentation

◆ m_dummy

double te::mnt::CreateIsolines::m_dummy
staticprotected

Definition at line 173 of file CreateIsolinesCore.h.

◆ m_guidevalues

std::vector<double> te::mnt::CreateIsolines::m_guidevalues
protected

Definition at line 168 of file CreateIsolinesCore.h.

◆ m_hasDummy

bool te::mnt::CreateIsolines::m_hasDummy
staticprotected

Definition at line 174 of file CreateIsolinesCore.h.

◆ m_inRasterDsrc

te::da::DataSourcePtr te::mnt::CreateIsolines::m_inRasterDsrc
protected

Definition at line 160 of file CreateIsolinesCore.h.

◆ m_inRasterDsType

std::unique_ptr<te::da::DataSetType> te::mnt::CreateIsolines::m_inRasterDsType
protected

Definition at line 162 of file CreateIsolinesCore.h.

◆ m_inRasterName

std::string te::mnt::CreateIsolines::m_inRasterName
protected

Definition at line 161 of file CreateIsolinesCore.h.

◆ m_outDsetName

std::string te::mnt::CreateIsolines::m_outDsetName
protected

Definition at line 165 of file CreateIsolinesCore.h.

◆ m_outDsrc

te::da::DataSourcePtr te::mnt::CreateIsolines::m_outDsrc
protected

Definition at line 164 of file CreateIsolinesCore.h.

◆ m_srid

int te::mnt::CreateIsolines::m_srid
protected

Definition at line 169 of file CreateIsolinesCore.h.

◆ m_values

std::vector<double> te::mnt::CreateIsolines::m_values
protected

Definition at line 167 of file CreateIsolinesCore.h.

◆ m_vmax

double te::mnt::CreateIsolines::m_vmax
staticprotected

Definition at line 171 of file CreateIsolinesCore.h.

◆ m_vmin

double te::mnt::CreateIsolines::m_vmin
staticprotected

Definition at line 172 of file CreateIsolinesCore.h.


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