OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimIgenGenerator.h>
Protected Member Functions | |
void | generateInputKwl (ossimConnectableObject *connectable) |
void | generateOutputKwl (ossimConnectableObject *connectable) |
void | generateViewKwl (ossimObject *view) |
void | setDefaultOutput () |
void | generateTiledSpecList (bool outputToFileFlag) |
void | generateGeoTiledSpecList (const ossimDpt &spacing, bool outputToFileFlag) |
void | generatePixelTiledSpecList (bool outputToFileFlag) |
void | generateNoTiledSpecList (bool outputToFileFlag) |
void | generateChainForMultiInput (ossimConnectableObject *connectable) |
void | generateChainForMultiInputRecurse (std::stack< ossimConnectableObject *> &aStack, ossimConnectableObject *connectable) |
int | getTileId (const ossimDrect &rect, const ossimDpt ¤tPt, const ossimDpt &spacing) const |
void | addPadding (ossimGeoPolygon &output, const ossimGeoPolygon &input) const |
void | addPixelType (ossimKeywordlist &kwl, const char *prefix="product.") |
Definition at line 22 of file ossimIgenGenerator.h.
|
inline |
Definition at line 25 of file ossimIgenGenerator.h.
|
inline |
Definition at line 48 of file ossimIgenGenerator.h.
|
protected |
Definition at line 548 of file ossimIgenGenerator.cpp.
References createProductProjection(), ossimGeoPolygon::getOrdering(), ossimDpt::lat, ossimGpt::lat, ossimProjection::lineSampleToWorld(), ossimDpt::lon, ossimGpt::lon, OSSIM_CLOCKWISE_ORDER, OSSIM_DEGREES, OSSIM_METERS, OSSIM_MINUTES, OSSIM_PIXEL, OSSIM_SECONDS, ossimGeoPolygon::setOrdering(), theTilePadding, theTilePaddingUnits, ossimRefPtr< T >::valid(), ossimProjection::worldToLineSample(), ossimDpt::x, and ossimDpt::y.
Referenced by generateGeoTiledSpecList(), and generatePixelTiledSpecList().
|
protected |
Definition at line 658 of file ossimIgenGenerator.cpp.
References ossimKeywordlist::add(), OSSIM_PIXEL_IS_POINT, ossimKeywordNames::PIXEL_TYPE_KW, and thePixelType.
Referenced by generateGeoTiledSpecList(), generateNoTiledSpecList(), and generatePixelTiledSpecList().
|
inline |
Definition at line 106 of file ossimIgenGenerator.h.
ossimObject * ossimIgenGenerator::createInput | ( | ) | const |
Definition at line 139 of file ossimIgenGenerator.cpp.
References ossimObjectFactoryRegistry::createObject(), ossimObjectFactoryRegistry::instance(), and theInputKwl.
Referenced by generateGeoTiledSpecList(), generateNoTiledSpecList(), generatePixelTiledSpecList(), and getInputBoundingRect().
ossimObject * ossimIgenGenerator::createOutput | ( | ) | const |
Definition at line 134 of file ossimIgenGenerator.cpp.
References ossimObjectFactoryRegistry::createObject(), ossimObjectFactoryRegistry::instance(), and theOutputKwl.
ossimProjection * ossimIgenGenerator::createProductProjection | ( | ) | const |
Definition at line 129 of file ossimIgenGenerator.cpp.
References ossimProjectionFactoryRegistry::createProjection(), ossimProjectionFactoryRegistry::instance(), and theViewKwl.
Referenced by addPadding(), generateGeoTiledSpecList(), and generatePixelTiledSpecList().
void ossimIgenGenerator::executeSpecList | ( | ) |
Definition at line 72 of file ossimIgenGenerator.cpp.
|
protected |
Definition at line 89 of file ossimIgenGenerator.cpp.
References ossimKeywordlist::add(), ossimString::c_str(), generateChainForMultiInputRecurse(), ossimConnectableObject::saveState(), theInputKwl, and ossimString::toString().
Referenced by generateInputKwl().
|
protected |
Definition at line 112 of file ossimIgenGenerator.cpp.
References ossimConnectableObject::getInput(), and ossimConnectableObject::getNumberOfInputs().
Referenced by generateChainForMultiInput().
|
protected |
Definition at line 330 of file ossimIgenGenerator.cpp.
References ossimKeywordlist::add(), ossimImageChain::add(), addPadding(), addPixelType(), ossimGeoPolygon::addPoint(), ossimString::c_str(), ossimGeoPolygon::clear(), createInput(), createProductProjection(), ossimFilename::dirCat(), ossimString::downcase(), ossimFilename::ext(), ossimKeywordNames::FILENAME_KW, ossimFilename::fileNoExtension(), ossimKeywordlist::find(), getInputBoundingRect(), getTileId(), ossimDpt::lat, ossimProjection::lineSampleToWorld(), ossimIrect::ll(), ossimDrect::ll(), ossimDpt::lon, ossimIrect::lr(), ossim::nan(), OSSIM_RIGHT_HANDED, ossimFilename::path(), PTR_CAST, ossimUsgsQuad::quarterQuadName(), ossimUsgsQuad::quarterQuadSegName(), ossimImageChain::saveState(), ossimFilename::setExtension(), ossimGeoPolyCutter::setPolygon(), ossimGeoPolygon::size(), ossimDrect::stretchToTileBoundary(), theOutputGeoPolygon, theOutputKwl, theSpecFileList, theSpecFileLocation, theSpecList, theTileNamingConvention, theViewKwl, ossimString::toString(), ossimString::trim(), ossimIrect::ul(), ossimDrect::ul(), ossimIrect::ur(), ossimDrect::ur(), ossimRefPtr< T >::valid(), ossimKeywordlist::write(), and ossimDpt::x.
Referenced by generateTiledSpecList().
|
protected |
Definition at line 144 of file ossimIgenGenerator.cpp.
References ossimKeywordlist::clear(), generateChainForMultiInput(), ossimConnectableObject::getInput(), ossimConnectableObject::saveState(), and theInputKwl.
Referenced by setInput().
|
protected |
Definition at line 457 of file ossimIgenGenerator.cpp.
References ossimKeywordlist::add(), ossimImageChain::add(), addPixelType(), ossimString::c_str(), ossimKeywordlist::clear(), createInput(), ossimKeywordlist::find(), ossimRefPtr< T >::get(), ossimKeywordlist::getSize(), PTR_CAST, ossimImageChain::saveState(), ossimGeoPolyCutter::setPolygon(), ossimGeoPolygon::size(), theInputKwl, theOutputGeoPolygon, theOutputKwl, theSpecFileList, theSpecFileLocation, theSpecList, theViewKwl, ossimRefPtr< T >::valid(), and ossimKeywordlist::write().
Referenced by generateSpecList().
|
protected |
Definition at line 162 of file ossimIgenGenerator.cpp.
References ossimKeywordlist::clear(), ossimConnectableObject::saveState(), and theOutputKwl.
|
protected |
Definition at line 222 of file ossimIgenGenerator.cpp.
References ossimKeywordlist::add(), ossimImageChain::add(), addPadding(), addPixelType(), ossimGeoPolygon::addPoint(), ossimString::c_str(), ossimGeoPolygon::clear(), ossimIrect::completely_within(), createInput(), createProductProjection(), ossimFilename::dirCat(), ossimFilename::ext(), ossimKeywordNames::FILENAME_KW, ossimFilename::fileNoExtension(), ossimKeywordlist::find(), getInputBoundingRect(), getTileId(), ossimProjection::lineSampleToWorld(), ossimDrect::ll(), ossimIrect::lr(), ossimDrect::lr(), ossimFilename::path(), PTR_CAST, ossimImageChain::saveState(), ossimFilename::setExtension(), ossimGeoPolyCutter::setPolygon(), ossimGeoPolygon::size(), ossimIrect::stretchToTileBoundary(), theOutputGeoPolygon, theOutputKwl, theSpecFileList, theSpecFileLocation, theSpecList, theTileNamingConvention, theTileSpacing, theViewKwl, ossimString::toString(), ossimIrect::ul(), ossimDrect::ul(), ossimDrect::ur(), ossimProjection::worldToLineSample(), ossimKeywordlist::write(), ossimIpt::x, ossimDpt::x, ossimIpt::y, and ossimDpt::y.
Referenced by generateTiledSpecList().
void ossimIgenGenerator::generateSpecList | ( | bool | outputToFileFlag = false | ) |
Definition at line 22 of file ossimIgenGenerator.cpp.
References generateNoTiledSpecList(), generateTiledSpecList(), ossimDpt::hasNans(), OSSIM_UNIT_UNKNOWN, theTileSpacing, theTileSpacingUnits, and theTilingFlag.
Referenced by getImageFilenamesFromSpecList().
|
protected |
Definition at line 185 of file ossimIgenGenerator.cpp.
References generateGeoTiledSpecList(), generatePixelTiledSpecList(), OSSIM_DEGREES, OSSIM_MINUTES, OSSIM_PIXEL, OSSIM_SECONDS, theSpecFileList, theSpecList, theTileSpacing, theTileSpacingUnits, ossimDpt::x, and ossimDpt::y.
Referenced by generateSpecList().
|
protected |
Definition at line 171 of file ossimIgenGenerator.cpp.
References ossimKeywordlist::clear(), ossimObject::saveState(), and theViewKwl.
ossimGrect ossimIgenGenerator::getBoundingGround | ( | ) | const |
Definition at line 64 of file ossimIgenGenerator.cpp.
References theOutputGeoPolygon.
|
inline |
Definition at line 175 of file ossimIgenGenerator.h.
void ossimIgenGenerator::getImageFilenamesFromSpecList | ( | std::vector< ossimFilename > & | filenameList | ) |
Definition at line 37 of file ossimIgenGenerator.cpp.
References ossimKeywordNames::FILENAME_KW, generateSpecList(), and theSpecList.
|
inline |
Definition at line 124 of file ossimIgenGenerator.h.
References ossimKeywordlist::add().
ossimIrect ossimIgenGenerator::getInputBoundingRect | ( | ) | const |
Definition at line 534 of file ossimIgenGenerator.cpp.
References createInput(), ossimRefPtr< T >::get(), ossimImageSource::getBoundingRect(), ossimIrect::makeNan(), and PTR_CAST.
Referenced by generateGeoTiledSpecList(), and generatePixelTiledSpecList().
|
inline |
Definition at line 92 of file ossimIgenGenerator.h.
|
inline |
Definition at line 131 of file ossimIgenGenerator.h.
References ossimKeywordlist::add().
|
inline |
Definition at line 187 of file ossimIgenGenerator.h.
|
inline |
Definition at line 191 of file ossimIgenGenerator.h.
|
inline |
Definition at line 235 of file ossimIgenGenerator.h.
|
inline |
Definition at line 114 of file ossimIgenGenerator.h.
References ossimKeywordlist::clear().
|
inline |
Definition at line 167 of file ossimIgenGenerator.h.
|
inline |
Definition at line 97 of file ossimIgenGenerator.h.
|
inline |
Definition at line 87 of file ossimIgenGenerator.h.
|
protected |
Definition at line 516 of file ossimIgenGenerator.cpp.
References ossimDrect::ul(), ossimDrect::width(), ossimDpt::x, and ossimDpt::y.
Referenced by generateGeoTiledSpecList(), and generatePixelTiledSpecList().
|
inline |
Definition at line 251 of file ossimIgenGenerator.h.
|
inline |
Definition at line 223 of file ossimIgenGenerator.h.
|
inline |
Definition at line 231 of file ossimIgenGenerator.h.
|
inline |
Definition at line 219 of file ossimIgenGenerator.h.
|
inline |
Definition at line 227 of file ossimIgenGenerator.h.
|
inline |
Definition at line 215 of file ossimIgenGenerator.h.
|
inline |
Definition at line 139 of file ossimIgenGenerator.h.
References ossimKeywordlist::add().
|
inline |
Definition at line 77 of file ossimIgenGenerator.h.
|
protected |
Definition at line 180 of file ossimIgenGenerator.cpp.
|
inline |
Definition at line 171 of file ossimIgenGenerator.h.
void ossimIgenGenerator::setInput | ( | ossimConnectableObject * | input | ) |
Definition at line 76 of file ossimIgenGenerator.cpp.
References generateInputKwl(), ossimImageSource::getBoundingRect(), PTR_CAST, theInputBoundingRect, and theSpecList.
|
inline |
Definition at line 72 of file ossimIgenGenerator.h.
|
inline |
Definition at line 51 of file ossimIgenGenerator.h.
void ossimIgenGenerator::setOutput | ( | const ossimKeywordlist & | kwl | ) |
Definition at line 676 of file ossimIgenGenerator.cpp.
References ossimKeywordlist::clear(), and theOutputKwl.
|
inline |
Definition at line 155 of file ossimIgenGenerator.h.
|
inline |
Definition at line 179 of file ossimIgenGenerator.h.
|
inline |
Definition at line 183 of file ossimIgenGenerator.h.
|
inline |
Definition at line 163 of file ossimIgenGenerator.h.
|
inline |
Tile naming convention is a string that can be "id" or "usgs". this is used if tiling is enabled. If id is used it will use the filename as the prefix and then add to it the id's. If usgs is used it will name it based on the USGS name.
Definition at line 245 of file ossimIgenGenerator.h.
References ossimString::downcase().
|
inline |
Definition at line 203 of file ossimIgenGenerator.h.
|
inline |
Definition at line 211 of file ossimIgenGenerator.h.
|
inline |
Definition at line 199 of file ossimIgenGenerator.h.
|
inline |
Definition at line 207 of file ossimIgenGenerator.h.
|
inline |
Definition at line 195 of file ossimIgenGenerator.h.
|
inline |
Definition at line 61 of file ossimIgenGenerator.h.
|
inline |
Definition at line 147 of file ossimIgenGenerator.h.
|
protected |
Definition at line 274 of file ossimIgenGenerator.h.
|
protected |
Definition at line 277 of file ossimIgenGenerator.h.
Referenced by setInput().
|
protected |
Definition at line 262 of file ossimIgenGenerator.h.
Referenced by createInput(), generateChainForMultiInput(), generateInputKwl(), and generateNoTiledSpecList().
|
protected |
Definition at line 272 of file ossimIgenGenerator.h.
|
protected |
Definition at line 278 of file ossimIgenGenerator.h.
Referenced by generateGeoTiledSpecList(), generateNoTiledSpecList(), generatePixelTiledSpecList(), and getBoundingGround().
|
protected |
Definition at line 263 of file ossimIgenGenerator.h.
Referenced by createOutput(), generateGeoTiledSpecList(), generateNoTiledSpecList(), generateOutputKwl(), generatePixelTiledSpecList(), and setOutput().
|
protected |
Definition at line 265 of file ossimIgenGenerator.h.
Referenced by addPixelType().
|
protected |
Definition at line 275 of file ossimIgenGenerator.h.
|
protected |
Definition at line 282 of file ossimIgenGenerator.h.
Referenced by generateGeoTiledSpecList(), generateNoTiledSpecList(), generatePixelTiledSpecList(), and generateTiledSpecList().
|
protected |
Definition at line 273 of file ossimIgenGenerator.h.
Referenced by generateGeoTiledSpecList(), generateNoTiledSpecList(), and generatePixelTiledSpecList().
|
protected |
Definition at line 281 of file ossimIgenGenerator.h.
Referenced by generateGeoTiledSpecList(), generateNoTiledSpecList(), generatePixelTiledSpecList(), generateTiledSpecList(), getImageFilenamesFromSpecList(), and setInput().
|
protected |
Definition at line 276 of file ossimIgenGenerator.h.
|
protected |
Definition at line 279 of file ossimIgenGenerator.h.
Referenced by generateGeoTiledSpecList(), and generatePixelTiledSpecList().
|
protected |
Definition at line 270 of file ossimIgenGenerator.h.
Referenced by addPadding().
|
protected |
Definition at line 271 of file ossimIgenGenerator.h.
Referenced by addPadding().
|
protected |
Definition at line 268 of file ossimIgenGenerator.h.
Referenced by generatePixelTiledSpecList(), generateSpecList(), and generateTiledSpecList().
|
protected |
Definition at line 269 of file ossimIgenGenerator.h.
Referenced by generateSpecList(), and generateTiledSpecList().
|
protected |
Definition at line 266 of file ossimIgenGenerator.h.
Referenced by generateSpecList().
|
protected |
Definition at line 267 of file ossimIgenGenerator.h.
|
protected |
Definition at line 264 of file ossimIgenGenerator.h.
Referenced by createProductProjection(), generateGeoTiledSpecList(), generateNoTiledSpecList(), generatePixelTiledSpecList(), and generateViewKwl().