| 82 | } |
| 83 | |
| 84 | void selectLightPlaneAt320(const scene::INodePtr& entityNode) |
| 85 | { |
| 86 | // Select the plane on the "right" |
| 87 | auto planeSelectable = Node_getPlaneSelectable(entityNode); |
| 88 | EXPECT_TRUE(planeSelectable); |
| 89 | |
| 90 | // Construct an orthoview to test-select the light |
| 91 | render::View view(false); |
| 92 | algorithm::constructCenteredOrthoview(view, Vector3(400, 0, 0)); |
| 93 | |
| 94 | SelectionVolume test = algorithm::constructOrthoviewSelectionTest(view); |
| 95 | |
| 96 | selection::SingleItemSelector selector; |
| 97 | selection::SelectedPlaneSet selectedPlanes; |
| 98 | planeSelectable->selectPlanes(selector, test, std::bind(&selection::SelectedPlaneSet::insert, &selectedPlanes, std::placeholders::_1)); |
| 99 | |
| 100 | EXPECT_FALSE(selectedPlanes.empty()) << "Failed to select the light plane at X=+320"; |
| 101 | EXPECT_TRUE(selectedPlanes.contains(Plane3(1, 0, 0, 320))) << "Failed to select the light plane at X=+320"; |
| 102 | |
| 103 | // Select that plane |
| 104 | selector.getSelectable()->setSelected(true); |
| 105 | } |
| 106 | |
| 107 | // #5644: Non uniform light volume scaling not working - the origin is translated ever further off the screen |
| 108 | TEST_F(TransformationTest, NonUniformLightDragResize) |
no test coverage detected