OpenStructure
|
#include <transformation_base.hh>
Inherited by Rotate2D, Rotate2D90, Scale, and Translate.
Public Types | |
enum | SizeRule { ORIGINAL , FIT } |
Public Member Functions | |
Transformation () | |
Transformation (const Mat4 &tmat) | |
Transformation (const Mat4 &tmat, const Mat4 &imat) | |
Mat4 & | Matrix () |
const Mat4 & | Matrix () const |
Mat4 & | InverseMatrix () |
const Mat4 & | InverseMatrix () const |
Point | Apply (const Point &p) |
Extent | Apply (const Extent &e) |
Protected Attributes | |
Mat4 | tmat_ |
Mat4 | imat_ |
transformation base class
A transformation is defined by its matrix and the corresponding inverse. The transformation routine of the image class will use both to construct the result.
The extent of the newly created images can be defined in several ways: (1) size of the original image (2) maximal size to fit the transform
Usage of this class allows an arbitrary transformation, in form of a 4x4 matrix, to be specified. If only the forward matrix is given, the inverse will be calculated automatically.
Definition at line 54 of file transformation_base.hh.
enum SizeRule |
Enumerator | |
---|---|
ORIGINAL | |
FIT |
Definition at line 56 of file transformation_base.hh.
Transformation | ( | ) |
Transformation | ( | const Mat4 & | tmat | ) |
Transformation | ( | const Mat4 & | tmat, |
const Mat4 & | imat | ||
) |
|
inline |
Definition at line 65 of file transformation_base.hh.
|
inline |
Definition at line 66 of file transformation_base.hh.
|
inline |
Definition at line 62 of file transformation_base.hh.
|
inline |
Definition at line 63 of file transformation_base.hh.
|
protected |
Definition at line 74 of file transformation_base.hh.
|
protected |
Definition at line 73 of file transformation_base.hh.