|
CBlueUI
C++ 跨平台跨框架的数据可视化工具
|
二维变换矩阵(简洁形式),在后续UI建模中会经常用到计算位置 [sx , shx, tx] [x] 更多...
类 BUI::Transform2d 继承关系图:Public 成员函数 | |
| Transform2d () | |
| Transform2d (double sx_, double shy_, double shx_, double sy_, double tx_, double ty_) | |
| Transform2d (const double *m) | |
| Transform2d (double x1, double y1, double x2, double y2, const double *parl) | |
| Rectangle to a parallelogram. | |
| Transform2d (const double *parl, double x1, double y1, double x2, double y2) | |
| Parallelogram to a rectangle. | |
| Transform2d (const double *src, const double *dst) | |
| Arbitrary parallelogram transformation. | |
| const Transform2d & | parl_to_parl (const double *src, const double *dst) |
| const Transform2d & | rect_to_parl (double x1, double y1, double x2, double y2, const double *parl) |
| const Transform2d & | parl_to_rect (const double *parl, double x1, double y1, double x2, double y2) |
| const Transform2d & | reset () |
| Reset - load an identity matrix | |
| const Transform2d & | translate (double x, double y) |
| const Transform2d & | rotate (double a) |
| const Transform2d & | scale (double s) |
| const Transform2d & | scale (double x, double y) |
| const Transform2d & | multiply (const Transform2d &m) |
| const Transform2d & | premultiply (const Transform2d &m) |
| const Transform2d & | multiply_inv (const Transform2d &m) |
| const Transform2d & | premultiply_inv (const Transform2d &m) |
| const Transform2d & | invert () |
| const Transform2d & | flip_x () |
| const Transform2d & | flip_y () |
| const Transform2d & | operator*= (const Transform2d &m) |
| const Transform2d & | operator/= (const Transform2d &m) |
| Transform2d | operator* (const Transform2d &m) const |
| Transform2d | operator/ (const Transform2d &m) const |
| Transform2d | operator~ () const |
| bool | operator== (const Transform2d &m) const |
| bool | operator!= (const Transform2d &m) const |
| const Transform2d & | operator= (const Transform2d &m) |
| void | transform (double *x, double *y) const |
| void | transform_float (float *x, float *y) const |
| void | transform_long (LONG *x, LONG *y) const |
| void | transform_int (int *x, int *y) const |
| void | transform_2x2 (double *x, double *y) const |
| void | transform_float_2x2 (float *x, float *y) const |
| void | inverse_transform (double *x, double *y) const |
| double | determinant () const |
| double | determinant_reciprocal () const |
| double | scale () const |
| bool | is_valid (double epsilon=g_transform_epsilon) const |
| bool | is_identity (double epsilon=g_transform_epsilon) const |
| bool | is_equal (const Transform2d &m, double epsilon=g_transform_epsilon) const |
| double | rotation () const |
| void | translation (double *dx, double *dy) const |
| void | scaling (double *x, double *y) const |
| void | scaling_abs (double *x, double *y) const |
Public 属性 | |
| double | sx |
| double | shy |
| double | shx |
| double | sy |
| double | tx |
| double | ty |
二维变换矩阵(简洁形式),在后续UI建模中会经常用到计算位置 [sx , shx, tx] [x]
| BUI::Transform2d::Transform2d | ( | ) |
| BUI::Transform2d::Transform2d | ( | double | sx_, |
| double | shy_, | ||
| double | shx_, | ||
| double | sy_, | ||
| double | tx_, | ||
| double | ty_ | ||
| ) |
|
explicit |
| BUI::Transform2d::Transform2d | ( | double | x1, |
| double | y1, | ||
| double | x2, | ||
| double | y2, | ||
| const double * | parl | ||
| ) |
Rectangle to a parallelogram.
| BUI::Transform2d::Transform2d | ( | const double * | parl, |
| double | x1, | ||
| double | y1, | ||
| double | x2, | ||
| double | y2 | ||
| ) |
Parallelogram to a rectangle.
| BUI::Transform2d::Transform2d | ( | const double * | src, |
| const double * | dst | ||
| ) |
Arbitrary parallelogram transformation.
| double BUI::Transform2d::determinant | ( | ) | const |
| double BUI::Transform2d::determinant_reciprocal | ( | ) | const |
| const Transform2d & BUI::Transform2d::flip_x | ( | ) |
| const Transform2d & BUI::Transform2d::flip_y | ( | ) |
| void BUI::Transform2d::inverse_transform | ( | double * | x, |
| double * | y | ||
| ) | const |
| const Transform2d & BUI::Transform2d::invert | ( | ) |
| bool BUI::Transform2d::is_equal | ( | const Transform2d & | m, |
| double | epsilon = g_transform_epsilon |
||
| ) | const |
| bool BUI::Transform2d::is_identity | ( | double | epsilon = g_transform_epsilon | ) | const |
| bool BUI::Transform2d::is_valid | ( | double | epsilon = g_transform_epsilon | ) | const |
| const Transform2d & BUI::Transform2d::multiply | ( | const Transform2d & | m | ) |
| const Transform2d & BUI::Transform2d::multiply_inv | ( | const Transform2d & | m | ) |
| bool BUI::Transform2d::operator!= | ( | const Transform2d & | m | ) | const |
| Transform2d BUI::Transform2d::operator* | ( | const Transform2d & | m | ) | const |
| const Transform2d & BUI::Transform2d::operator*= | ( | const Transform2d & | m | ) |
| Transform2d BUI::Transform2d::operator/ | ( | const Transform2d & | m | ) | const |
| const Transform2d & BUI::Transform2d::operator/= | ( | const Transform2d & | m | ) |
| const Transform2d & BUI::Transform2d::operator= | ( | const Transform2d & | m | ) |
| bool BUI::Transform2d::operator== | ( | const Transform2d & | m | ) | const |
| Transform2d BUI::Transform2d::operator~ | ( | ) | const |
| const Transform2d & BUI::Transform2d::parl_to_parl | ( | const double * | src, |
| const double * | dst | ||
| ) |
| const Transform2d & BUI::Transform2d::parl_to_rect | ( | const double * | parl, |
| double | x1, | ||
| double | y1, | ||
| double | x2, | ||
| double | y2 | ||
| ) |
| const Transform2d & BUI::Transform2d::premultiply | ( | const Transform2d & | m | ) |
| const Transform2d & BUI::Transform2d::premultiply_inv | ( | const Transform2d & | m | ) |
| const Transform2d & BUI::Transform2d::rect_to_parl | ( | double | x1, |
| double | y1, | ||
| double | x2, | ||
| double | y2, | ||
| const double * | parl | ||
| ) |
| const Transform2d & BUI::Transform2d::reset | ( | ) |
Reset - load an identity matrix
| const Transform2d & BUI::Transform2d::rotate | ( | double | a | ) |
| double BUI::Transform2d::rotation | ( | ) | const |
| double BUI::Transform2d::scale | ( | ) | const |
| const Transform2d & BUI::Transform2d::scale | ( | double | s | ) |
| const Transform2d & BUI::Transform2d::scale | ( | double | x, |
| double | y | ||
| ) |
| void BUI::Transform2d::scaling | ( | double * | x, |
| double * | y | ||
| ) | const |
| void BUI::Transform2d::scaling_abs | ( | double * | x, |
| double * | y | ||
| ) | const |
| void BUI::Transform2d::transform | ( | double * | x, |
| double * | y | ||
| ) | const |
| void BUI::Transform2d::transform_2x2 | ( | double * | x, |
| double * | y | ||
| ) | const |
| void BUI::Transform2d::transform_float | ( | float * | x, |
| float * | y | ||
| ) | const |
| void BUI::Transform2d::transform_float_2x2 | ( | float * | x, |
| float * | y | ||
| ) | const |
| void BUI::Transform2d::transform_int | ( | int * | x, |
| int * | y | ||
| ) | const |
| const Transform2d & BUI::Transform2d::translate | ( | double | x, |
| double | y | ||
| ) |
| void BUI::Transform2d::translation | ( | double * | dx, |
| double * | dy | ||
| ) | const |
| double BUI::Transform2d::shx |
| double BUI::Transform2d::shy |
| double BUI::Transform2d::sx |
| double BUI::Transform2d::sy |
| double BUI::Transform2d::tx |
| double BUI::Transform2d::ty |