Go to the documentation of this file.
   26 #ifndef __TERRALIB_RASTER_INTERNAL_RASTERSUMMARYMANAGER_H 
   27 #define __TERRALIB_RASTER_INTERNAL_RASTERSUMMARYMANAGER_H 
   30 #include "../common/Singleton.h" 
   31 #include "../common/Enums.h" 
   86         bool find(
const Raster* raster, 
const unsigned int bandIndex,
 
   87           const unsigned int rowStart, 
const unsigned int colStart,
 
   88           const unsigned int finalRow, 
const unsigned int finalCol,
 
   89           const unsigned int histoBins, 
const unsigned int sampleStep,
 
  103           const unsigned int rowStart, 
const unsigned int colStart,
 
  104           const unsigned int finalRow, 
const unsigned int finalCol,
 
  105           const unsigned int histoBins, 
const unsigned int sampleStep);
 
  145         bool get( 
const Raster* raster, 
const unsigned int rowStart, 
 
  146           const unsigned int colStart, 
const unsigned int finalRow, 
 
  147           const unsigned int finalCol, 
const unsigned int histoBins, 
 
  148           const unsigned int sampleStep, 
bool readall, 
RasterSummary& summary );
 
  176         bool get( 
const Raster* raster, 
const unsigned int bandIndex,
 
  177           const unsigned int rowStart, 
const unsigned int colStart,
 
  178           const unsigned int finalRow, 
const unsigned int finalCol,
 
  179           const unsigned int histoBins, 
const unsigned int sampleStep,
 
  255 #endif  // __TERRALIB_RASTER_INTERNAL_RASTERSUMMARYMANAGER_H 
  
 
std::map< std::string, std::string > m_connInfo
 
RasterSummary is just a typedef of a boost::ptr_vector.
 
std::list< SumManKey > SummaryContT
 
bool operator==(const SumManKey &other) const
 
An abstract class for raster data strucutures.
 
bool find(const Raster *raster, const unsigned int bandIndex, const unsigned int rowStart, const unsigned int colStart, const unsigned int finalRow, const unsigned int finalCol, const unsigned int histoBins, const unsigned int sampleStep, BandSummary &summary) const
Searches for a band summary.
 
void setDefaultRasterHistSize(const unsigned int binsNumber)
Set the default rasters histograms bins.
 
unsigned int m_sampleStep
 
bool get(const Raster *raster, const unsigned int bandIndex, const unsigned int rowStart, const unsigned int colStart, const unsigned int finalRow, const unsigned int finalCol, const unsigned int histoBins, const unsigned int sampleStep, bool readall, BandSummary &summary)
Searches for a band summary and creates it if it does not exist.
 
#define TERASTEREXPORT
You can use this macro in order to export/import classes and functions from this module.
 
bool m_enableDeletedRastersCache
 
~RasterSummaryManager()
Destructor.
 
Enumerations of XML module.
 
bool get(const Raster *raster, const unsigned int rowStart, const unsigned int colStart, const unsigned int finalRow, const unsigned int finalCol, const unsigned int histoBins, const unsigned int sampleStep, bool readall, RasterSummary &summary)
It searches for a raster summary. If not found it creates the summary and returns it.
 
bool get(const Raster *raster, bool readall, RasterSummary &summary)
It searches for a raster summary. If not found it creates the summary and returns it.
 
bool operator<(const SumManKey &other) const
 
unsigned int m_defRastersHistBins
 
Template support for singleton pattern.
 
SumManKey & operator=(const SumManKey &other)
 
SummaryContT m_rasterSummaries
A rasters band summaries.
 
SumManKey(const SumManKey &other)
 
bool find(const Raster *raster, RasterSummary &summary) const
Searches for a raster summary.
 
Raster const  * m_rasterPtr
 
void enableDeletedRastersCache(const bool enabled)
Enable/disable the cache of deleted rasters.
 
A singleton for keeping raster summaries (most statistics). It stores an internal map of raster conn ...
 
unsigned int getDefaultRasterHistSize()
Get the default rasters histograms bins.
 
Proxy configuration file for TerraView (see terraview_config.h).
 
void remove(const Raster *raster, const unsigned int bandIndex, const unsigned int rowStart, const unsigned int colStart, const unsigned int finalRow, const unsigned int finalCol, const unsigned int histoBins, const unsigned int sampleStep)
Removes the summary from the specified raster.
 
boost::ptr_vector< BandSummary > RasterSummary
RasterSummary is just a typedef of a boost::ptr_vector.
 
void remove(const Raster *raster)
Removes all summary ocurrences related to the specified raster pointer.
 
A summary of a raster band (most statistics).
 
void removeAll()
Removes all raster summary entries.
 
te::common::AccessPolicy m_rasterPolicy
 
std::mutex m_syncMutex
Internal mutex.
 
AccessPolicy
Supported data access policies (can be used as bitfield).
 
bool get(const Raster *raster, const unsigned int bandIndex, bool readall, BandSummary &summary)
Searches for a band summary and creates it if it does not exist.