Notice to GitKraken users: A vulnerability has been found in the SSH key generation of GitKraken versions 7.6.0 to 8.0.0 ( If you use GitKraken and have generated a SSH key using one of these versions, please remove it both from your local workstation and from your LRZ GitLab profile.

21.10.2021, 9:00 - 11:00: Due to updates GitLab may be unavailable for some minutes between 09:00 and 11:00.

Commit 7cc6cb13 authored by Christian Schulte zu Berge's avatar Christian Schulte zu Berge
Browse files

Adapted regression testing to new camera API.

refs #141
parent 51316d5c
......@@ -37,6 +37,7 @@
#include "modules/pipelinefactory.h"
#include "modules/devil/processors/devilimagewriter.h"
#include "modules/base/processors/trackballcameraprovider.h"
using namespace campvis;
......@@ -180,13 +181,13 @@ TEST_F(PipelineWriteResultImageTest, DVRVis) {
AbstractProperty* p = _pipeline->getProperty("Camera");
if (CameraProperty* tester = dynamic_cast<CameraProperty*>(p)) {
cgt::Camera c = tester->getValue();
c.setPosition(cgt::vec3(417.f, 44.5f, -112.5f));
c.setFocus(cgt::vec3(91.f, 91.f, 80.f));
c.setUpVector(cgt::vec3(-0.487f, 0.142f, -0.861f));
auto properties = _pipeline->getProcessors();
for (auto it = properties.begin(); it != properties.end(); ++it) {
if (TrackballCameraProvider* tcp = dynamic_cast<TrackballCameraProvider*>(*it)) {
tcp->p_position.setValue(cgt::vec3(417.f, 44.5f, -112.5f));
tcp->p_focus.setValue(cgt::vec3(91.f, 91.f, 80.f));
tcp->p_upVector.setValue(cgt::vec3(-0.487f, 0.142f, -0.861f));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment