From 6edade902b2617301a1f92e4298a8d42df80c786 Mon Sep 17 00:00:00 2001 From: "Joachim Wuttke (o)" <j.wuttke@fz-juelich.de> Date: Mon, 18 Dec 2023 19:11:42 +0100 Subject: [PATCH] CameraParams restore c'tors (now complete) --- Img3D/Type/CameraParams.cpp | 24 ++++++++++++++++++++++++ Img3D/Type/CameraParams.h | 3 +++ 2 files changed, 27 insertions(+) create mode 100644 Img3D/Type/CameraParams.cpp diff --git a/Img3D/Type/CameraParams.cpp b/Img3D/Type/CameraParams.cpp new file mode 100644 index 00000000000..cd834cdeb93 --- /dev/null +++ b/Img3D/Type/CameraParams.cpp @@ -0,0 +1,24 @@ +// ************************************************************************************************ +// +// BornAgain: simulate and fit reflection and scattering +// +//! @file Img3D/Type/CameraParams.cpp +//! @brief Implements struct CameraParams. +//! +//! @homepage http://www.bornagainproject.org +//! @license GNU General Public License v3 or higher (see COPYING) +//! @copyright Forschungszentrum Jülich GmbH 2018 +//! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS) +// +// ************************************************************************************************ + +#include "Img3D/Type/CameraParams.h" + +Img3D::CameraParams::CameraParams(const F3& eye_, const F3& ctr_, const F3& up_, + QQuaternion const& rot_) + : eye(eye_) + , ctr(ctr_) + , up(up_) + , rot(rot_) +{ +} diff --git a/Img3D/Type/CameraParams.h b/Img3D/Type/CameraParams.h index 1dfe3bdb816..d1e6ef4ed34 100644 --- a/Img3D/Type/CameraParams.h +++ b/Img3D/Type/CameraParams.h @@ -21,6 +21,9 @@ namespace Img3D { struct CameraParams { + CameraParams(); + CameraParams(const F3& eye, const F3& ctr, const F3& up, const QQuaternion& = {}); + F3 eye; F3 ctr; // center F3 up; -- GitLab