|
Public Types |
typedef std::vector< ResolutionPair > | ResolutionList |
enum | Type { IMAGE,
HEIGHT_FIELD,
MODEL
} |
enum | ParameterPolicy { PREFER_CONFIG_SETTINGS,
PREFER_CONFIG_SETTINGS_BUT_SCALE_BY_FILE_RESOLUTION,
PREFER_FILE_SETTINGS
} |
Public Member Functions |
| Source () |
| Source (Type type, const std::string &filename) |
void | setSortValue (double s) |
double | getSortValue () const |
void | setSortValueFromSourceDataResolution () |
void | setType (Type type) |
Type | getType () const |
void | setFileName (const std::string &filename) |
const std::string & | getFileName () const |
void | setTemporaryFile (bool temporaryFile) |
bool | getTemporaryFile () const |
void | setCoordinateSystemPolicy (ParameterPolicy policy) |
ParameterPolicy | getCoordinateSystemPolicy () const |
void | setCoordinateSystem (const std::string &wellKnownText) |
void | setCoordinateSystem (osg::CoordinateSystemNode *cs) |
osg::CoordinateSystemNode * | getCoordinateSystem () |
void | setGeoTransformPolicy (ParameterPolicy policy) |
ParameterPolicy | getGeoTransformPolicy () const |
void | setGeoTransform (osg::Matrixd &transform) |
osg::Matrixd & | getGeoTransform () |
void | setGeoTransformFromRange (double xMin, double xMax, double yMin, double yMax) |
void | assignCoordinateSystemAndGeoTransformAccordingToParameterPolicy () |
void | setMinLevel (unsigned int minLevel) |
void | setMaxLevel (unsigned int maxLevel) |
void | setMinMaxLevel (unsigned int minLevel, unsigned int maxLevel) |
unsigned int | getMinLevel () const |
unsigned int | getMaxLevel () const |
void | setLayer (unsigned int layer) |
unsigned int | getLayer () const |
void | setSourceData (SourceData *data) |
SourceData * | getSourceData () |
bool | intersects (const SpatialProperties &sp) const |
void | loadSourceData () |
bool | needReproject (const osg::CoordinateSystemNode *cs) const |
bool | needReproject (const osg::CoordinateSystemNode *cs, double minResolution, double maxResolution) const |
Source * | doReproject (const std::string &filename, osg::CoordinateSystemNode *cs, double targetResolution=0.0) const |
void | buildOverviews () |
void | addRequiredResolution (double resX, double resY) |
void | setRequiredResolutions (ResolutionList &resolutions) |
ResolutionList & | getRequiredResolutions () |
const ResolutionList & | getRequiredResolutions () const |
void | consolodateRequiredResolutions () |
Protected Attributes |
Type | _type |
double | _sortValue |
std::string | _filename |
bool | _temporaryFile |
ParameterPolicy | _coordinateSystemPolicy |
ParameterPolicy | _geoTransformPolicy |
unsigned int | _minLevel |
unsigned int | _maxLevel |
unsigned int | _layer |
osg::ref_ptr< SourceData > | _sourceData |
ResolutionList | _requiredResolutions |