19 static ossimTrace traceDebug(
"ossimRectangleCutFilter:debug");
22 "ossimRectangleCutFilter",
28 theCutType(OSSIM_RECTANGLE_NULL_OUTSIDE)
35 theCutType(OSSIM_RECTANGLE_NULL_OUTSIDE)
56 bool requestIntersects = rect.
intersects( cutRect );
74 if ( !requestCompletelyWithin )
89 if(!cutRect.pointWithin(tempPoint))
114 if(cutRect.pointWithin(tempPoint))
149 vector<ossimIpt>& validVertices,
157 validVertices.push_back(rect.
ul());
158 validVertices.push_back(rect.
ur());
159 validVertices.push_back(rect.
lr());
160 validVertices.push_back(rect.
ll());
164 validVertices.push_back(rect.
ul());
165 validVertices.push_back(rect.
ll());
166 validVertices.push_back(rect.
lr());
167 validVertices.push_back(rect.
ur());
230 const char* prefix)
const 233 newPrefix+=
"clip_rect.";
267 newPrefix+=
"clip_rect.";
272 const char* cutType = kwl.
find(prefix,
"cut_type");
276 if(c ==
"null_inside")
280 else if(c ==
"null_outside")
void setRectangle(const ossimIrect &rect)
ossimRectangleCutType theCutType
vector< ossimDpt > theDecimationList
virtual ossim_uint32 getWidth() const
virtual bool isSourceEnabled() const
virtual ossimIrect getBoundingRect(ossim_uint32 resLevel=0) const
This will return the bounding rect of the source.
bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
Represents serializable keyword/value map.
const char * find(const char *key) const
ossimIrect getBoundingRect(ossim_uint32 resLevel=0) const
This will return the bounding rect of the source.
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=NULL)
Method to the load (recreate) the state of an object from a keyword list.
const ossimIpt & ul() const
virtual ossimDataObjectStatus getDataObjectStatus() const
virtual ossim_uint32 getHeight() const
bool intersects(const ossimIrect &rect) const
const ossimIpt & ll() const
bool completely_within(const ossimIrect &rect) const
void add(const char *prefix, const ossimKeywordlist &kwl, bool overwrite=true)
void setCutType(ossimRectangleCutType cutType)
virtual void initialize()
virtual ossimDataObjectStatus validate() const
bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
ossimImageSource * theInputConnection
unsigned int ossim_uint32
ossimRectangleCutFilter(ossimObject *owner, ossimImageSource *inputSource=NULL)
virtual ossimIrect getImageRectangle() const
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=NULL) 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.
const ossimIpt & lr() const
ossimRefPtr< ossimImageData > getTile(const ossimIrect &rect, ossim_uint32 resLevel=0)
void setNull(ossim_uint32 offset)
const ossimIpt & ur() const
const ossimIrect & getRectangle() const
long toLong() const
toLong's deprecated, please use the toInts...
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
Method to save the state of an object to a keyword list.
const char * c_str() const
Returns a pointer to a null-terminated array of characters representing the string's contents...
bool toRect(const ossimString &rectString)
expected Format: form 1: ( 30, -90, 512, 512, [LH|RH] ) -x- -y- -w- -h- -Right or left handed- ...
virtual void getDecimationFactor(ossim_uint32 resLevel, ossimDpt &result) const
Will return the decimation factor for the given resolution level.
virtual void getValidImageVertices(vector< ossimIpt > &validVertices, ossimVertexOrdering ordering=OSSIM_CLOCKWISE_ORDER, ossim_uint32 resLevel=0) const
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)
virtual void getDecimationFactors(std::vector< ossimDpt > &decimations) const
Will return an array of all decimations for each resolution level.
ossimRectangleCutType getCutType() const
RTTI_DEF1(ossimRectangleCutFilter, "ossimRectangleCutFilter", ossimImageSourceFilter)
virtual ossimRefPtr< ossimImageData > getTile(const ossimIpt &origin, ossim_uint32 resLevel=0)