+ add convenience methods to SoQTQuarterAdaptor

This commit is contained in:
wmayer 2016-04-04 12:53:06 +02:00
parent a4f0f5c129
commit f7322989df
2 changed files with 13 additions and 0 deletions

View File

@ -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)
{

View File

@ -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;