|
OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
Class to handle transforming image points, rectangles, and offsets from one reduced resolution data set (rrds) level to another. More...
#include <ossimImageModel.h>
Public Member Functions | |
| ossimImageModel () | |
| default constructor More... | |
| virtual void | initialize (const ossimImageHandler &ih) |
| Method to initialize class from an image handler. More... | |
| void | rnToR0 (ossim_uint32 rrds, const ossimDpt &rnPt, ossimDpt &r0Pt) const |
| Get r0 point from rn point. More... | |
| void | rnToR0 (const ossimDpt &rnPt, ossimDpt &r0Pt) const |
| Get r0 point from rn point. More... | |
| void | r0ToRn (ossim_uint32 rrds, const ossimDpt &r0Pt, ossimDpt &rnPt) const |
| Get rn point from r0 point. More... | |
| void | r0ToRn (const ossimDpt &r0Pt, ossimDpt &rnPt) const |
| Get rn point from r0 point. More... | |
| void | getSubImageOffset (ossim_uint32 rrds, ossimDpt &offset) const |
| Get the sub image offset for a given resolution level. More... | |
| void | getImageRectangle (ossim_uint32 rrds, ossimDrect &rect) const |
| Gets the zero-based image rectangle for a given reduced resolution data set. More... | |
| void | getBoundingRectangle (ossim_uint32 rrds, ossimDrect &rect) const |
| Gets the model-based image rectangle for a given reduced resolution data set. More... | |
| ossim_uint32 | getNumberOfDecimationLevels () const |
| void | setTargetRrds (ossim_uint32 rrds) |
| Set theTargetRrds data member. More... | |
| ossim_uint32 | getTargetRrds () const |
Public Member Functions inherited from ossimObject | |
| ossimObject () | |
| virtual | ~ossimObject () |
| virtual ossimObject * | dup () const |
| virtual ossimString | getShortName () const |
| virtual ossimString | getLongName () const |
| virtual ossimString | getDescription () const |
| virtual ossimString | getClassName () const |
| virtual RTTItypeid | getType () const |
| virtual bool | canCastTo (ossimObject *obj) const |
| virtual bool | canCastTo (const RTTItypeid &id) const |
| virtual bool | canCastTo (const ossimString &parentClassName) const |
| virtual bool | saveState (ossimKeywordlist &kwl, const char *prefix=0) const |
| virtual bool | loadState (const ossimKeywordlist &kwl, const char *prefix=0) |
| virtual std::ostream & | print (std::ostream &out) const |
| Generic print method. More... | |
| virtual bool | isEqualTo (const ossimObject &obj, ossimCompareType compareType=OSSIM_COMPARE_FULL) const |
| virtual void | accept (ossimVisitor &visitor) |
Public Member Functions inherited from ossimReferenced | |
| ossimReferenced () | |
| ossimReferenced (const ossimReferenced &) | |
| ossimReferenced & | operator= (const ossimReferenced &) |
| void | ref () const |
| increment the reference count by one, indicating that this object has another pointer which is referencing it. More... | |
| void | unref () const |
| decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
| void | unref_nodelete () const |
| decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
| int | referenceCount () const |
Protected Member Functions | |
| virtual | ~ossimImageModel () |
| virtual destructor More... | |
Protected Member Functions inherited from ossimReferenced | |
| virtual | ~ossimReferenced () |
Protected Attributes | |
| ossimDpt | theSubImageOffset |
| Offset from the full image. More... | |
| std::vector< ossimDpt > | theDecimationFactors |
| Decimation factors for each rrds level. More... | |
| ossim_uint32 | theLines |
| ossim_uint32 | theSamples |
| ossim_uint32 | theTargetRrds |
Class to handle transforming image points, rectangles, and offsets from one reduced resolution data set (rrds) level to another.
Derived from ossimObject only so users can pass via the ossimViewInterface::setView method.
Definition at line 33 of file ossimImageModel.h.
| ossimImageModel::ossimImageModel | ( | ) |
default constructor
Definition at line 23 of file ossimImageModel.cpp.
|
protectedvirtual |
| void ossimImageModel::getBoundingRectangle | ( | ossim_uint32 | rrds, |
| ossimDrect & | rect | ||
| ) | const |
Gets the model-based image rectangle for a given reduced resolution data set.
If this image is a sub image the offset is applied. So if the image has a sub image offset of (1024, 1024), and has 1024 lines and 1024 samples the rectangle for r0 will be: (1024, 1024) (2047, 2047)
| rrds | The reduced resolution data set. |
| rect | Initialized with image rectangle for rrds. |
Definition at line 118 of file ossimImageModel.cpp.
References theDecimationFactors, theLines, theSamples, theSubImageOffset, ossimDpt::x, and ossimDpt::y.
| void ossimImageModel::getImageRectangle | ( | ossim_uint32 | rrds, |
| ossimDrect & | rect | ||
| ) | const |
Gets the zero-based image rectangle for a given reduced resolution data set.
| rrds | The reduced resolution data set. |
| rect | Initialized with image rectangle for rrds. |
Definition at line 101 of file ossimImageModel.cpp.
References theDecimationFactors, theLines, and theSamples.
| ossim_uint32 ossimImageModel::getNumberOfDecimationLevels | ( | ) | const |
Definition at line 138 of file ossimImageModel.cpp.
References theDecimationFactors.
| void ossimImageModel::getSubImageOffset | ( | ossim_uint32 | rrds, |
| ossimDpt & | offset | ||
| ) | const |
Get the sub image offset for a given resolution level.
| rrds | The reduced resolution data set. |
| offset | the Point to initialize. |
Definition at line 86 of file ossimImageModel.cpp.
References theDecimationFactors, theSubImageOffset, ossimDpt::x, and ossimDpt::y.
| ossim_uint32 ossimImageModel::getTargetRrds | ( | ) | const |
Definition at line 148 of file ossimImageModel.cpp.
References theTargetRrds.
|
virtual |
Method to initialize class from an image handler.
| ih | Image handler. |
Reimplemented in ossimImageProjectionModel.
Definition at line 37 of file ossimImageModel.cpp.
References ossimImageHandler::getDecimationFactors(), ossimImageHandler::getNumberOfLines(), ossimImageHandler::getNumberOfSamples(), theDecimationFactors, theLines, theSamples, and theSubImageOffset.
Referenced by ossimImageProjectionModel::initialize().
| void ossimImageModel::r0ToRn | ( | ossim_uint32 | rrds, |
| const ossimDpt & | r0Pt, | ||
| ossimDpt & | rnPt | ||
| ) | const |
Get rn point from r0 point.
| rrds | Target (rnPt) reduced resolution data set. |
| r0Pt | The image point to tranform. |
| rnPt | the Point to initialize. |
Definition at line 65 of file ossimImageModel.cpp.
References theDecimationFactors, ossimDpt::x, and ossimDpt::y.
Referenced by r0ToRn().
Get rn point from r0 point.
This requires calling setTargetRrds(ossim_uint32 rrds) to the level for rnPt.
| r0Pt | The image point to tranform. |
| rnPt | the Point to initialize. |
Definition at line 81 of file ossimImageModel.cpp.
References r0ToRn(), and theTargetRrds.
| void ossimImageModel::rnToR0 | ( | ossim_uint32 | rrds, |
| const ossimDpt & | rnPt, | ||
| ossimDpt & | r0Pt | ||
| ) | const |
Get r0 point from rn point.
| rrds | Source (rnPt) reduced resolution data set. |
| rnPt | The image point to tranform. |
| r0Pt | the Point to initialize. |
Definition at line 45 of file ossimImageModel.cpp.
References theDecimationFactors, ossimDpt::x, and ossimDpt::y.
Referenced by rnToR0().
Get r0 point from rn point.
This requires calling setTargetRrds(ossim_uint32 rrds) to the level for rnPt.
| rnPt | The image point to tranform. |
| r0Pt | the Point to initialize. |
Definition at line 60 of file ossimImageModel.cpp.
References rnToR0(), and theTargetRrds.
| void ossimImageModel::setTargetRrds | ( | ossim_uint32 | rrds | ) |
Set theTargetRrds data member.
This is used by methods rnToR0 and r0ToRn that do not take a rrds argument.
| rrds | Target reduced resolution data set. |
Definition at line 143 of file ossimImageModel.cpp.
References theTargetRrds.
|
protected |
Decimation factors for each rrds level.
Definition at line 180 of file ossimImageModel.h.
Referenced by getBoundingRectangle(), getImageRectangle(), getNumberOfDecimationLevels(), getSubImageOffset(), initialize(), r0ToRn(), and rnToR0().
|
protected |
Definition at line 182 of file ossimImageModel.h.
Referenced by getBoundingRectangle(), getImageRectangle(), and initialize().
|
protected |
Definition at line 183 of file ossimImageModel.h.
Referenced by getBoundingRectangle(), getImageRectangle(), and initialize().
|
protected |
Offset from the full image.
Definition at line 177 of file ossimImageModel.h.
Referenced by getBoundingRectangle(), getSubImageOffset(), and initialize().
|
protected |
Definition at line 184 of file ossimImageModel.h.
Referenced by getTargetRrds(), r0ToRn(), rnToR0(), and setTargetRrds().
1.8.14