From f7322989df9f2abc07071aa935af343a21983f51 Mon Sep 17 00:00:00 2001 From: wmayer Date: Mon, 4 Apr 2016 12:53:06 +0200 Subject: [PATCH] + add convenience methods to SoQTQuarterAdaptor --- src/Gui/Quarter/SoQTQuarterAdaptor.cpp | 10 ++++++++++ src/Gui/Quarter/SoQTQuarterAdaptor.h | 3 +++ 2 files changed, 13 insertions(+) diff --git a/src/Gui/Quarter/SoQTQuarterAdaptor.cpp b/src/Gui/Quarter/SoQTQuarterAdaptor.cpp index 46db13d75..a769c93a6 100644 --- a/src/Gui/Quarter/SoQTQuarterAdaptor.cpp +++ b/src/Gui/Quarter/SoQTQuarterAdaptor.cpp @@ -284,6 +284,16 @@ void SIM::Coin3D::Quarter::SoQTQuarterAdaptor::convertPerspective2Ortho(const So out->height = 2.0f * focaldist * (float)tan(in->heightAngle.getValue() / 2.0); } +SoCamera* SIM::Coin3D::Quarter::SoQTQuarterAdaptor::getCamera(void) const +{ + return getSoRenderManager()->getCamera(); +} + +const SbViewportRegion & SIM::Coin3D::Quarter::SoQTQuarterAdaptor::getViewportRegion(void) const +{ + return getSoRenderManager()->getViewportRegion(); +} + void SIM::Coin3D::Quarter::SoQTQuarterAdaptor::setViewing(SbBool enable) { diff --git a/src/Gui/Quarter/SoQTQuarterAdaptor.h b/src/Gui/Quarter/SoQTQuarterAdaptor.h index 096a4681d..eea6f44e6 100644 --- a/src/Gui/Quarter/SoQTQuarterAdaptor.h +++ b/src/Gui/Quarter/SoQTQuarterAdaptor.h @@ -58,6 +58,9 @@ public: QWidget* getGLWidget() const; virtual void setCameraType(SoType type); + SoCamera * getCamera(void) const; + + const SbViewportRegion & getViewportRegion(void) const; virtual void setViewing(SbBool enable); SbBool isViewing(void) const;