Common interface for all calibration objects. More...
#include <ITransformation2d.h>
Public Types | |
enum | ExactnessMode { EM_NONE, EM_EXACT, EM_VISUAL, EM_ANY } |
enum | TransformationFlags { TF_FORWARD = 1 << 0, TF_INVERTED = 1 << 1, TF_INJECTIVE = 1 << 2, TF_SURJECTIVE = 1 << 3, TF_PRESERVE_NULL = 1 << 4, TF_PRESERVE_DISTANCE = 1 << 5, TF_PRESERVE_ANGLE = 1 << 6, TF_AFFINE = 1 << 7, TF_CONTINUES = 1 << 8 } |
Flags indication type of this transformation and supported operations. More... | |
![]() | |
typedef CVector2d | ArgumentType |
typedef CVector2d | ResultType |
![]() | |
enum | ChangeFlags { CF_ACF_INTERNAL = 0, CF_ALL_DATA, CF_ANY, CF_DESTROYING, CF_DELEGATED, CF_NO_UNDO } |
Data model change notification flags. More... | |
enum | SupportedOperations { SO_NONE = 0, SO_OBSERVE = 1 << 0, SO_COPY = 1 << 1, SO_CLONE = 1 << 2, SO_COMPARE = 1 << 3, SO_RESET = 1 << 4 } |
Flags for supported operations. More... | |
enum | CompatibilityMode { CM_STRICT, CM_WITHOUT_REFS, CM_WITH_REFS, CM_CONVERT } |
Control how relationship betweeen objects are interpreted. More... | |
Public Member Functions | |
virtual int | GetTransformationFlags () const =0 |
Get flags of describing type of this transformation. More... | |
virtual bool | GetDistance (const CVector2d &origPos1, const CVector2d &origPos2, double &result, ExactnessMode mode=EM_NONE) const =0 |
Compute a shortness distance in transformed coordinations. More... | |
virtual bool | GetPositionAt (const CVector2d &origPosition, CVector2d &result, ExactnessMode mode=EM_NONE) const =0 |
Get position after transformation. More... | |
virtual bool | GetInvPositionAt (const CVector2d &transfPosition, CVector2d &result, ExactnessMode mode=EM_NONE) const =0 |
Get position after transformation. More... | |
virtual bool | GetLocalTransform (const CVector2d &origPosition, CAffine2d &result, ExactnessMode mode=EM_NONE) const =0 |
Get local transformation (from original to transformed coordinate system) at some original position. More... | |
virtual bool | GetLocalInvTransform (const CVector2d &transfPosition, CAffine2d &result, ExactnessMode mode=EM_NONE) const =0 |
Get local transformation (from transformed to original coordinate system) at some transformed position. More... | |
![]() | |
virtual bool | GetInvValueAt (const CVector2d &argument, CVector2d &result) const =0 |
Get inverted function value. More... | |
virtual CVector2d | GetInvValueAt (const CVector2d &argument) const =0 |
Get inverted function value. More... | |
![]() | |
virtual bool | GetValueAt (const CVector2d &argument, CVector2d &result) const =0 |
Get function value for specified argument value. More... | |
virtual CVector2d | GetValueAt (const CVector2d &argument) const =0 |
Get function value for specified argument value. More... | |
![]() | |
virtual | ~IPolymorphic () |
![]() | |
virtual bool | Serialize (IArchive &archive)=0 |
Load or store state of this object as a archive stream. More... | |
virtual quint32 | GetMinimalVersion (int versionId) const |
Get minimal needed version to correct storing of this data. More... | |
![]() | |
virtual int | GetSupportedOperations () const |
Get set of flags for supported operations. More... | |
virtual bool | CopyFrom (const IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS) |
Copy this object from another one. More... | |
virtual bool | IsEqual (const IChangeable &object) const |
Compare this object with another object. More... | |
virtual IChangeable * | CloneMe (CompatibilityMode mode=CM_WITHOUT_REFS) const |
Make a copy of this object. More... | |
virtual bool | ResetData (CompatibilityMode mode=CM_WITHOUT_REFS) |
Reset data to its default state. More... | |
virtual void | BeginChanges (const ChangeSet &changeSet) |
Starts the change transaction. More... | |
virtual void | EndChanges (const ChangeSet &changeSet) |
Ends the change transaction. More... | |
virtual void | BeginChangeGroup (const ChangeSet &changeSet) |
Starts group of changes. More... | |
virtual void | EndChangeGroup (const ChangeSet &changeSet) |
Ends group of changes. More... | |
Additional Inherited Members | |
![]() | |
static const ChangeSet & | GetNoChanges () |
Get empty set of changes. More... | |
static const ChangeSet & | GetAnyChange () |
Get anonymous change set. More... | |
static const ChangeSet & | GetAllChanges () |
Get anonymous change set. More... | |
static const ChangeSet & | GetDelegatedChanges () |
Get delegated change set. More... | |
![]() | |
virtual void | OnBeginChanges () |
Callback function for begin change event. More... | |
virtual void | OnEndChanges (const ChangeSet &changeSet) |
Callback function for end change event. More... | |
Common interface for all calibration objects.
It is used to work with real world units. It provides only two simple operations: distance computation and local transformation.
Definition at line 27 of file ITransformation2d.h.
Definition at line 32 of file ITransformation2d.h.
Flags indication type of this transformation and supported operations.
Definition at line 55 of file ITransformation2d.h.
|
pure virtual |
Compute a shortness distance in transformed coordinations.
origPos1 | first position in original coordinates. |
origPos2 | second position in original coordinates. |
result | object where result distance between positions in transformed coordinates will be stored. |
mode | controls needed transformation exactness. |
Implemented in i2d::CAffineTransformation2d.
|
pure virtual |
Get position after transformation.
transfPosition | position in transformed coordination system. |
result | result position (original coordination system). |
mode | controls needed transformation exactness. |
Implemented in i2d::CAffineTransformation2d.
|
pure virtual |
Get local transformation (from transformed to original coordinate system) at some transformed position.
transfPosition | position in transformed coordination system. |
result | inverse transformation for specified position. |
mode | controls needed transformation exactness. |
Implemented in i2d::CAffineTransformation2d.
|
pure virtual |
Get local transformation (from original to transformed coordinate system) at some original position.
origPosition | position in (original coordination system). |
result | transformation for specified position. |
mode | controls needed transformation exactness. |
Implemented in i2d::CAffineTransformation2d.
|
pure virtual |
Get position after transformation.
origPosition | position in (original coordination system). |
result | result position (transformed coordination system). |
mode | controls needed transformation exactness. |
Implemented in i2d::CAffineTransformation2d.
|
pure virtual |
Get flags of describing type of this transformation.
Implemented in i2d::CAffineTransformation2d.
© 2007-2017 Witold Gantzke and Kirill Lepskiy