All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
te::tools::rastermanager::Utils Class Reference

Class with help methods for the application. More...

#include <Utils.h>

Static Public Member Functions

static bool checkInputPath (std::string inputPath, std::string &errorMessage)
 Check input raster path. More...
 
static bool checkOutputPath (std::string outputPath, std::string &errorMessage)
 Check output raster path. More...
 
static bool getRaster (std::string path, te::rst::Raster *&raster, std::string &errorMessage)
 Get a raster based in the path. More...
 
static bool loadModules (std::string &errorMessage)
 Load Terralib modules. More...
 

Detailed Description

Class with help methods for the application.

Definition at line 49 of file Utils.h.

Member Function Documentation

bool Utils::checkInputPath ( std::string  inputPath,
std::string &  errorMessage 
)
static

Check input raster path.

Parameters
inputPathString with the input raster path to check
errorMessageString that receive methods errors description
Returns
True if successfully

Definition at line 41 of file Utils.cpp.

Referenced by te::tools::rastermanager::RasterManager::init().

bool Utils::checkOutputPath ( std::string  outputPath,
std::string &  errorMessage 
)
static

Check output raster path.

Parameters
outputPathString with the output raster path to check
errorMessageString that receive methods errors description
Returns
True if successfully

Definition at line 71 of file Utils.cpp.

Referenced by te::tools::rastermanager::RasterManager::changeResolution(), te::tools::rastermanager::RasterManager::copyRaster(), te::tools::rastermanager::RasterManager::reproject(), and te::tools::rastermanager::RasterManager::trim().

bool Utils::getRaster ( std::string  path,
te::rst::Raster *&  raster,
std::string &  errorMessage 
)
static

Get a raster based in the path.

Parameters
pathString with the input raster path
rasterRaster pointer reference that gives the raster for the caller
errorMessageString that receive methods errors description
Returns
True if successfully

Definition at line 93 of file Utils.cpp.

References te::rst::RasterFactory::open().

Referenced by te::tools::rastermanager::RasterManager::changeResolution(), te::tools::rastermanager::RasterManager::convert(), te::tools::rastermanager::RasterManager::copyRaster(), te::tools::rastermanager::RasterManager::getRasterInfo(), te::tools::rastermanager::RasterManagerDialog::inputPushButton_clicked(), te::tools::rastermanager::RasterManager::reproject(), and te::tools::rastermanager::RasterManager::trim().

bool Utils::loadModules ( std::string &  errorMessage)
static

Load Terralib modules.

Parameters
errorMessageString that receive methods errors description
Returns
True if successfully

Definition at line 104 of file Utils.cpp.

References te::common::Singleton< PluginManager >::getInstance(), te::plugin::PluginInfo::m_description, and te::plugin::PluginInfo::m_name.

Referenced by te::tools::rastermanager::RasterManager::init(), and te::tools::rastermanager::RasterManager::showSupportedExtensions().


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