class FlatlandMouseIntegrationTest_TargetViewWith_ScaleRotationTranslation_Class
Defined at line 1292 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_mouse_integration_test.cc
In this test we set up the context and the target. We apply a scale, rotation and translation
transform to both of their view holder nodes, and then inject pointer events to confirm that
the coordinates received by the listener are correctly transformed.
Only the transformation of the target, relative to the context, should have any effect on
the output.
The viewport-to-context transform here is the identity. That is, the size of the 9x9 viewport
matches the size of the 5x5 context view.
Below are ASCII diagrams showing the transformation *difference* between target and context.
Note that the dashes represent the context view and notated X,Y coordinate system is the
context's coordinate system. The target view's coordinate system has its origin at corner '1'.
Scene pre-transformation
1,2,3,4 denote the corners of the target view:
X ->
Y 1 O O O O 2
| O O O O O O
v O O O O O O
O O O O O O
O O O O O O
4 O O O O 3
After scale:
X ->
Y 1 - O - O - O O 2
| - - - - - - -
V - - - - - - -
O - O - O - O O O
- - - - - - -
- - - - - - -
O O O O O O
O O O O O O
O O O O O O
4 O O O O 3
After rotation:
X ->
Y 4 O O O O 1 - - - - - -
| - - - - - -
V O O O O O O - - - - - -
- - - - - -
O O O O O O - - - - - -
- - - - - -
O O O O O O
O O O O O O
3 O O O O 2
After translation:
X ->
Y 4 O O O O A 1 - - - C1
| - - - - - -
V O O O O O - O - - - -
- - - - - -
O O O O O - O - - - -
R - - - - C2
O O O O O O
O O O O O O
3 O O O O 2
Public Methods
void FlatlandMouseIntegrationTest_TargetViewWith_ScaleRotationTranslation_Class ()
Defined at line 1292 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_mouse_integration_test.cc
void ~FlatlandMouseIntegrationTest_TargetViewWith_ScaleRotationTranslation_Class ()
Defined at line 1292 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_mouse_integration_test.cc