A feeder from an input directory name.  
 More...
#include <FeedersRaster.h>
 | 
| void  | applyGeometryRestriction (const te::gm::Geometry &restrictionGeom) | 
|   | Apply a new geometry intersect restriction selecting only those rasters intersecting the given geometry.  More...
  | 
|   | 
|   | FeederConstRasterDirectory (const std::string &directoryName, const bool recursive, const std::string &rType, const bool sortFileNames, const std::vector< std::string > &fileExtensions) | 
|   | Constructor from an input directory name.  More...
  | 
|   | 
|   | FeederConstRasterDirectory (const std::string &directoryName, const bool recursive, const std::string &rType, const bool sortFileNames, const std::vector< std::string > &fileExtensions, te::gm::Geometry const *const restrictionGeomPtr, const bool ignoreInvalidRasterFiles) | 
|   | Constructor from an input directory name with a restriction geometry.  More...
  | 
|   | 
| te::rst::Raster const *  | getCurrentObj () const  | 
|   | Return the current sequence object.  More...
  | 
|   | 
| unsigned int  | getCurrentOffset () const  | 
|   | Return the index of the current object.  More...
  | 
|   | 
| const std::string &  | getCurrentRasterFileName () | 
|   | Returns the current raster file name.  More...
  | 
|   | 
| unsigned int  | getObjsCount () const  | 
|   | Return the total number of feeder objects.  More...
  | 
|   | 
| bool  | moveNext () | 
|   | Advances to the next sequence obeject.  More...
  | 
|   | 
| bool  | moveTo (const unsigned int index) | 
|   | Jump to the given object index.  More...
  | 
|   | 
| void  | reset () | 
|   | Reset the feeder to the first position (subsequent accesses will start from the first sequence obejct).  More...
  | 
|   | 
|   | ~FeederConstRasterDirectory () | 
|   | 
 | 
|   | FeederConstRasterDirectory () | 
|   | 
| bool  | initialize (const std::string &directoryName, const bool recursive, const std::string &rType, const bool sortFileNames, const std::vector< std::string > &fileExtensions, te::gm::Geometry const *const restrictionGeomPtr, const bool ignoreInvalidRasterFiles) | 
|   | Initialize this instance.  More...
  | 
|   | 
A feeder from an input directory name. 
Definition at line 141 of file FeedersRaster.h.
 
      
        
          | te::rp::FeederConstRasterDirectory::FeederConstRasterDirectory  | 
          ( | 
          const std::string &  | 
          directoryName,  | 
        
        
           | 
           | 
          const bool  | 
          recursive,  | 
        
        
           | 
           | 
          const std::string &  | 
          rType,  | 
        
        
           | 
           | 
          const bool  | 
          sortFileNames,  | 
        
        
           | 
           | 
          const std::vector< std::string > &  | 
          fileExtensions  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Constructor from an input directory name. 
- Parameters
 - 
  
    | directoryName | The directory full path name.  | 
    | recursive | true if a recursive search must be performed.  | 
    | rType | The name of the specific driver to instantiate each raster ( See te::rst::RasterFactory dictionary for valid registered values ).  | 
    | sortFileNames | If true, the file names will be sorted.  | 
    | fileExtensions | The file extensions filter (example: ".tif"), or an empty vector if all extensions must be accepted.  | 
  
   
 
 
      
        
          | te::rp::FeederConstRasterDirectory::FeederConstRasterDirectory  | 
          ( | 
          const std::string &  | 
          directoryName,  | 
        
        
           | 
           | 
          const bool  | 
          recursive,  | 
        
        
           | 
           | 
          const std::string &  | 
          rType,  | 
        
        
           | 
           | 
          const bool  | 
          sortFileNames,  | 
        
        
           | 
           | 
          const std::vector< std::string > &  | 
          fileExtensions,  | 
        
        
           | 
           | 
          te::gm::Geometry const *const  | 
          restrictionGeomPtr,  | 
        
        
           | 
           | 
          const bool  | 
          ignoreInvalidRasterFiles  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Constructor from an input directory name with a restriction geometry. 
- Parameters
 - 
  
    | directoryName | The directory full path name.  | 
    | recursive | true if a recursive search must be performed.  | 
    | rType | The name of the specific driver to instantiate each raster.  | 
    | sortFileNames | If true, the file names will be sorted.  | 
    | fileExtensions | The file extensions filter (example: ".tif"), or an empty vector if all extensions must be accepted.  | 
    | restrictionGeomPtr | A pointer to a restriction geometry (only rasters intercepting this geomtry will be considered) or a null pointer if there is no restriction.  | 
    | ignoreInvalidRasterFiles | If true, invalid raster files will be ignored.  | 
  
   
 
 
      
        
          | te::rp::FeederConstRasterDirectory::~FeederConstRasterDirectory  | 
          ( | 
           | ) | 
           | 
        
      
 
 
  
  
      
        
          | te::rp::FeederConstRasterDirectory::FeederConstRasterDirectory  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
      
        
          | void te::rp::FeederConstRasterDirectory::applyGeometryRestriction  | 
          ( | 
          const te::gm::Geometry &  | 
          restrictionGeom | ) | 
           | 
        
      
 
Apply a new geometry intersect restriction selecting only those rasters intersecting the given geometry. 
- Parameters
 - 
  
    | restrictionGeom | The new restrigion geometry.  | 
  
   
 
 
  
  
      
        
          | te::rst::Raster const* te::rp::FeederConstRasterDirectory::getCurrentObj  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
virtual   | 
  
 
Return the current sequence object. 
- Returns
 - A pointer to the current object or a null pointer if there are no object to return. 
 
Implements te::rp::FeederConstRaster.
 
 
  
  
      
        
          | unsigned int te::rp::FeederConstRasterDirectory::getCurrentOffset  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
virtual   | 
  
 
 
      
        
          | const std::string& te::rp::FeederConstRasterDirectory::getCurrentRasterFileName  | 
          ( | 
           | ) | 
           | 
        
      
 
Returns the current raster file name. 
- Returns
 - Returns the current raster file name. 
 
 
 
  
  
      
        
          | unsigned int te::rp::FeederConstRasterDirectory::getObjsCount  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
virtual   | 
  
 
 
  
  
      
        
          | bool te::rp::FeederConstRasterDirectory::initialize  | 
          ( | 
          const std::string &  | 
          directoryName,  | 
         
        
           | 
           | 
          const bool  | 
          recursive,  | 
         
        
           | 
           | 
          const std::string &  | 
          rType,  | 
         
        
           | 
           | 
          const bool  | 
          sortFileNames,  | 
         
        
           | 
           | 
          const std::vector< std::string > &  | 
          fileExtensions,  | 
         
        
           | 
           | 
          te::gm::Geometry const *const  | 
          restrictionGeomPtr,  | 
         
        
           | 
           | 
          const bool  | 
          ignoreInvalidRasterFiles  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
protected   | 
  
 
Initialize this instance. 
- Parameters
 - 
  
    | directoryName | The directory full path name.  | 
    | recursive | true if a recursive search must be performed.  | 
    | rType | The name of the specific driver to instantiate each raster.  | 
    | sortFileNames | If true, the file names will be sorted.  | 
    | fileExtensions | The file extensions filter (example: ".tif"), or an empty vector if all extensions must be accepted.  | 
    | restrictionGeomPtr | A pointer to a restriction geometry (only rasters intercepting this geomtry will be considered) or a null pointer if there is no restriction.  | 
    | ignoreInvalidRasterFiles | If true, invalid raster files will be ignored.  | 
  
   
 
 
  
  
      
        
          | bool te::rp::FeederConstRasterDirectory::moveNext  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
Advances to the next sequence obeject. 
- Returns
 - true if the advance was completed or false if the objects sequence end was reached. 
 
- Note
 - This method can invalidate any pointer returned by getCurrentObj. 
 
Implements te::rp::FeederConstRaster.
 
 
  
  
      
        
          | bool te::rp::FeederConstRasterDirectory::moveTo  | 
          ( | 
          const unsigned int  | 
          index | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
Jump to the given object index. 
- Returns
 - true if the jump was completed or false on errors. 
 
- Note
 - This method can invalidate any pointer returned by getCurrentObj. 
 
Implements te::rp::FeederConstRaster.
 
 
  
  
      
        
          | void te::rp::FeederConstRasterDirectory::reset  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
Reset the feeder to the first position (subsequent accesses will start from the first sequence obejct). 
- Note
 - This method can invalidate any pointer returned by getCurrentObj. 
 
Implements te::rp::FeederConstRaster.
 
 
  
  
      
        
          | std::vector< std::string > te::rp::FeederConstRasterDirectory::m_allRasterFileNames | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | std::vector< te::gm::Polygon > te::rp::FeederConstRasterDirectory::m_allRastersBoundingBoxes | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | std::auto_ptr< te::rst::Raster > te::rp::FeederConstRasterDirectory::m_currentRasterPtr | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | bool te::rp::FeederConstRasterDirectory::m_ignoreInvalidRasterFiles | 
         
       
   | 
  
protected   | 
  
 
If true, invalid raster files will be ignored. 
Definition at line 201 of file FeedersRaster.h.
 
 
  
  
      
        
          | std::auto_ptr< te::gm::Geometry > te::rp::FeederConstRasterDirectory::m_restrictionGeomPtr | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | std::string te::rp::FeederConstRasterDirectory::m_rType | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | std::vector< unsigned int >::size_type te::rp::FeederConstRasterDirectory::m_selectedRasterIndexesOffset | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | std::vector< unsigned int > te::rp::FeederConstRasterDirectory::m_selectedRastersIndexes | 
         
       
   | 
  
protected   | 
  
 
 
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_master/terralib5/src/terralib/rp/FeedersRaster.h