19 static const char* CURRENT_RLEVEL_KW =
"current_rlevel";
20 static const char* OVERRIDE_GEOMETRY_KW =
"override_geometry";
22 static ossimTrace traceDebug(
"ossimRLevelFilter:debug");
30 theOverrideGeometryFlag(false)
92 if ((!inputGeom) || (rlevel == 0) || (
getEnableFlag() ==
false))
118 decimation.
x = 1.0/decimation.
x;
119 decimation.
y = 1.0/decimation.
y;
149 <<
"ossimRLevelFilter::getSummedDecimation WARNING:" 150 <<
"\nNans returned from getDecimationFactor!" 162 <<
"ossimRLevelFilter::getSummedDecimation result: " << result
204 const char* current = kwl.
find(prefix, CURRENT_RLEVEL_KW);
205 const char*
override = kwl.
find(prefix, OVERRIDE_GEOMETRY_KW);
221 const char* prefix)
const 229 OVERRIDE_GEOMETRY_KW,
ossimRLevelFilter()
default constructor
virtual bool isSourceEnabled() const
virtual ossimIrect getBoundingRect(ossim_uint32 resLevel=0) const
This will return the bounding rect of the source.
void getSummedDecimation(ossimDpt &result) const
ossimRefPtr< ossimImageGeometry > m_ScaledGeometry
The input image geometry, altered by the scale.
ossimRefPtr< ossimImageGeometry > getImageGeometry()
Returns a pointer reference to the active image geometry at this filter.
virtual void setCurrentRLevel(ossim_uint32 rlevel)
Represents serializable keyword/value map.
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
Method to save the state of an object to a keyword list.
const char * find(const char *key) const
virtual bool getOverrideGeometryFlag() const
virtual ossimRefPtr< ossimImageData > getTile(const ossimIrect &tileRect, ossim_uint32 resLevel=0)
void updateGeometry()
If this object is maintaining an ossimImageGeometry, this method needs to be called after a scale cha...
virtual void applyScale(const ossimDpt &scale, bool recenterTiePoint)
Applies scale to theDeltaLonPerPixel, theDeltaLatPerPixel and theMetersPerPixel data members (eg: the...
virtual bool getEnableFlag() const
ossim_uint32 theCurrentRLevel
bool theOverrideGeometryFlag
void add(const char *prefix, const ossimKeywordlist &kwl, bool overwrite=true)
bool toBool() const
String to numeric methods.
ossimImageSource * theInputConnection
unsigned int ossim_uint32
virtual ~ossimRLevelFilter()
virtual destructor.
RTTI_DEF1(ossimRLevelFilter, "ossimRLevelFilter", ossimImageSourceFilter)
unsigned long toULong() const
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
Method to the load (recreate) the state of an object from a keyword list.
virtual void getDecimationFactor(ossim_uint32 resLevel, ossimDpt &result) const
Will return the decimation factor for the given resolution level.
virtual ossimRefPtr< ossimImageGeometry > getImageGeometry()
Returns the image geometry object associated with this tile source or NULL if not defined...
Container class that holds both 2D transform and 3D projection information for an image Only one inst...
virtual void setOverrideGeometryFlag(bool override)
const ossimProjection * getProjection() const
Access methods for projection (may be NULL pointer).
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
Method to save the state of an object to a keyword list.
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
Method to the load (recreate) the state of an object from a keyword list.
virtual ossimIrect getBoundingRect(ossim_uint32 resLevel=0) const
Returns the bounding rectangle.
virtual void getDecimationFactor(ossim_uint32 resLevel, ossimDpt &result) const
Will return the decimation factor for the given resolution level.
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)
virtual ossimRefPtr< ossimImageData > getTile(const ossimIpt &origin, ossim_uint32 resLevel=0)
virtual ossim_uint32 getCurrentRLevel() const