synfig-core  1.0.3
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
synfig::Transformation Class Reference

#include <transformation.h>

Public Member Functions

 Transformation ()
 Transformation (const Vector &offset, const Angle &angle=Angle::rad(0.0), const Angle &skew_angle=Angle::rad(0.0), const Vector &scale=Vector(1.0, 1.0))
bool is_valid () const
bool operator== (const Transformation &rhs) const
bool operator!= (const Transformation &rhs) const
bool is_equal_to (const Transformation &rhs) const
bool is_identity () const
Matrix get_matrix () const
void set_matrix (const Matrix &matrix)
 Transformation (const Matrix &matrix)
Matrix get_inverted_matrix () const
Transformation get_back_transformation () const
Vector transform (const Vector &v, bool translate=true) const
Transformation transform (const Transformation &transformation) const
Matrix transform (const Matrix &matrix) const
Rect transform_bounds (const Rect &bounds) const
Vector back_transform (const Vector &v, bool translate=true) const
Transformation back_transform (const Transformation &transformation) const
Matrix back_transform (const Matrix &matrix) const
Rect back_transform_bounds (const Rect &bounds) const

Static Public Member Functions

static Rect transform_bounds (const Matrix &matrix, const Rect &bounds)
static const Transformation identity ()

Public Attributes

Vector offset
Angle angle
Angle skew_angle
Vector scale

Detailed Description

Todo:
writeme

Constructor & Destructor Documentation

synfig::Transformation::Transformation ( )
inline
synfig::Transformation::Transformation ( const Vector offset,
const Angle angle = Angle::rad(0.0),
const Angle skew_angle = Angle::rad(0.0),
const Vector scale = Vector(1.0, 1.0) 
)
inline
synfig::Transformation::Transformation ( const Matrix matrix)
inlineexplicit

References set_matrix().

Member Function Documentation

bool synfig::Transformation::is_valid ( ) const
inline
bool synfig::Transformation::operator== ( const Transformation rhs) const
inline

References angle, offset, scale, and skew_angle.

bool synfig::Transformation::operator!= ( const Transformation rhs) const
inline

References angle, offset, scale, and skew_angle.

bool synfig::Transformation::is_equal_to ( const Transformation rhs) const
inline
bool synfig::Transformation::is_identity ( ) const
inline

References is_equal_to(), and Transformation().

Referenced by get_matrix().

Matrix synfig::Transformation::get_matrix ( ) const
inline
void synfig::Transformation::set_matrix ( const Matrix matrix)
inline
Matrix synfig::Transformation::get_inverted_matrix ( ) const
inline
Transformation synfig::Transformation::get_back_transformation ( ) const
inline
static Rect synfig::Transformation::transform_bounds ( const Matrix matrix,
const Rect bounds 
)
inlinestatic
Vector synfig::Transformation::transform ( const Vector v,
bool  translate = true 
) const
inline
Transformation synfig::Transformation::transform ( const Transformation transformation) const
inline

References get_matrix(), and Transformation().

Matrix synfig::Transformation::transform ( const Matrix matrix) const
inline

References get_matrix().

Rect synfig::Transformation::transform_bounds ( const Rect bounds) const
inline

References get_matrix(), and transform_bounds().

Referenced by transform_bounds().

Vector synfig::Transformation::back_transform ( const Vector v,
bool  translate = true 
) const
inline
Transformation synfig::Transformation::back_transform ( const Transformation transformation) const
inline
Matrix synfig::Transformation::back_transform ( const Matrix matrix) const
inline

References get_inverted_matrix().

Rect synfig::Transformation::back_transform_bounds ( const Rect bounds) const
inline
static const Transformation synfig::Transformation::identity ( )
inlinestatic

References Transformation().

Member Data Documentation

Vector synfig::Transformation::offset
Angle synfig::Transformation::angle
Angle synfig::Transformation::skew_angle
Vector synfig::Transformation::scale

The documentation for this class was generated from the following file: