Helper class for form-like transformations. It allows only moving in X and Y direction.
You can find more information in comments below. Overrided methods can be found in corresponding base class.
class CFormTransform :public CTransform
{
public:
/**
Constructor
@param form Form which owns this transform
@param before Function which will be called before any changes
@param after Function which will be called after changes
@param param Custom parameter which will be passed to callback functions
*/
CFormTransform(IForm *form, IFeedback::Callback before, IFeedback::Callback after, void *param);
float getTx() const override;
float getTy() const override;
const Matrix &getMatrix() override;
const Matrix &getMatrixInversed() override;
const Matrix &getMatrixTranslate() override;
const Matrix &getMatrixScale() override;
const Matrix &getMatrixRotate() override;
const TRANSFORM &getTransform() override;
bool isTranslateIdentity() const override;
bool isScaleIdentity() const override;
bool isRotateIdentity() const override;
bool isIdentity() const override;
bool setTx(const float value) override;
bool setTy(const float value) override;
bool setTz(const float value) override;
bool setSx(const float value) override;
bool setSy(const float value) override;
bool setSz(const float value) override;
bool setRx(const float value) override;
bool setRy(const float value) override;
bool setRz(const float value) override;
bool setTransformOrder(const TRANSFORM_ORDER value) override;
bool setRotateOrder(const ROTATE_ORDER value) override;
bool setTransform(const TRANSFORM &value) override;
bool Translate(const float tx, const float ty, const float tz) override;
bool Scale(const float sx, const float sy, const float sz) override;
bool Rotate(const float rx, const float ry, const float rz) override;
bool Transform(const float tx, const float ty, const float tz, const float sx, const float sy, const float sz, const float rx, const float ry, const float rz) override;
void Release() override;
};
Namespace: | nitisa |
Include: | Nitisa/Core/FormTransform.h |