18 #include <MGXViewer/qglviewer.h> 45 bool enabled()
const {
70 void setWidth(
float f)
81 void setGridSize(
float s)
88 float gridSize()
const {
92 void setNormal(
const Point3f& n)
100 const Point3f& normal()
const {
115 void setGridSquares(uint n)
117 if(n != _gridSquares) {
122 uint gridSquares()
const {
141 bool changed()
const {
144 void resetChanges() {
148 bool isClipped(
const Point3f& p);
bool _showGrid
Show the grid corresponding to the clipping plane.
Definition: Clip.hpp:164
int _clipNo
Id of the clipping region (0, 1 or 2)
Definition: Clip.hpp:172
uint _gridSquares
Number of squares drawn for the grid.
Definition: Clip.hpp:171
bool grid() const
Returns true if the grid is sto be shown, false otherwise.
Definition: Clip.hpp:66
float _width
Width of the region.
Definition: Clip.hpp:165
This namespace contains all the API of MorphoGraphX.
Definition: Assert.hpp:26
float _gridSize
Size of the grid (i.e. in the clipping plane)
Definition: Clip.hpp:166
bool _changed
If true, it changed and need update in OpenGL.
Definition: Clip.hpp:173
bool _enable
If true, these planes are used to clipping.
Definition: Clip.hpp:163
qglviewer::ManipulatedFrame & frame()
Get frame.
Definition: Clip.hpp:127
Point3f _xb
X-axis of the planes.
Definition: Clip.hpp:168
void hasChanged()
Call this if you change the manipulated frame.
Definition: Clip.hpp:137
Point3f _yb
Y-axis of the planes.
Definition: Clip.hpp:169
Point3f _zb
Thickness of the region.
Definition: Clip.hpp:170
Point3f _normal
Normal to the grid.
Definition: Clip.hpp:167