Commit 341f5dd4 authored by Frédéric Larue's avatar Frédéric Larue

Functions added to GLViewer in order to directly access to metric grids.

parent eee9e078
......@@ -410,6 +410,11 @@ public:
void updateSelection( QList< GenericUIData*> selectedItems );
inline MetricGrid& grid() { return grid( dof() ); }
inline const MetricGrid& grid() const { return grid( dof() ); }
inline MetricGrid& grid( DisplayDoF dof ) { return dof==DISPLAY_DOF_2D? m_View.metricGrid2D : m_View.metricGrid3D; }
inline const MetricGrid& grid( DisplayDoF dof ) const { return dof==DISPLAY_DOF_2D? m_View.metricGrid2D : m_View.metricGrid3D; }
/**************\
| QT signal(s) |
\**************/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment