![]() |
ICF 3.0.5.47
Technical documentation of ICF Libraries
|
Definition of an affine transformation for 2D-spaces. More...
#include <CAffineCalibration2d.h>
Public Member Functions | |
CAffineCalibration2d () | |
CAffineCalibration2d (const i2d::CAffine2d &transformation) | |
void | SetArgumentArea (const i2d::CRectangle *areaPtr) |
void | SetResultArea (const i2d::CRectangle *areaPtr) |
void | SetArgumentUnitInfo (const imath::IUnitInfo *unitInfoPtr) |
void | SetResultUnitInfo (const imath::IUnitInfo *unitInfoPtr) |
const i2d::CRectangle * | GetArgumentArea () const override |
Get optional area where arguments are defined properly. | |
const i2d::CRectangle * | GetResultArea () const override |
Get optional area where results are defined properly. | |
const imath::IUnitInfo * | GetArgumentUnitInfo () const override |
Get unit description of calibration input (transformation function argument). | |
const imath::IUnitInfo * | GetResultUnitInfo () const override |
Get unit description of calibration output (transformation function result). | |
std::unique_ptr< i2d::ICalibration2d > | CreateCombinedCalibration (const i2d::ITransformation2d &transformation) const override |
Create new calibration being combination of this calibration and the second one. | |
int | GetSupportedOperations () const override |
Get set of flags for supported operations. | |
bool | CopyFrom (const istd::IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS) override |
Copy this object from another one. | |
std::unique_ptr< istd::IChangeable > | CloneMe (CompatibilityMode mode=CM_WITHOUT_REFS) const override |
Make a copy of this object. | |
bool | ResetData (CompatibilityMode mode=CM_WITHOUT_REFS) override |
Reset data to its default state. | |
![]() | |
CAffineTransformation2d () | |
CAffineTransformation2d (const i2d::CAffine2d &transformation) | |
const i2d::CAffine2d & | GetTransformation () const |
Get used transformation object. | |
i2d::CAffine2d & | GetTransformationRef () |
Get reference to internal transformation object. | |
void | SetTransformation (const i2d::CAffine2d &transformation) |
Set the transformation object. | |
void | Reset () |
Set to identity transformation. | |
void | Reset (const CVector2d &translation) |
Set this transformation to translation. | |
void | Reset (const CVector2d &translation, double angle, double scale=1.0, bool isPosDef=true) |
Set this transformation to translation, rotation and scaling. | |
void | Reset (const CVector2d &translation, double angle, const CVector2d &scale, bool isPosDef=true) |
Set this transformation to translation, rotation and both axis scaling. | |
int | GetTransformationFlags () const override |
Get flags of describing type of this transformation. | |
bool | GetDistance (const CVector2d &origPos1, const CVector2d &origPos2, double &result, ExactnessMode mode=EM_NONE) const override |
Compute a shortness distance in transformed coordinations. | |
bool | GetPositionAt (const CVector2d &origPosition, CVector2d &result, ExactnessMode mode=EM_NONE) const override |
Get position after transformation. | |
bool | GetInvPositionAt (const CVector2d &transfPosition, CVector2d &result, ExactnessMode mode=EM_NONE) const override |
Get position after transformation. | |
bool | GetLocalTransform (const CVector2d &origPosition, CAffine2d &result, ExactnessMode mode=EM_NONE) const override |
Get local transformation (from original to transformed coordinate system) at some original position. | |
bool | GetLocalInvTransform (const CVector2d &transfPosition, CAffine2d &result, ExactnessMode mode=EM_NONE) const override |
Get local transformation (from transformed to original coordinate system) at some transformed position. | |
bool | GetInvValueAt (const CVector2d &argument, CVector2d &result) const override |
CVector2d | GetInvValueAt (const CVector2d &argument) const override |
bool | GetValueAt (const CVector2d &argument, CVector2d &result) const override |
CVector2d | GetValueAt (const CVector2d &argument) const override |
bool | Serialize (iser::IArchive &archive) override |
Load or store state of this object as a archive stream. | |
bool | CopyFrom (const istd::IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS) override |
Copy this object from another one. | |
std::unique_ptr< istd::IChangeable > | CloneMe (CompatibilityMode mode=CM_WITHOUT_REFS) const override |
Make a copy of this object. | |
![]() | |
![]() | |
virtual bool | GetInvValueAt (const CVector2d &argument, CVector2d &result) const=0 |
Get inverted function value. | |
virtual CVector2d | GetInvValueAt (const CVector2d &argument) const=0 |
Get inverted function value. | |
![]() | |
virtual bool | GetValueAt (const CVector2d &argument, CVector2d &result) const=0 |
Get function value for specified argument value. | |
virtual CVector2d | GetValueAt (const CVector2d &argument) const=0 |
Get function value for specified argument value. | |
![]() | |
virtual quint32 | GetMinimalVersion (int versionId) const |
Get minimal needed version to correct storing of this data. | |
![]() | |
virtual bool | IsEqual (const IChangeable &object) const |
Compare this object with another object. | |
virtual QMutex * | GetChangesLock () const |
Get mutex beeing locked during changes, if available. | |
virtual void | BeginChanges (const ChangeSet &changeSet) |
Starts the change transaction. | |
virtual void | EndChanges (const ChangeSet &changeSet) |
Ends the change transaction. | |
virtual void | BeginChangeGroup (const ChangeSet &changeSet) |
Starts group of changes. | |
virtual void | EndChangeGroup (const ChangeSet &changeSet) |
Ends group of changes. | |
![]() |
Additional Inherited Members | |
![]() | |
static const ChangeSet & | GetNoChanges () |
Get empty set of changes. | |
static const ChangeSet & | GetAnyChange () |
Get anonymous change set. | |
static const ChangeSet & | GetAllChanges () |
Get anonymous change set. | |
static const ChangeSet & | GetDelegatedChanges () |
Get delegated change set. | |
![]() | |
virtual void | OnBeginChanges () |
Callback function for begin change event. | |
virtual void | OnEndChanges (const ChangeSet &changeSet) |
Callback function for end change event. | |
![]() | |
CAffine2d | m_transformation |
Definition of an affine transformation for 2D-spaces.
Definition at line 22 of file CAffineCalibration2d.h.
Definition at line 27 of file CAffineCalibration2d.h.
icalib::CAffineCalibration2d::CAffineCalibration2d | ( | ) |
|
explicit |
|
overridevirtual |
Make a copy of this object.
You may check, if this functionality is supported over GetSupportedOperations()
.
Reimplemented from istd::IChangeable.
|
overridevirtual |
Copy this object from another one.
Default implementation in istd::IChangeable does nothing. You may check, if this functionality is supported over GetSupportedOperations()
.
Reimplemented from istd::IChangeable.
|
overridevirtual |
Create new calibration being combination of this calibration and the second one.
Please note, that created object is owned by the caller and the caller must remove them.
Implements i2d::ICalibration2d.
|
overridevirtual |
Get optional area where arguments are defined properly.
Implements i2d::ICalibration2d.
|
overridevirtual |
Get unit description of calibration input (transformation function argument).
nullptr
, if this information is unsupported. Implements i2d::ICalibration2d.
|
overridevirtual |
Get optional area where results are defined properly.
Implements i2d::ICalibration2d.
|
overridevirtual |
Get unit description of calibration output (transformation function result).
nullptr
, if this information is unsupported. Implements i2d::ICalibration2d.
|
overridevirtual |
Get set of flags for supported operations.
Reimplemented from istd::IChangeable.
|
overridevirtual |
Reset data to its default state.
Default implementation in istd::IChangeable does nothing. You may check, if this functionality is supported over GetSupportedOperations()
.
true
if the operation was successful, and false
otherwise. Reimplemented from istd::IChangeable.
void icalib::CAffineCalibration2d::SetArgumentArea | ( | const i2d::CRectangle * | areaPtr | ) |
void icalib::CAffineCalibration2d::SetArgumentUnitInfo | ( | const imath::IUnitInfo * | unitInfoPtr | ) |
void icalib::CAffineCalibration2d::SetResultArea | ( | const i2d::CRectangle * | areaPtr | ) |
void icalib::CAffineCalibration2d::SetResultUnitInfo | ( | const imath::IUnitInfo * | unitInfoPtr | ) |
© Witold Gantzke and Kirill Lepskiy