| 117 | } |
| 118 | |
| 119 | void MPIFromOsprayTesting::SetUp() |
| 120 | { |
| 121 | MPIDistribBase::SetUp(); |
| 122 | |
| 123 | instances.clear(); |
| 124 | |
| 125 | auto builder = ospray::testing::newBuilder(sceneName); |
| 126 | ospray::testing::setParam(builder, "rendererType", rendererType); |
| 127 | ospray::testing::commit(builder); |
| 128 | |
| 129 | // Build the group to get the bounds |
| 130 | auto group = ospray::testing::buildGroup(builder); |
| 131 | worldBounds = group.getBounds<box3f>(); |
| 132 | |
| 133 | cpp::Instance instance(group); |
| 134 | instance.commit(); |
| 135 | instances.push_back(instance); |
| 136 | |
| 137 | ospray::testing::release(builder); |
| 138 | |
| 139 | ArcballCamera arcballCamera(worldBounds, imgSize); |
| 140 | |
| 141 | camera.setParam("position", arcballCamera.eyePos()); |
| 142 | camera.setParam("direction", arcballCamera.lookDir()); |
| 143 | camera.setParam("up", arcballCamera.upDir()); |
| 144 | } |
| 145 | |
| 146 | } // namespace MPIDistribOSPRayTestScenes |
nothing calls this directly
no test coverage detected