OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimImageViewTransform.h>
Public Member Functions | |
ossimImageViewTransform () | |
virtual void | forward (const ossimDpt &input, ossimDpt &output) const |
virtual void | inverse (const ossimDpt &input, ossimDpt &output) const |
virtual bool | isIdentity () const =0 |
virtual bool | isValid () const =0 |
virtual ossimDpt | getInputMetersPerPixel () const =0 |
virtual ossimDpt | getOutputMetersPerPixel () const =0 |
virtual void | getImageToViewScale (ossimDpt &resultScale, const ossimDpt &imagePoint, const ossimDpt &deltaImagePointXY) const |
virtual void | getViewToImageScale (ossimDpt &resultScale, const ossimDpt &imagePoint, const ossimDpt &deltaImagePointXY) const |
virtual void | imageToView (const ossimDpt &imagePoint, ossimDpt &viewPoint) const |
virtual void | viewToImage (const ossimDpt &viewPoint, ossimDpt &imagePoint) const |
virtual std::ostream & | print (std::ostream &out) const |
Generic print method. More... | |
ossimDpt | imageToView (const ossimDpt &imagePoint) const |
ossimDpt | viewToImage (const ossimDpt &viewPoint) const |
virtual void | getScaleChangeImageToView (ossimDpt &result, const ossimDrect &imageRect) |
virtual void | getScaleChangeViewToImage (ossimDpt &result, const ossimDrect &viewRect) |
virtual void | getRoundTripErrorView (ossimDpt &result, const ossimDpt &viewPt) const |
virtual ossimDpt | getRoundTripErrorView (const ossimDpt &viewPt) const |
virtual void | getRoundTripErrorImage (ossimDpt &result, const ossimDpt &imagePt) const |
virtual ossimDpt | getRoundTripErrorImage (const ossimDpt &imagePt) const |
virtual ossimDrect | getImageToViewBounds (const ossimDrect &imageRect) const |
Computes the bounding rect in view space of the quad formed by the transformed image points of the input rect corners. More... | |
virtual ossimDrect | getViewToImageBounds (const ossimDrect &viewRect) const |
Computes the bounding rect in image space of the quad formed by the transformed view points of the input rect corners. More... | |
virtual bool | loadState (const ossimKeywordlist &kwl, const char *prefix=0) |
virtual bool | saveState (ossimKeywordlist &kwl, const char *prefix=0) const |
![]() | |
virtual void | forward (ossimDpt &modify_this) const |
virtual void | inverse (ossimDpt &modify_this) const |
virtual const ossim2dTo2dTransform & | operator= (const ossim2dTo2dTransform &rhs) |
virtual ossimDpt | getOrigin () const |
void | setConvergenceThreshold (const double &new_threshold) |
void | setMaxIterations (int new_max_iters) |
void | setDxDy (const ossimDpt &dxdy) |
![]() | |
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 | isEqualTo (const ossimObject &obj, ossimCompareType compareType=OSSIM_COMPARE_FULL) const |
virtual void | accept (ossimVisitor &visitor) |
![]() | |
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 |
![]() | |
ossimViewInterface () | |
ossimViewInterface (ossimObject *base) | |
virtual | ~ossimViewInterface () |
virtual bool | setView (ossimObject *baseObject)=0 |
virtual ossimObject * | getView ()=0 |
virtual const ossimObject * | getView () const =0 |
virtual void | refreshView () |
ossimObject * | getBaseObject () |
Friends | |
OSSIMDLLEXPORT ostream & | operator<< (ostream &out, const ossimImageViewTransform &data) |
Additional Inherited Members | |
![]() | |
ossim2dTo2dTransform () | |
virtual | ~ossim2dTo2dTransform () |
![]() | |
virtual | ~ossimReferenced () |
![]() | |
double | theConvergenceThreshold |
int | theMaxIterations |
ossimDpt | theDxDy |
![]() | |
ossimObject * | theObject |
Definition at line 25 of file ossimImageViewTransform.h.
ossimImageViewTransform::ossimImageViewTransform | ( | ) |
Definition at line 9 of file ossimImageViewTransform.cpp.
References ossimViewInterface::theObject.
Implements ossim2dTo2dTransform.
Definition at line 17 of file ossimImageViewTransform.cpp.
References imageToView().
|
virtual |
Computes the bounding rect in view space of the quad formed by the transformed image points of the input rect corners.
Reimplemented in ossimImageViewProjectionTransform.
Definition at line 294 of file ossimImageViewTransform.cpp.
References imageToView(), ossimDrect::ll(), ossimDrect::lr(), ossimDrect::ul(), and ossimDrect::ur().
Referenced by ossimImageViewProjectionTransform::getImageToViewBounds(), and ossimImageRenderer::initializeBoundingRects().
|
virtual |
If it needs to it will use the information passed in to get the scae factor by transforming the line point.x to point.x+deltaXY and point.y to point.y + deltaXY.y. It will comput new delta's and set the ratio of deltaXY/newDeltaXY to the result scale.
Derived classes can overide this default implementation. Note: if the scale changes are only subpixel then it will return a scale of one. We have to see how this works before we actually keep this implementation.
Definition at line 214 of file ossimImageViewTransform.cpp.
References FLT_EPSILON, imageToView(), ossimDpt::x, and ossimDpt::y.
|
pure virtual |
Implemented in ossimImageViewProjectionTransform, and ossimImageViewAffineTransform.
|
pure virtual |
Implemented in ossimImageViewProjectionTransform, and ossimImageViewAffineTransform.
|
virtual |
Definition at line 92 of file ossimImageViewTransform.cpp.
References ossimDpt::hasNans(), imageToView(), ossimDpt::makeNan(), and viewToImage().
Definition at line 119 of file ossimImageViewTransform.cpp.
References getRoundTripErrorView().
|
virtual |
Definition at line 59 of file ossimImageViewTransform.cpp.
References ossimDpt::hasNans(), imageToView(), ossimDpt::makeNan(), and viewToImage().
Referenced by getRoundTripErrorImage(), and getRoundTripErrorView().
Definition at line 85 of file ossimImageViewTransform.cpp.
References getRoundTripErrorView().
|
virtual |
This should compute output/input.
Definition at line 138 of file ossimImageViewTransform.cpp.
References ossimDpt::hasNans(), ossimDrect::hasNans(), ossimDrect::height(), imageToView(), ossimDrect::ll(), ossimDrect::lr(), ossimDpt::makeNan(), ossimDrect::ul(), ossimDrect::ur(), ossimDrect::width(), ossimDpt::x, and ossimDpt::y.
|
virtual |
This should compute output/input.
Definition at line 176 of file ossimImageViewTransform.cpp.
References ossimDpt::hasNans(), ossimDrect::hasNans(), ossimDrect::height(), imageToView(), ossimDrect::ll(), ossimDrect::lr(), ossimDpt::makeNan(), ossimDrect::ul(), ossimDrect::ur(), ossimDrect::width(), ossimDpt::x, and ossimDpt::y.
|
virtual |
Computes the bounding rect in image space of the quad formed by the transformed view points of the input rect corners.
Definition at line 309 of file ossimImageViewTransform.cpp.
References ossimDrect::ll(), ossimDrect::lr(), ossimDrect::ul(), ossimDrect::ur(), and viewToImage().
|
virtual |
If it needs to it will use the information passed in to get the scae factor by transforming the line point.x to point.x+deltaXY and point.y to point.y + deltaXY.y. It will comput new delta's and set the ratio of deltaXY/newDeltaXY to the result scale.
Derived classes can overide this default implementation. Note: if the scale changes are only subpixel then it will return a scale of one. We have to see how this works before we actually keep this implementation.
Definition at line 254 of file ossimImageViewTransform.cpp.
References FLT_EPSILON, viewToImage(), ossimDpt::x, and ossimDpt::y.
|
virtual |
Reimplemented in ossimImageViewAffineTransform, and ossimImageViewProjectionTransform.
Definition at line 29 of file ossimImageViewTransform.cpp.
Referenced by forward(), getImageToViewBounds(), getImageToViewScale(), getRoundTripErrorImage(), getRoundTripErrorView(), getScaleChangeImageToView(), getScaleChangeViewToImage(), ossimImageRenderer::getValidImageVertices(), ossimIvtGeomXform::imageToView(), and imageToView().
Definition at line 41 of file ossimImageViewTransform.cpp.
References imageToView().
Reimplemented from ossim2dTo2dTransform.
Definition at line 23 of file ossimImageViewTransform.cpp.
References viewToImage().
|
pure virtual |
derived classes will specify if the imageViewTransform is an identity.
Implemented in ossimImageViewAffineTransform, and ossimImageViewProjectionTransform.
|
pure virtual |
|
virtual |
Method to the load (recreate) the state of the object from a keyword list. Return true if ok or false on error.
Reimplemented from ossim2dTo2dTransform.
Reimplemented in ossimImageViewAffineTransform, and ossimImageViewProjectionTransform.
Definition at line 126 of file ossimImageViewTransform.cpp.
References ossim2dTo2dTransform::loadState().
Referenced by ossimImageViewTransformFactory::createTransform(), ossimImageViewProjectionTransform::loadState(), and ossimImageViewAffineTransform::loadState().
|
virtual |
Generic print method.
Derived classes should re-implement as they see fit.
Reimplemented from ossim2dTo2dTransform.
Reimplemented in ossimImageViewProjectionTransform.
Definition at line 324 of file ossimImageViewTransform.cpp.
Referenced by operator<<().
|
virtual |
Method to save the state of the object to a keyword list. Return true if ok or false on error.
Reimplemented from ossim2dTo2dTransform.
Reimplemented in ossimImageViewAffineTransform, and ossimImageViewProjectionTransform.
Definition at line 132 of file ossimImageViewTransform.cpp.
References ossim2dTo2dTransform::saveState().
Referenced by ossimImageRenderer::saveState(), ossimImageViewProjectionTransform::saveState(), and ossimImageViewAffineTransform::saveState().
|
virtual |
Reimplemented in ossimImageViewAffineTransform, and ossimImageViewProjectionTransform.
Definition at line 35 of file ossimImageViewTransform.cpp.
References ossim2dTo2dTransform::inverse().
Referenced by getRoundTripErrorImage(), getRoundTripErrorView(), getViewToImageBounds(), getViewToImageScale(), inverse(), ossimIvtGeomXform::viewToImage(), and viewToImage().
Definition at line 50 of file ossimImageViewTransform.cpp.
References viewToImage().
|
friend |