OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimAffineTransform.h>
Public Member Functions | |
ossimAffineTransform () | |
ossimAffineTransform (const ossimAffineTransform &src) | |
virtual const ossimAffineTransform & | operator= (const ossimAffineTransform &rhs) |
assignment operator= More... | |
virtual ossimObject * | dup () const |
virtual void | forward (const ossimDpt &input, ossimDpt &output) const |
virtual void | inverse (const ossimDpt &input, ossimDpt &output) const |
virtual ossimDpt | getOrigin () const |
bool | saveState (ossimKeywordlist &kwl, const char *prefix=0) const |
bool | loadState (const ossimKeywordlist &kwl, const char *prefix=0) |
void | setMatrix (double rotation, const ossimDpt &scale, const ossimDpt &translation) |
void | setScale (const ossimDpt &scale) |
void | setRotation (double rotation) |
void | setTranslation (const ossimDpt &translation) |
ossimDpt | getScale () const |
ossimDpt | getTranslation () const |
double | getRotation () const |
void | setIdentity () |
void | setAffineEnabledFlag (bool flag) |
virtual std::ostream & | print (std::ostream &out) const |
Generic print method. More... | |
![]() | |
virtual void | forward (ossimDpt &modify_this) const |
virtual void | inverse (ossimDpt &modify_this) const |
virtual const ossim2dTo2dTransform & | operator= (const ossim2dTo2dTransform &rhs) |
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 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 |
Protected Member Functions | |
void | computeMatrix () |
![]() | |
ossim2dTo2dTransform () | |
virtual | ~ossim2dTo2dTransform () |
![]() | |
virtual | ~ossimReferenced () |
Protected Attributes | |
ossimDpt | theScale |
double | theRotation |
ossimDpt | theTranslation |
bool | theAffineEnabledFlag |
NEWMAT::Matrix | theForwardXform |
NEWMAT::Matrix | theInverseXform |
![]() | |
double | theConvergenceThreshold |
int | theMaxIterations |
ossimDpt | theDxDy |
Definition at line 16 of file ossimAffineTransform.h.
ossimAffineTransform::ossimAffineTransform | ( | ) |
Definition at line 25 of file ossimAffineTransform.cpp.
References setIdentity().
ossimAffineTransform::ossimAffineTransform | ( | const ossimAffineTransform & | src | ) |
Definition at line 38 of file ossimAffineTransform.cpp.
|
protected |
Definition at line 210 of file ossimAffineTransform.cpp.
References ossimMatrix3x3::createRotationZMatrix(), ossimMatrix3x3::createScaleMatrix(), ossimMatrix3x3::createTranslationMatrix(), theForwardXform, theInverseXform, theRotation, theScale, theTranslation, ossimDpt::x, and ossimDpt::y.
Referenced by loadState(), setIdentity(), and setMatrix().
|
inlinevirtual |
Reimplemented from ossimObject.
Definition at line 30 of file ossimAffineTransform.h.
Implements ossim2dTo2dTransform.
Definition at line 70 of file ossimAffineTransform.cpp.
References theAffineEnabledFlag, theForwardXform, ossimDpt::x, and ossimDpt::y.
|
inlinevirtual |
Used by the inverse iterator. This will give it a good initial value that is within the input transforms
Reimplemented from ossim2dTo2dTransform.
Definition at line 43 of file ossimAffineTransform.h.
|
inline |
Definition at line 83 of file ossimAffineTransform.h.
|
inline |
Definition at line 75 of file ossimAffineTransform.h.
|
inline |
Definition at line 79 of file ossimAffineTransform.h.
Reimplemented from ossim2dTo2dTransform.
Definition at line 91 of file ossimAffineTransform.cpp.
References theAffineEnabledFlag, theInverseXform, ossimDpt::x, and ossimDpt::y.
|
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.
Definition at line 144 of file ossimAffineTransform.cpp.
References computeMatrix(), ossimKeywordlist::find(), ossim2dTo2dTransform::loadState(), ossimKeywordNames::ROTATION_KW, ossimKeywordNames::SCALE_X_KW, ossimKeywordNames::SCALE_Y_KW, theRotation, theScale, theTranslation, ossimKeywordNames::TRANSLATION_X_KW, ossimKeywordNames::TRANSLATION_Y_KW, ossimDpt::x, and ossimDpt::y.
|
virtual |
assignment operator=
rhs | The data to assign from. |
A | reference to this object. |
Definition at line 50 of file ossimAffineTransform.cpp.
References ossim2dTo2dTransform::operator=(), theAffineEnabledFlag, theForwardXform, theInverseXform, theRotation, theScale, and theTranslation.
|
virtual |
Generic print method.
Derived classes should re-implement as they see fit.
Reimplemented from ossim2dTo2dTransform.
Definition at line 230 of file ossimAffineTransform.cpp.
References theRotation, theScale, and theTranslation.
|
virtual |
Method to save the state of the object to a keyword list. Return true if ok or false on error.
Reimplemented from ossim2dTo2dTransform.
Definition at line 112 of file ossimAffineTransform.cpp.
References ossimKeywordlist::add(), ossimKeywordNames::ROTATION_KW, ossim2dTo2dTransform::saveState(), ossimKeywordNames::SCALE_X_KW, ossimKeywordNames::SCALE_Y_KW, theRotation, theScale, theTranslation, ossimKeywordNames::TRANSLATION_X_KW, ossimKeywordNames::TRANSLATION_Y_KW, ossimDpt::x, and ossimDpt::y.
|
inline |
Definition at line 89 of file ossimAffineTransform.h.
void ossimAffineTransform::setIdentity | ( | ) |
Definition at line 196 of file ossimAffineTransform.cpp.
References computeMatrix(), theRotation, theScale, theTranslation, ossimDpt::x, and ossimDpt::y.
Referenced by ossimAffineTransform().
void ossimAffineTransform::setMatrix | ( | double | rotation, |
const ossimDpt & | scale, | ||
const ossimDpt & | translation | ||
) |
Definition at line 182 of file ossimAffineTransform.cpp.
References computeMatrix(), theRotation, theScale, and theTranslation.
|
inline |
Definition at line 64 of file ossimAffineTransform.h.
|
inline |
Definition at line 58 of file ossimAffineTransform.h.
|
inline |
Definition at line 70 of file ossimAffineTransform.h.
|
protected |
Definition at line 101 of file ossimAffineTransform.h.
Referenced by forward(), inverse(), and operator=().
|
protected |
Definition at line 103 of file ossimAffineTransform.h.
Referenced by computeMatrix(), forward(), and operator=().
|
protected |
Definition at line 104 of file ossimAffineTransform.h.
Referenced by computeMatrix(), inverse(), and operator=().
|
protected |
Definition at line 99 of file ossimAffineTransform.h.
Referenced by computeMatrix(), loadState(), operator=(), print(), saveState(), setIdentity(), and setMatrix().
|
protected |
Definition at line 98 of file ossimAffineTransform.h.
Referenced by computeMatrix(), loadState(), operator=(), print(), saveState(), setIdentity(), and setMatrix().
|
protected |
Definition at line 100 of file ossimAffineTransform.h.
Referenced by computeMatrix(), loadState(), operator=(), print(), saveState(), setIdentity(), and setMatrix().