Dummy strategy (just for testing purposes).
More...
#include <ClassifierDummyStrategy.h>
|
| bool | createOutputRaster (const std::vector< int > &bandsDataTypes, const std::vector< double > &noDataValues) |
| | Create the output raster using the EXPANSIBLE driver.
|
| |
| virtual void | reset () |
| | Reset to an initial state.
|
| |
| void | setErrorMessage (const std::string &newErrorMessage) |
| | Set the current error message.
|
| |
| bool | setOutputRasterPalette (const unsigned int size) |
| | Create and set the output raster palette folowing the current internal settings.
|
| |
Dummy strategy (just for testing purposes).
Definition at line 44 of file ClassifierDummyStrategy.h.
◆ ClassifierDummyStrategy()
| te::rp::ClassifierDummyStrategy::ClassifierDummyStrategy |
( |
| ) |
|
◆ ~ClassifierDummyStrategy()
| te::rp::ClassifierDummyStrategy::~ClassifierDummyStrategy |
( |
| ) |
|
◆ createOutputRaster()
| bool te::rp::ClassifierStrategy::createOutputRaster |
( |
const std::vector< int > & | bandsDataTypes, |
|
|
const std::vector< double > & | noDataValues ) |
|
protectedinherited |
Create the output raster using the EXPANSIBLE driver.
- Parameters
-
| bandsDataTypes | Bands data types. |
| noDataValues | A vector of no-data values for each band. |
- Returns
- true if ok,false on errors.
- Note
- A pointer to the created raster will be handled by m_outputRasterPtr.
References createOutputRaster().
Referenced by createOutputRaster().
◆ enableMultiThread()
| void te::rp::ClassifierStrategy::enableMultiThread |
( |
const bool & | enable | ) |
|
|
inherited |
Enable / disable the use of multiple threads.
- Parameters
-
| enable | Enable (true) or disable (false) the use of multiple threads. |
References enableMultiThread().
Referenced by enableMultiThread().
◆ enableOutputPalette()
| void te::rp::ClassifierStrategy::enableOutputPalette |
( |
const bool | enabled | ) |
|
|
inherited |
Enable (true) or disable (false) the creation of a paletted output raster.
- Parameters
-
| enabled | Enable (true) or disable (false) the creation of a paletted output raster. |
References enableOutputPalette().
Referenced by enableOutputPalette().
◆ enableProgressInterface()
| void te::rp::ClassifierStrategy::enableProgressInterface |
( |
const bool & | enable | ) |
|
|
inherited |
◆ enableRasterCache()
| void te::rp::ClassifierStrategy::enableRasterCache |
( |
const bool & | enable | ) |
|
|
inherited |
◆ execute()
| bool te::rp::ClassifierDummyStrategy::execute |
( |
| ) |
|
|
virtual |
◆ getErrorMessage()
| const std::string & te::rp::ClassifierStrategy::getErrorMessage |
( |
| ) |
const |
|
inherited |
◆ getMetaData()
| void te::rp::ClassifierStrategy::getMetaData |
( |
std::map< std::string, std::string > & | metadata | ) |
const |
|
inherited |
Returns strategy-dependent metadata.
- Parameters
-
| metadata | Strategy-dependent metadata. |
References getMetaData().
Referenced by getMetaData().
◆ getOutputParameters()
◆ initialize()
Initialize the classification strategy.
- Parameters
-
| strategyParams | A pointer to the user given specific classification strategy parameters ou NULL if no parameters are present. |
- Returns
- true if OK, false on errors.
Implements te::rp::ClassifierStrategy.
◆ releaseOutputRaster()
| std::unique_ptr< te::rst::Raster > te::rp::ClassifierStrategy::releaseOutputRaster |
( |
| ) |
|
|
inherited |
Returns a pointer to the output raster or a void pointer if there is none.
- Returns
- Returns a pointer to the output raster or a void pointer if there is none.
- Note
- The caller of this method must take the ownership of the returned object.
References releaseOutputRaster().
Referenced by releaseOutputRaster().
◆ reset()
| virtual void te::rp::ClassifierStrategy::reset |
( |
| ) |
|
|
protectedvirtualinherited |
◆ setErrorMessage()
| void te::rp::ClassifierStrategy::setErrorMessage |
( |
const std::string & | newErrorMessage | ) |
|
|
protectedinherited |
◆ setInputPolygons()
| void te::rp::ClassifierStrategy::setInputPolygons |
( |
const std::vector< te::gm::Polygon * > & | polygonsPtrs | ) |
|
|
inherited |
Set the input polygons.
- Parameters
-
| polygonsPtrs | Input polygons pointers. |
- Note
- The caller of this method must keep the ownership of the objects.
References setInputPolygons().
Referenced by setInputPolygons().
◆ setInputRaster()
| void te::rp::ClassifierStrategy::setInputRaster |
( |
const te::rst::Raster & | raster | ) |
|
|
inherited |
◆ setInputRasterBands()
| void te::rp::ClassifierStrategy::setInputRasterBands |
( |
const std::vector< unsigned int > & | rasterBands | ) |
|
|
inherited |
◆ setOutputRasterPalette()
| bool te::rp::ClassifierStrategy::setOutputRasterPalette |
( |
const unsigned int | size | ) |
|
|
protectedinherited |
◆ setUserOutputPalette()
Set the output user palette.
- Parameters
-
| userPalette | User output raster palette (it must be large enough to accomodate all classifyier generated classes or an empty vector to automatically generate an random palette. |
References setUserOutputPalette().
Referenced by setUserOutputPalette().
◆ m_createRasterPalette
| bool te::rp::ClassifierStrategy::m_createRasterPalette |
|
protectedinherited |
Enable (true) or disable (false) the creation of a paletted output raster.
Definition at line 172 of file ClassifierStrategy.h.
◆ m_enableMultiThread
| bool te::rp::ClassifierStrategy::m_enableMultiThread |
|
protectedinherited |
◆ m_enableRasterCache
| bool te::rp::ClassifierStrategy::m_enableRasterCache |
|
protectedinherited |
◆ m_errorMessage
| std::string te::rp::ClassifierStrategy::m_errorMessage |
|
privateinherited |
◆ m_inputPolygonsPtr
| std::vector<te::gm::Polygon*> const* te::rp::ClassifierStrategy::m_inputPolygonsPtr |
|
protectedinherited |
◆ m_inputRasterBands
| std::vector<unsigned int> te::rp::ClassifierStrategy::m_inputRasterBands |
|
protectedinherited |
◆ m_inputRasterPtr
◆ m_isInitialized
| bool te::rp::ClassifierDummyStrategy::m_isInitialized |
|
protected |
◆ m_metaData
| std::map< std::string, std::string > te::rp::ClassifierStrategy::m_metaData |
|
protectedinherited |
◆ m_outputRasterPtr
| std::unique_ptr< te::rst::Raster > te::rp::ClassifierStrategy::m_outputRasterPtr |
|
protectedinherited |
◆ m_parameters
◆ m_progressInterfaceEnabled
| bool te::rp::ClassifierStrategy::m_progressInterfaceEnabled |
|
protectedinherited |
◆ m_userOutputPalette
User output raster palette (it must be large enough to accomodate all classifyier generated classes or an empty vector to automatically generate an random palette.
Definition at line 197 of file ClassifierStrategy.h.
The documentation for this class was generated from the following file: