+ add convenience methods to SoQTQuarterAdaptor
This commit is contained in:
parent
a4f0f5c129
commit
f7322989df
|
@ -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)
|
||||
{
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user