52 vector<ossimFilename> file_names;
56 if (file_names.size() == 0)
61 for (
ossim_uint32 band=0; band<file_names.size(); ++band)
68 "Expected to find band file at <"<<file_names[band]<<
"> but could not open file." 69 " Image not opened."<<endl;
89 vector<ossimRefPtr<ossimImageHandler> >::iterator iter =
m_bandFiles.begin();
234 "Cannot open text file at <"<<
theImageFile<<
">. Image not opened."<<endl;
238 vector<ossimString> fname_list;
243 is.getline(line_buf, 4096);
248 if (line_str.
contains(
"Multispectral Files:"))
250 if (!line_str.
contains(
"Separate Files"))
255 if (line_str.
contains(
"Tile File Name:"))
258 file_list_str.
split(fname_list, separator,
true);
266 for (
size_t i=0; i<fname_list.size(); ++i)
ossimFilename theImageFile
virtual ossimImageHandler * open(const ossimFilename &fileName, bool trySuffixFirst=true, bool openOverview=true) const
open that takes a filename.
Represents serializable keyword/value map.
virtual ossimRefPtr< ossimImageData > getTile(const ossimIrect &rect, ossim_uint32 resLevel)
Fills the requested tile by pulling pixels from multiple file tiles as needed.
std::basic_ifstream< char > ifstream
Class for char input file streams.
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
Method to the load (recreate) the state of an object from a keyword list.
bool contains(char aChar) const
ossimFilename & setPath(const ossimString &p)
void split(std::vector< ossimString > &result, const ossimString &separatorList, bool skipBlankFields=false) const
Splits this string into a vector of strings (fields) using the delimiter list specified.
virtual bool isOpen() const
Derived classes must implement this method to be concrete.
virtual ossim_uint32 getNumberOfLines(ossim_uint32 resLevel=0) const
virtual bool open()
Opens multiple band-files based on info in metadata file.
void push_back(char c)
Equivalent to insert(end(), c).
This class defines an abstract Handler which all image handlers(loaders) should derive from...
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
Method to the load (recreate) the state of an object from a keyword list.
unsigned int ossim_uint32
const char * chars() const
For backward compatibility.
virtual ossimScalarType getOutputScalarType() const
Returns scalar type of first band (should be the same for all bands)
virtual ossim_uint32 getNumberOfSamples(ossim_uint32 resLevel=0) const
virtual ossim_int32 connectMyInputTo(ossimConnectableObject *inputObject, bool makeOutputConnection=true, bool createEventFlag=true)
Will try to connect this objects input to the passed in object.
virtual ossimRefPtr< ossimImageGeometry > getImageGeometry()
Returns the geometry of the first band:
virtual void completeOpen()
Will complete the opening process.
ossimRefPtr< ossimImageHandler > theOverview
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
Method to save the state of an object to a keyword list.
This class defines an abstract Handler which all image handlers(loaders) should derive from...
virtual ~ossimBandSeparateHandler()
Destructor:
virtual ossimRefPtr< ossimImageData > getTile(const ossimIrect &rect, ossim_uint32 resLevel=0)
This will merge all the bands from the input source list into one contiguous ossimImageData object...
ossimRefPtr< ossimBandMergeSource > m_mergeSource
virtual void getBandFileNames(vector< ossimFilename > &file_names)
Fetches the list of band file names from the header file.
vector< ossimRefPtr< ossimImageHandler > > m_bandFiles
static ossimImageHandlerRegistry * instance()
#define RTTI_DEF1(cls, name, b1)
virtual bool canConnectMyOutputTo(ossim_int32 myOutputIndex, const ossimConnectableObject *object) const
default implementation is to allow anyone to connect to us.
virtual bool canConnectMyOutputTo(ossim_int32 index, const ossimConnectableObject *obj)
Overrides base connection method to connect output of merge source.
ossimString after(const ossimString &str, std::string::size_type pos=0) const
METHOD: after(str, pos) Returns string immediately after the token str.
ossimFilename path() const
virtual void close()
Closes all band-files and clears input handler list.
virtual ossim_uint32 getNumberOfInputBands() const
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
Method to save the state of an object to a keyword list.
virtual ossimRefPtr< ossimImageData > getTile(const ossimIpt &origin, ossim_uint32 resLevel=0)