OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimImageViewAffineTransform.h>
Public Member Functions | |
ossimImageViewAffineTransform (double rotateDegrees=0.0, double imageScaleX=1.0, double imageScaleY=1.0, double scaleXValue=1.0, double scaleYValue=1.0, double translateXValue=0.0, double translateYValue=0.0, double pivotXValue=0.0, double pivotYValue=0.0) | |
virtual | ~ossimImageViewAffineTransform () |
ossimImageViewAffineTransform (const ossimImageViewAffineTransform &src) | |
virtual ossimObject * | dup () const |
virtual void | imageToView (const ossimDpt &imagePoint, ossimDpt &viewPoint) const |
virtual void | viewToImage (const ossimDpt &viewPoint, ossimDpt &imagePoint) const |
void | setMatrix (NEWMAT::Matrix &matrix) |
const NEWMAT::Matrix & | getMatrix () const |
virtual bool | isIdentity () const |
virtual bool | isValid () const |
virtual bool | setView (ossimObject *obj) |
virtual ossimObject * | getView () |
virtual const ossimObject * | getView () const |
virtual ossimDpt | getInputMetersPerPixel () const |
virtual ossimDpt | getOutputMetersPerPixel () const |
virtual void | translate (double deltaX, double deltaY) |
virtual void | translateX (double deltaX) |
virtual void | translateY (double deltaY) |
virtual void | pivot (double originX, double originY) |
virtual void | pivotX (double originX) |
virtual void | pivotY (double originY) |
virtual void | imageSpaceScale (double x, double y) |
virtual void | imageSpaceScaleX (double x) |
virtual void | imageSpaceScaleY (double y) |
virtual void | scale (double x, double y) |
virtual void | scaleX (double x) |
virtual void | scaleY (double y) |
virtual void | rotate (double degrees) |
ossim_float64 | getRotation () const |
const ossimDpt & | getScale () const |
const ossimDpt & | getTranslate () const |
const ossimDpt & | getPivot () const |
virtual bool | isEqualTo (const ossimObject &obj, ossimCompareType compareType=OSSIM_COMPARE_FULL) const |
virtual bool | loadState (const ossimKeywordlist &kwl, const char *prefix=0) |
virtual bool | saveState (ossimKeywordlist &kwl, const char *prefix=0) const |
![]() | |
ossimImageViewTransform () | |
virtual void | forward (const ossimDpt &input, ossimDpt &output) const |
virtual void | inverse (const ossimDpt &input, ossimDpt &output) const |
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 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 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 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 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 void | refreshView () |
ossimObject * | getBaseObject () |
Protected Member Functions | |
void | buildCompositeTransform () |
![]() | |
ossim2dTo2dTransform () | |
virtual | ~ossim2dTo2dTransform () |
![]() | |
virtual | ~ossimReferenced () |
Protected Attributes | |
NEWMAT::Matrix | m_transform |
NEWMAT::Matrix | m_inverseTransform |
ossim_float64 | m_rotation |
ossimDpt | m_imageSpaceScale |
ossimDpt | m_scale |
ossimDpt | m_translate |
ossimDpt | m_pivot |
![]() | |
double | theConvergenceThreshold |
int | theMaxIterations |
ossimDpt | theDxDy |
![]() | |
ossimObject * | theObject |
Definition at line 17 of file ossimImageViewAffineTransform.h.
ossimImageViewAffineTransform::ossimImageViewAffineTransform | ( | double | rotateDegrees = 0.0 , |
double | imageScaleX = 1.0 , |
||
double | imageScaleY = 1.0 , |
||
double | scaleXValue = 1.0 , |
||
double | scaleYValue = 1.0 , |
||
double | translateXValue = 0.0 , |
||
double | translateYValue = 0.0 , |
||
double | pivotXValue = 0.0 , |
||
double | pivotYValue = 0.0 |
||
) |
Definition at line 18 of file ossimImageViewAffineTransform.cpp.
|
virtual |
Definition at line 50 of file ossimImageViewAffineTransform.cpp.
|
inline |
Definition at line 31 of file ossimImageViewAffineTransform.h.
|
protected |
Definition at line 176 of file ossimImageViewAffineTransform.cpp.
References ossimMatrix3x3::createRotationZMatrix(), m_imageSpaceScale, m_inverseTransform, m_pivot, m_rotation, m_scale, m_transform, m_translate, ossimDpt::x, and ossimDpt::y.
Referenced by imageSpaceScale(), loadState(), pivot(), rotate(), scale(), and translate().
|
inlinevirtual |
Reimplemented from ossimObject.
Definition at line 42 of file ossimImageViewAffineTransform.h.
|
virtual |
Implements ossimImageViewTransform.
Definition at line 312 of file ossimImageViewAffineTransform.cpp.
const NEWMAT::Matrix & ossimImageViewAffineTransform::getMatrix | ( | ) | const |
Definition at line 75 of file ossimImageViewAffineTransform.cpp.
References m_transform.
|
virtual |
Implements ossimImageViewTransform.
Definition at line 317 of file ossimImageViewAffineTransform.cpp.
References ossimDpt::makeNan().
|
inline |
Definition at line 155 of file ossimImageViewAffineTransform.h.
|
inline |
Definition at line 152 of file ossimImageViewAffineTransform.h.
|
inline |
Definition at line 153 of file ossimImageViewAffineTransform.h.
|
inline |
Definition at line 154 of file ossimImageViewAffineTransform.h.
|
virtual |
Implements ossimViewInterface.
Definition at line 302 of file ossimImageViewAffineTransform.cpp.
|
virtual |
Implements ossimViewInterface.
Definition at line 307 of file ossimImageViewAffineTransform.cpp.
|
virtual |
Will allow you to specify an image scale for both the x and y direction.
Definition at line 106 of file ossimImageViewAffineTransform.cpp.
References buildCompositeTransform(), m_imageSpaceScale, x, and y.
Referenced by imageSpaceScaleX(), and imageSpaceScaleY().
|
virtual |
Will allow you to specify an image scale along the X direction.
Definition at line 112 of file ossimImageViewAffineTransform.cpp.
References imageSpaceScale(), m_imageSpaceScale, x, and ossimDpt::y.
|
virtual |
Will allow you to an image scale along the Y direction.
Definition at line 117 of file ossimImageViewAffineTransform.cpp.
References imageSpaceScale(), m_imageSpaceScale, ossimDpt::x, and y.
|
virtual |
Reimplemented from ossimImageViewTransform.
Definition at line 54 of file ossimImageViewAffineTransform.cpp.
References m_transform, ossimDpt::x, and ossimDpt::y.
Referenced by ossimChipperUtil::addCrossHairAnnotation().
|
virtual |
Reimplemented from ossimObject.
Definition at line 326 of file ossimImageViewAffineTransform.cpp.
References ossim::almostEqual(), ossimObject::isEqualTo(), ossimDpt::isEqualTo(), m_imageSpaceScale, m_pivot, m_rotation, m_scale, and m_translate.
|
inlinevirtual |
derived classes will specify if the imageViewTransform is an identity.
Implements ossimImageViewTransform.
Definition at line 59 of file ossimImageViewAffineTransform.h.
|
virtual |
Implements ossimImageViewTransform.
Definition at line 281 of file ossimImageViewAffineTransform.cpp.
|
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 ossimImageViewTransform.
Definition at line 213 of file ossimImageViewAffineTransform.cpp.
References buildCompositeTransform(), ossimKeywordlist::find(), ossimImageViewTransform::loadState(), m_imageSpaceScale, m_pivot, m_rotation, m_scale, m_translate, and ossimDpt::toPoint().
|
virtual |
Translate the origin for rotation in the x and y direction.
Definition at line 149 of file ossimImageViewAffineTransform.cpp.
References buildCompositeTransform(), m_pivot, ossimDpt::x, and ossimDpt::y.
Referenced by pivotX(), and pivotY().
|
virtual |
Translate the origin for rotation in the x direction.
Definition at line 156 of file ossimImageViewAffineTransform.cpp.
References m_pivot, pivot(), and ossimDpt::y.
|
virtual |
Translate the origin for rotation in the y direction.
Definition at line 161 of file ossimImageViewAffineTransform.cpp.
References m_pivot, pivot(), and ossimDpt::x.
|
virtual |
Will apply a rotation
Definition at line 166 of file ossimImageViewAffineTransform.cpp.
References buildCompositeTransform(), and m_rotation.
|
virtual |
Method to save the state of the object to a keyword list. Return true if ok or false on error.
Reimplemented from ossimImageViewTransform.
Definition at line 247 of file ossimImageViewAffineTransform.cpp.
References ossimKeywordlist::add(), m_imageSpaceScale, m_pivot, m_rotation, m_scale, m_translate, ossimImageViewTransform::saveState(), and ossimDpt::toString().
|
virtual |
will allow you to specify a scale for both the x and y direction.
Definition at line 122 of file ossimImageViewAffineTransform.cpp.
References buildCompositeTransform(), m_scale, x, and y.
Referenced by ossimKakaduJpipHandler::getTile(), scaleX(), and scaleY().
|
virtual |
will alow you to specify a scale along the X direction.
Definition at line 139 of file ossimImageViewAffineTransform.cpp.
References m_scale, scale(), x, and ossimDpt::y.
|
virtual |
Will allow you to scale along the Y direction.
Definition at line 144 of file ossimImageViewAffineTransform.cpp.
References m_scale, scale(), ossimDpt::x, and y.
void ossimImageViewAffineTransform::setMatrix | ( | NEWMAT::Matrix & | matrix | ) |
Definition at line 69 of file ossimImageViewAffineTransform.cpp.
References m_inverseTransform, and m_transform.
|
virtual |
The derived classes should overrid this method and return true or false whether it was able to cast the past in view to a view that it can interface to. So if you are a projective view you might cast to an ossimProjection. The ownsTheView specifies whether or not it owns the passed in view pointer. This will specifiy whether or not the derived classes need to re-allocate the pointer or just delete its old pointer and set it to the passed in pointer.
Implements ossimViewInterface.
Definition at line 286 of file ossimImageViewAffineTransform.cpp.
References m_imageSpaceScale, m_inverseTransform, m_pivot, m_rotation, m_scale, m_transform, and m_translate.
|
virtual |
Translate in the x and y direction.
Definition at line 80 of file ossimImageViewAffineTransform.cpp.
References buildCompositeTransform(), and m_translate.
Referenced by translateX(), and translateY().
|
virtual |
Translate in the x direction.
Definition at line 96 of file ossimImageViewAffineTransform.cpp.
References m_translate, translate(), and ossimDpt::y.
|
virtual |
Translate in the Y direction.
Definition at line 101 of file ossimImageViewAffineTransform.cpp.
References m_translate, translate(), and ossimDpt::x.
|
virtual |
Reimplemented from ossimImageViewTransform.
Definition at line 62 of file ossimImageViewAffineTransform.cpp.
References m_inverseTransform, ossimDpt::x, and ossimDpt::y.
|
protected |
Definition at line 179 of file ossimImageViewAffineTransform.h.
Referenced by buildCompositeTransform(), imageSpaceScale(), imageSpaceScaleX(), imageSpaceScaleY(), isEqualTo(), loadState(), saveState(), and setView().
|
protected |
Definition at line 177 of file ossimImageViewAffineTransform.h.
Referenced by buildCompositeTransform(), setMatrix(), setView(), and viewToImage().
|
protected |
Definition at line 182 of file ossimImageViewAffineTransform.h.
Referenced by buildCompositeTransform(), isEqualTo(), loadState(), pivot(), pivotX(), pivotY(), saveState(), and setView().
|
protected |
Definition at line 178 of file ossimImageViewAffineTransform.h.
Referenced by buildCompositeTransform(), isEqualTo(), loadState(), rotate(), saveState(), and setView().
|
protected |
Definition at line 180 of file ossimImageViewAffineTransform.h.
Referenced by buildCompositeTransform(), isEqualTo(), loadState(), saveState(), scale(), scaleX(), scaleY(), and setView().
|
protected |
This is the transformation from image to viewing coordinates. If this matrix is changed it will perform an inverse to solve the inverse transform.
Definition at line 176 of file ossimImageViewAffineTransform.h.
Referenced by buildCompositeTransform(), getMatrix(), imageToView(), setMatrix(), and setView().
|
protected |
Definition at line 181 of file ossimImageViewAffineTransform.h.
Referenced by buildCompositeTransform(), isEqualTo(), loadState(), saveState(), setView(), translate(), translateX(), and translateY().