Undocumented class. More...
Inherits BFlattenable.
Public Member Functions | |
BAffineTransform () | |
Undocumented public method. | |
BAffineTransform (const BAffineTransform ©From) | |
Undocumented public method. | |
BAffineTransform (double sx, double shy, double shx, double sy, double tx, double ty) | |
Undocumented public method. | |
virtual | ~BAffineTransform () |
Undocumented public method. | |
void | Apply (BPoint *point) const |
Undocumented public method. | |
void | Apply (BPoint *points, uint32 count) const |
Undocumented public method. | |
BPoint | Apply (const BPoint &point) const |
Undocumented public method. | |
void | Apply (double *x, double *y) const |
Undocumented public method. | |
void | ApplyInverse (BPoint *point) const |
Undocumented public method. | |
void | ApplyInverse (BPoint *points, uint32 count) const |
Undocumented public method. | |
BPoint | ApplyInverse (const BPoint &point) const |
Undocumented public method. | |
void | ApplyInverse (double *x, double *y) const |
Undocumented public method. | |
double | Determinant () const |
Undocumented public method. | |
virtual status_t | Flatten (void *buffer, ssize_t size) const |
Undocumented public method. | |
virtual ssize_t | FlattenedSize () const |
Undocumented public method. | |
const BAffineTransform & | FlipX () |
Undocumented public method. | |
const BAffineTransform & | FlipY () |
Undocumented public method. | |
bool | GetAffineParameters (double *translationX, double *translationY, double *rotation, double *scaleX, double *scaleY, double *shearX, double *shearY) const |
Undocumented public method. | |
void | GetScale (double *sx, double *sy) const |
Undocumented public method. | |
void | GetScaleAbs (double *sx, double *sy) const |
Undocumented public method. | |
void | GetTranslation (double *tx, double *ty) const |
Undocumented public method. | |
double | InverseDeterminant () const |
Undocumented public method. | |
const BAffineTransform & | Invert () |
Undocumented public method. | |
bool | IsDilation (double epsilon=kDefaultEpsilon) const |
Undocumented public method. | |
bool | IsEqual (const BAffineTransform &other, double epsilon=kDefaultEpsilon) const |
Undocumented public method. | |
virtual bool | IsFixedSize () const |
Undocumented public method. | |
bool | IsIdentity (double epsilon=kDefaultEpsilon) const |
Undocumented public method. | |
bool | IsValid (double epsilon=kDefaultEpsilon) const |
Undocumented public method. | |
const BAffineTransform & | Multiply (const BAffineTransform &other) |
Undocumented public method. | |
const BAffineTransform & | MultiplyInverse (const BAffineTransform &other) |
Undocumented public method. | |
bool | operator!= (const BAffineTransform &other) const |
Undocumented public method. | |
BAffineTransform | operator* (const BAffineTransform &other) const |
Undocumented public method. | |
const BAffineTransform & | operator*= (const BAffineTransform &other) |
Undocumented public method. | |
BAffineTransform | operator/ (const BAffineTransform &other) const |
Undocumented public method. | |
const BAffineTransform & | operator/= (const BAffineTransform &other) |
Undocumented public method. | |
BAffineTransform & | operator= (const BAffineTransform ©From) |
Undocumented public method. | |
bool | operator== (const BAffineTransform &other) const |
Undocumented public method. | |
BAffineTransform | operator~ () const |
Undocumented public method. | |
const BAffineTransform & | PreMultiply (const BAffineTransform &other) |
Undocumented public method. | |
const BAffineTransform & | PreMultiplyInverse (const BAffineTransform &other) |
Undocumented public method. | |
const BAffineTransform & | PreRotateBy (double angleRadians) |
Undocumented public method. | |
const BAffineTransform & | PreScaleBy (double x, double y) |
Undocumented public method. | |
const BAffineTransform & | PreTranslateBy (double x, double y) |
Undocumented public method. | |
const BAffineTransform & | Reset () |
Undocumented public method. | |
const BAffineTransform & | RotateBy (const BPoint ¢er, double angle) |
Undocumented public method. | |
const BAffineTransform & | RotateBy (double angle) |
Undocumented public method. | |
BAffineTransform | RotateByCopy (const BPoint ¢er, double angle) const |
Undocumented public method. | |
BAffineTransform | RotateByCopy (double angle) const |
Undocumented public method. | |
double | Rotation () const |
Undocumented public method. | |
double | Scale () const |
Undocumented public method. | |
const BAffineTransform & | ScaleBy (const BPoint ¢er, const BPoint &scale) |
Undocumented public method. | |
const BAffineTransform & | ScaleBy (const BPoint ¢er, double scale) |
Undocumented public method. | |
const BAffineTransform & | ScaleBy (const BPoint ¢er, double x, double y) |
Undocumented public method. | |
const BAffineTransform & | ScaleBy (const BPoint &scale) |
Undocumented public method. | |
const BAffineTransform & | ScaleBy (double scale) |
Undocumented public method. | |
const BAffineTransform & | ScaleBy (double x, double y) |
Undocumented public method. | |
BAffineTransform | ScaleByCopy (const BPoint ¢er, const BPoint &scale) const |
Undocumented public method. | |
BAffineTransform | ScaleByCopy (const BPoint ¢er, double scale) const |
Undocumented public method. | |
BAffineTransform | ScaleByCopy (const BPoint ¢er, double x, double y) const |
Undocumented public method. | |
BAffineTransform | ScaleByCopy (const BPoint &scale) const |
Undocumented public method. | |
BAffineTransform | ScaleByCopy (double scale) const |
Undocumented public method. | |
BAffineTransform | ScaleByCopy (double x, double y) const |
Undocumented public method. | |
const BAffineTransform & | SetScale (double scale) |
Undocumented public method. | |
const BAffineTransform & | SetScale (double x, double y) |
Undocumented public method. | |
const BAffineTransform & | ShearBy (const BPoint ¢er, const BPoint &shear) |
Undocumented public method. | |
const BAffineTransform & | ShearBy (const BPoint ¢er, double x, double y) |
Undocumented public method. | |
const BAffineTransform & | ShearBy (const BPoint &shear) |
Undocumented public method. | |
const BAffineTransform & | ShearBy (double x, double y) |
Undocumented public method. | |
BAffineTransform | ShearByCopy (const BPoint ¢er, const BPoint &shear) const |
Undocumented public method. | |
BAffineTransform | ShearByCopy (const BPoint ¢er, double x, double y) const |
Undocumented public method. | |
BAffineTransform | ShearByCopy (const BPoint &shear) const |
Undocumented public method. | |
BAffineTransform | ShearByCopy (double x, double y) const |
Undocumented public method. | |
const BAffineTransform & | TranslateBy (const BPoint &delta) |
Undocumented public method. | |
const BAffineTransform & | TranslateBy (double x, double y) |
Undocumented public method. | |
BAffineTransform | TranslateByCopy (const BPoint &delta) const |
Undocumented public method. | |
BAffineTransform | TranslateByCopy (double x, double y) const |
Undocumented public method. | |
virtual type_code | TypeCode () const |
Undocumented public method. | |
virtual status_t | Unflatten (type_code code, const void *buffer, ssize_t size) |
Undocumented public method. | |
Public Member Functions inherited from BFlattenable | |
virtual | ~BFlattenable () |
Destructor. Does nothing. | |
virtual bool | AllowsTypeCode (type_code code) const |
Get whether or not the supplied type_code is supported. | |
virtual status_t | Flatten (void *buffer, ssize_t size) const =0 |
Pure virtual that should flatten the object into the supplied buffer. | |
virtual ssize_t | FlattenedSize () const =0 |
Pure virtual that should return the size of the flattened object in bytes. | |
virtual bool | IsFixedSize () const =0 |
Pure virtual that should return whether or not flattened objects of this type always have a fixed size. | |
virtual type_code | TypeCode () const =0 |
Pure virtual that returns the type_code this class flattens to. | |
virtual status_t | Unflatten (type_code code, const void *buffer, ssize_t size)=0 |
Pure virtual that should unflatten the buffer and put the contents into the current object. | |
Static Public Member Functions | |
static BAffineTransform | AffineRotation (double angle) |
Undocumented public method. | |
static BAffineTransform | AffineScaling (double scale) |
Undocumented public method. | |
static BAffineTransform | AffineScaling (double x, double y) |
Undocumented public method. | |
static BAffineTransform | AffineShearing (double x, double y) |
Undocumented public method. | |
static BAffineTransform | AffineTranslation (double x, double y) |
Undocumented public method. | |
Public Attributes | |
double | shx |
Undocumented public variable. | |
double | shy |
Undocumented public variable. | |
double | sx |
Undocumented public variable. | |
double | sy |
Undocumented public variable. | |
double | tx |
Undocumented public variable. | |
double | ty |
Undocumented public variable. | |
Static Public Attributes | |
static constexpr double | kDefaultEpsilon = 1e-14 |
Undocumented public variable. | |
Undocumented class.
BAffineTransform::BAffineTransform | ( | ) |
Undocumented public method.
<value> | Undocumented |
Referenced by operator*(), and operator/().
BAffineTransform::BAffineTransform | ( | double | sx, |
double | shy, | ||
double | shx, | ||
double | sy, | ||
double | tx, | ||
double | ty | ||
) |
Undocumented public method.
sx | Undocumented |
shy | Undocumented |
shx | Undocumented |
sy | Undocumented |
tx | Undocumented |
ty | Undocumented |
<value> | Undocumented |
BAffineTransform::BAffineTransform | ( | const BAffineTransform & | copyFrom | ) |
Undocumented public method.
copyFrom | Undocumented |
<value> | Undocumented |
|
virtual |
Undocumented public method.
<value> | Undocumented |
|
static |
Undocumented public method.
angle | Undocumented |
<value> | Undocumented |
|
static |
Undocumented public method.
scale | Undocumented |
<value> | Undocumented |
|
static |
Undocumented public method.
x | Undocumented |
y | Undocumented |
<value> | Undocumented |
|
static |
Undocumented public method.
x | Undocumented |
y | Undocumented |
<value> | Undocumented |
Referenced by ShearBy().
|
static |
Undocumented public method.
x | Undocumented |
y | Undocumented |
<value> | Undocumented |
void BAffineTransform::Apply | ( | BPoint * | point | ) | const |
Undocumented public method.
point | Undocumented |
Undocumented public method.
points | Undocumented |
count | Undocumented |
Undocumented public method.
point | Undocumented |
<value> | Undocumented |
|
inline |
void BAffineTransform::ApplyInverse | ( | BPoint * | point | ) | const |
Undocumented public method.
point | Undocumented |
Undocumented public method.
points | Undocumented |
count | Undocumented |
Undocumented public method.
point | Undocumented |
<value> | Undocumented |
|
inline |
|
inline |
|
virtual |
Undocumented public method.
buffer | Undocumented |
size | Undocumented |
<value> | Undocumented |
Implements BFlattenable.
|
virtual |
Undocumented public method.
<value> | Undocumented |
Implements BFlattenable.
const BAffineTransform & BAffineTransform::FlipX | ( | ) |
Undocumented public method.
<value> | Undocumented |
const BAffineTransform & BAffineTransform::FlipY | ( | ) |
Undocumented public method.
<value> | Undocumented |
bool BAffineTransform::GetAffineParameters | ( | double * | translationX, |
double * | translationY, | ||
double * | rotation, | ||
double * | scaleX, | ||
double * | scaleY, | ||
double * | shearX, | ||
double * | shearY | ||
) | const |
Undocumented public method.
translationX | Undocumented |
translationY | Undocumented |
rotation | Undocumented |
scaleX | Undocumented |
scaleY | Undocumented |
shearX | Undocumented |
shearY | Undocumented |
<value> | Undocumented |
void BAffineTransform::GetScale | ( | double * | sx, |
double * | sy | ||
) | const |
Undocumented public method.
sx | Undocumented |
sy | Undocumented |
void BAffineTransform::GetScaleAbs | ( | double * | sx, |
double * | sy | ||
) | const |
Undocumented public method.
sx | Undocumented |
sy | Undocumented |
void BAffineTransform::GetTranslation | ( | double * | tx, |
double * | ty | ||
) | const |
Undocumented public method.
tx | Undocumented |
ty | Undocumented |
|
inline |
Undocumented public method.
<value> | Undocumented |
References shx, shy, sx, and sy.
Referenced by ApplyInverse().
const BAffineTransform & BAffineTransform::Invert | ( | ) |
Undocumented public method.
<value> | Undocumented |
Referenced by MultiplyInverse(), operator~(), and PreMultiplyInverse().
bool BAffineTransform::IsDilation | ( | double | epsilon = kDefaultEpsilon | ) | const |
Undocumented public method.
epsilon | Undocumented |
<value> | Undocumented |
bool BAffineTransform::IsEqual | ( | const BAffineTransform & | other, |
double | epsilon = kDefaultEpsilon |
||
) | const |
Undocumented public method.
other | Undocumented |
epsilon | Undocumented |
<value> | Undocumented |
Referenced by operator!=(), and operator==().
|
virtual |
Undocumented public method.
<value> | Undocumented |
Implements BFlattenable.
bool BAffineTransform::IsIdentity | ( | double | epsilon = kDefaultEpsilon | ) | const |
Undocumented public method.
epsilon | Undocumented |
<value> | Undocumented |
bool BAffineTransform::IsValid | ( | double | epsilon = kDefaultEpsilon | ) | const |
Undocumented public method.
epsilon | Undocumented |
<value> | Undocumented |
|
inline |
Undocumented public method.
other | Undocumented |
<value> | Undocumented |
References PreMultiply().
Referenced by MultiplyInverse(), operator*=(), and PreMultiplyInverse().
|
inline |
Undocumented public method.
other | Undocumented |
<value> | Undocumented |
References Invert(), and Multiply().
Referenced by operator/=().
|
inline |
Undocumented public method.
other | Undocumented |
<value> | Undocumented |
References IsEqual().
|
inline |
Undocumented public method.
other | Undocumented |
<value> | Undocumented |
References BAffineTransform().
|
inline |
Undocumented public method.
other | Undocumented |
<value> | Undocumented |
References Multiply().
|
inline |
Undocumented public method.
other | Undocumented |
<value> | Undocumented |
References BAffineTransform().
|
inline |
Undocumented public method.
other | Undocumented |
<value> | Undocumented |
References MultiplyInverse().
|
inline |
|
inline |
Undocumented public method.
other | Undocumented |
<value> | Undocumented |
References IsEqual().
|
inline |
Undocumented public method.
<value> | Undocumented |
References Invert().
const BAffineTransform & BAffineTransform::PreMultiply | ( | const BAffineTransform & | other | ) |
Undocumented public method.
other | Undocumented |
<value> | Undocumented |
Referenced by Multiply(), and ShearBy().
|
inline |
Undocumented public method.
other | Undocumented |
<value> | Undocumented |
References Invert(), and Multiply().
|
inline |
|
inline |
|
inline |
const BAffineTransform & BAffineTransform::Reset | ( | ) |
Undocumented public method.
<value> | Undocumented |
const BAffineTransform & BAffineTransform::RotateBy | ( | const BPoint & | center, |
double | angle | ||
) |
Undocumented public method.
center | Undocumented |
angle | Undocumented |
<value> | Undocumented |
|
inline |
BAffineTransform BAffineTransform::RotateByCopy | ( | const BPoint & | center, |
double | angle | ||
) | const |
Undocumented public method.
center | Undocumented |
angle | Undocumented |
<value> | Undocumented |
BAffineTransform BAffineTransform::RotateByCopy | ( | double | angle | ) | const |
Undocumented public method.
angle | Undocumented |
<value> | Undocumented |
double BAffineTransform::Rotation | ( | ) | const |
Undocumented public method.
<value> | Undocumented |
double BAffineTransform::Scale | ( | ) | const |
Undocumented public method.
<value> | Undocumented |
const BAffineTransform & BAffineTransform::ScaleBy | ( | const BPoint & | center, |
const BPoint & | scale | ||
) |
Undocumented public method.
center | Undocumented |
scale | Undocumented |
<value> | Undocumented |
const BAffineTransform & BAffineTransform::ScaleBy | ( | const BPoint & | center, |
double | scale | ||
) |
Undocumented public method.
center | Undocumented |
scale | Undocumented |
<value> | Undocumented |
const BAffineTransform & BAffineTransform::ScaleBy | ( | const BPoint & | center, |
double | x, | ||
double | y | ||
) |
Undocumented public method.
center | Undocumented |
x | Undocumented |
y | Undocumented |
<value> | Undocumented |
const BAffineTransform & BAffineTransform::ScaleBy | ( | const BPoint & | scale | ) |
Undocumented public method.
scale | Undocumented |
<value> | Undocumented |
|
inline |
|
inline |
BAffineTransform BAffineTransform::ScaleByCopy | ( | const BPoint & | center, |
const BPoint & | scale | ||
) | const |
Undocumented public method.
center | Undocumented |
scale | Undocumented |
<value> | Undocumented |
BAffineTransform BAffineTransform::ScaleByCopy | ( | const BPoint & | center, |
double | scale | ||
) | const |
Undocumented public method.
center | Undocumented |
scale | Undocumented |
<value> | Undocumented |
BAffineTransform BAffineTransform::ScaleByCopy | ( | const BPoint & | center, |
double | x, | ||
double | y | ||
) | const |
Undocumented public method.
center | Undocumented |
x | Undocumented |
y | Undocumented |
<value> | Undocumented |
BAffineTransform BAffineTransform::ScaleByCopy | ( | const BPoint & | scale | ) | const |
Undocumented public method.
scale | Undocumented |
<value> | Undocumented |
BAffineTransform BAffineTransform::ScaleByCopy | ( | double | scale | ) | const |
Undocumented public method.
scale | Undocumented |
<value> | Undocumented |
BAffineTransform BAffineTransform::ScaleByCopy | ( | double | x, |
double | y | ||
) | const |
Undocumented public method.
x | Undocumented |
y | Undocumented |
<value> | Undocumented |
const BAffineTransform & BAffineTransform::SetScale | ( | double | scale | ) |
Undocumented public method.
scale | Undocumented |
<value> | Undocumented |
const BAffineTransform & BAffineTransform::SetScale | ( | double | x, |
double | y | ||
) |
Undocumented public method.
x | Undocumented |
y | Undocumented |
<value> | Undocumented |
const BAffineTransform & BAffineTransform::ShearBy | ( | const BPoint & | center, |
const BPoint & | shear | ||
) |
Undocumented public method.
center | Undocumented |
shear | Undocumented |
<value> | Undocumented |
const BAffineTransform & BAffineTransform::ShearBy | ( | const BPoint & | center, |
double | x, | ||
double | y | ||
) |
Undocumented public method.
center | Undocumented |
x | Undocumented |
y | Undocumented |
<value> | Undocumented |
const BAffineTransform & BAffineTransform::ShearBy | ( | const BPoint & | shear | ) |
Undocumented public method.
shear | Undocumented |
<value> | Undocumented |
|
inline |
Undocumented public method.
x | Undocumented |
y | Undocumented |
<value> | Undocumented |
References AffineShearing(), and PreMultiply().
BAffineTransform BAffineTransform::ShearByCopy | ( | const BPoint & | center, |
const BPoint & | shear | ||
) | const |
Undocumented public method.
center | Undocumented |
shear | Undocumented |
<value> | Undocumented |
BAffineTransform BAffineTransform::ShearByCopy | ( | const BPoint & | center, |
double | x, | ||
double | y | ||
) | const |
Undocumented public method.
center | Undocumented |
x | Undocumented |
y | Undocumented |
<value> | Undocumented |
BAffineTransform BAffineTransform::ShearByCopy | ( | const BPoint & | shear | ) | const |
Undocumented public method.
shear | Undocumented |
<value> | Undocumented |
BAffineTransform BAffineTransform::ShearByCopy | ( | double | x, |
double | y | ||
) | const |
Undocumented public method.
x | Undocumented |
y | Undocumented |
<value> | Undocumented |
const BAffineTransform & BAffineTransform::TranslateBy | ( | const BPoint & | delta | ) |
Undocumented public method.
delta | Undocumented |
<value> | Undocumented |
|
inline |
BAffineTransform BAffineTransform::TranslateByCopy | ( | const BPoint & | delta | ) | const |
Undocumented public method.
delta | Undocumented |
<value> | Undocumented |
BAffineTransform BAffineTransform::TranslateByCopy | ( | double | x, |
double | y | ||
) | const |
Undocumented public method.
x | Undocumented |
y | Undocumented |
<value> | Undocumented |
|
virtual |
Undocumented public method.
<value> | Undocumented |
Implements BFlattenable.
Undocumented public method.
code | Undocumented |
buffer | Undocumented |
size | Undocumented |
<value> | Undocumented |
Implements BFlattenable.
|
staticconstexpr |
Undocumented public variable.
double BAffineTransform::shx |
Undocumented public variable.
Referenced by Apply(), ApplyInverse(), Determinant(), InverseDeterminant(), operator=(), PreRotateBy(), PreScaleBy(), PreTranslateBy(), RotateBy(), and ScaleBy().
double BAffineTransform::shy |
Undocumented public variable.
Referenced by Apply(), ApplyInverse(), Determinant(), InverseDeterminant(), operator=(), PreRotateBy(), PreScaleBy(), PreTranslateBy(), RotateBy(), and ScaleBy().
double BAffineTransform::sx |
Undocumented public variable.
Referenced by Apply(), ApplyInverse(), Determinant(), InverseDeterminant(), operator=(), PreRotateBy(), PreScaleBy(), PreTranslateBy(), RotateBy(), and ScaleBy().
double BAffineTransform::sy |
Undocumented public variable.
Referenced by Apply(), ApplyInverse(), Determinant(), InverseDeterminant(), operator=(), PreRotateBy(), PreScaleBy(), PreTranslateBy(), RotateBy(), and ScaleBy().
double BAffineTransform::tx |
Undocumented public variable.
Referenced by Apply(), ApplyInverse(), operator=(), PreTranslateBy(), RotateBy(), ScaleBy(), and TranslateBy().
double BAffineTransform::ty |
Undocumented public variable.
Referenced by Apply(), ApplyInverse(), operator=(), PreTranslateBy(), RotateBy(), ScaleBy(), and TranslateBy().