diff --git a/src/Gui/Quarter/SoQTQuarterAdaptor.cpp b/src/Gui/Quarter/SoQTQuarterAdaptor.cpp index 46db13d753..a769c93a66 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 096a4681dd..eea6f44e6c 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;