Go to the documentation of this file.
16 #include <MGXViewer/qglviewer.h>
20 class mgx_EXPORT
Clip :
public QObject
25 Clip(
int id, QObject* parent = 0);
117 if(
n != _gridSquares) {
148 bool isClipped(
const Point3f& p);
float _width
Width of the region.
bool _enable
If true, these planes are used to clipping.
Point3f _normal
Normal to the grid.
const Point3f & zb() const
const qglviewer::ManipulatedFrame & frame() const
bool _changed
If true, it changed and need update in OpenGL.
int _clipNo
Id of the clipping region (0, 1 or 2)
Point3f _yb
Y-axis of the planes.
void hasChanged()
Call this if you change the manipulated frame.
Distributed matrix library.
Point3f _zb
Thickness of the region.
void setNormal(const Point3f &n)
float _gridSize
Size of the grid (i.e. in the clipping plane)
const Point3f & xb() const
const Point3f & yb() const
const Point3f & normal() const
uint _gridSquares
Number of squares drawn for the grid.
qglviewer::ManipulatedFrame _frame
qglviewer::ManipulatedFrame & frame()
Get frame.
bool grid() const
Returns true if the grid is sto be shown, false otherwise.
void setGridSize(float s)
bool _showGrid
Show the grid corresponding to the clipping plane.
Point3f _xb
X-axis of the planes.
void setGridSquares(uint n)