CloudViewer: added some getters

This commit is contained in:
matlabbe
2018-10-30 17:42:43 -04:00
parent 69f3116158
commit bb4164a05d
2 changed files with 31 additions and 0 deletions

View File

@@ -319,6 +319,13 @@ public:
void setShading(bool on);
void setEdgeVisibility(bool visible);
void setInteractorLayer(int layer);
bool isBackfaceCulling() const;
bool isFrontfaceCulling() const;
bool isPolygonPicking() const;
bool isLightingOn() const;
bool isShadingOn() const;
bool isEdgeVisible() const;
double getRenderingRate() const;
void getCameraPosition(

View File

@@ -2651,6 +2651,30 @@ bool CloudViewer::isCameraOrtho() const
{
return _aCameraOrtho->isChecked();
}
bool CloudViewer::isBackfaceCulling() const
{
return _aBackfaceCulling->isChecked();
}
bool CloudViewer::isFrontfaceCulling() const
{
return _frontfaceCulling;
}
bool CloudViewer::isPolygonPicking() const
{
return _aPolygonPicking->isChecked();
}
bool CloudViewer::isLightingOn() const
{
return _aSetLighting->isChecked();
}
bool CloudViewer::isShadingOn() const
{
return _aSetFlatShading->isChecked();
}
bool CloudViewer::isEdgeVisible() const
{
return _aSetEdgeVisibility->isChecked();
}
double CloudViewer::getRenderingRate() const
{
return _renderingRate;