9 #ifndef ossimIgenGenerator_HEADER 10 #define ossimIgenGenerator_HEADER 30 theTileSpacing(7.5, 7.5),
34 theNamingConvention(
"DEFAULT"),
35 theSpecFileLocation(
""),
36 theIgenExecutable(
"igen"),
39 theTileNamingConvention(
"id")
41 theUpperLeftTileStart.makeNan();
45 theInputBoundingRect.makeNan();
54 generateOutputKwl(output);
63 generateViewKwl(view);
66 void generateSpecList(
bool outputToFileFlag =
false);
67 void getImageFilenamesFromSpecList(std::vector<ossimFilename>& filenameList);
70 void executeSpecList();
79 if(theSpecFileIndex >= theSpecFileList.size())
83 specFile = theSpecFileList[theSpecFileIndex];
87 void getSpecs(vector<ossimKeywordlist>& specList)
const 89 specList = theSpecList;
99 if(specFileIndex < theSpecFileList.size())
101 return theSpecFileList[specFileIndex];
119 if(specIndex < theSpecList.size())
121 kwl = theSpecList[specIndex];
125 const char* prefix=NULL)
const 132 const char* prefix=NULL)
const 140 const char* prefix=NULL)
const 148 const char* prefix = NULL)
151 theViewKwl.add(prefix,
156 const char* prefix = NULL)
158 theOutputKwl.clear();
159 theOutputKwl.add(prefix,
165 theSpecFileLocation = filename;
169 return theSpecFileLocation;
173 theIgenExecutable = igenExecutable;
177 return theIgenExecutable;
181 theOutputGeoPolygon = poly;
185 thePixelType = pixelType;
189 poly = theOutputGeoPolygon;
193 return theOutputGeoPolygon;
197 theTilingFlag = flag;
201 theTileSpacing = spacing;
205 theTilePadding = padding;
209 theTileSpacingUnits = unitType;
213 theTilePaddingUnits = unitType;
217 return theTilingFlag;
221 return theTileSpacing;
225 return theTilePadding;
229 return theTileSpacingUnits;
233 return theTilePaddingUnits;
247 theTileNamingConvention = namingConvention;
248 theTileNamingConvention = theTileNamingConvention.
downcase();
253 return theTileNamingConvention;
287 void setDefaultOutput();
288 void generateTiledSpecList(
bool outputToFileFlag);
289 void generateGeoTiledSpecList(
const ossimDpt& spacing,
bool outputToFileFlag);
290 void generatePixelTiledSpecList(
bool outputToFileFlag);
291 void generateNoTiledSpecList(
bool outputToFileFlag);
294 void generateChainForMultiInputRecurse(std::stack<ossimConnectableObject*>& aStack,
ossim_uint32 theSpecFileIndex
void getSpecs(vector< ossimKeywordlist > &specList) const
ossimKeywordlist theOutputKwl
ossim_uint32 getNumberOfSpecFiles() const
ossimIrect theInputBoundingRect
bool getTilingFlag() const
ossimFilename buildExe(ossim_uint32 i=0) const
const ossimGeoPolygon & getOutputGeoPolygon() const
ossimUnitType getTilePaddingUnits() const
Represents serializable keyword/value map.
void setTilingFlag(bool flag)
void setTilePadding(const ossimDpt &padding)
vector< ossimKeywordlist > theSpecList
ossimString theTileNamingConvention
ossimIgenGenerator(ossimConnectableObject *input=NULL, ossimConnectableObject *output=NULL, ossimObject *view=NULL)
ossimString theNamingConvention
ossimGeoPolygon theOutputGeoPolygon
bool nextSpecFile(ossimFilename &specFile)
const ossimFilename & getSpecFileLocation() const
void setTileNamingConvention(const ossimString &namingConvention)
void setOutputPolygon(const ossimGeoPolygon &poly)
ossimFilename getSpecFilename(ossim_uint32 specFileIndex=0) const
void getView(ossimKeywordlist &kwl, const char *prefix=NULL) const
vector< ossimFilename > theSpecFileList
ossimDpt theUpperLeftTileStart
void add(const char *prefix, const ossimKeywordlist &kwl, bool overwrite=true)
void setTilePaddingUnits(ossimUnitType unitType)
ossimKeywordlist theInputKwl
ossimFilename theIgenExecutable
void getOutput(ossimKeywordlist &kwl, const char *prefix=NULL) const
const ossimString & getTileNamingConvention() const
void setView(ossimKeywordlist &kwl, const char *prefix=NULL)
void setIteratorsToStart()
unsigned int ossim_uint32
void setView(ossimObject *view)
ossimUnitType getTileSpacingUnits() const
const ossimFilename & getIgenExecutable() const
static ossimString downcase(const ossimString &aString)
void setPixelType(ossimPixelType pixelType)
void setSpecFileLocation(const ossimFilename &filename)
ossimFilename theSpecFileLocation
ossimPixelType thePixelType
ossim_uint32 theSpecListIndex
ossimKeywordlist theViewKwl
void setOutput(ossimKeywordlist &kwl, const char *prefix=NULL)
void getSpec(ossimKeywordlist &kwl, ossim_uint32 specIndex=0)
ossimUnitType theTilePaddingUnits
void getOutputGeoPolygon(ossimGeoPolygon &poly) const
const ossimDpt & getTileSpacing() const
ossimPixelType getPixelType() const
ossimUnitType theTileSpacingUnits
void setTileSpacingUnits(ossimUnitType unitType)
void getInput(ossimKeywordlist &kwl, const char *prefix=NULL) const
void setTileSpacing(const ossimDpt &spacing)
void setIgenExecutable(const ossimFilename &igenExecutable)
void setOutput(ossimConnectableObject *output)
const ossimDpt & getTilePadding() const