8 #include <MGXViewer/qglviewer.h>
35 bool enabled()
const {
60 void setWidth(
float f)
71 void setGridSize(
float s)
78 float gridSize()
const {
82 void setNormal(
const Point3f& n)
90 const Point3f& normal()
const {
98 Point4f normalFormPos()
const;
103 Point4f normalFormNeg()
const;
105 void setGridSquares(uint n)
107 if(n != _gridSquares) {
112 uint gridSquares()
const {
131 bool changed()
const {
134 void resetChanges() {
138 bool isClipped(
const Point3f& p);
140 const Point3f& xb()
const {
143 const Point3f& yb()
const {
146 const Point3f& zb()
const {
bool _showGrid
Show the grid corresponding to the clipping plane.
Definition: Clip.hpp:154
int _clipNo
Id of the clipping region (0, 1 or 2)
Definition: Clip.hpp:162
uint _gridSquares
Number of squares drawn for the grid.
Definition: Clip.hpp:161
bool grid() const
Returns true if the grid is sto be shown, false otherwise.
Definition: Clip.hpp:56
float _width
Width of the region.
Definition: Clip.hpp:155
float _gridSize
Size of the grid (i.e. in the clipping plane)
Definition: Clip.hpp:156
bool _changed
If true, it changed and need update in OpenGL.
Definition: Clip.hpp:163
bool _enable
If true, these planes are used to clipping.
Definition: Clip.hpp:153
qglviewer::ManipulatedFrame & frame()
Get frame.
Definition: Clip.hpp:117
Point3f _xb
X-axis of the planes.
Definition: Clip.hpp:158
void hasChanged()
Call this if you change the manipulated frame.
Definition: Clip.hpp:127
Point3f _yb
Y-axis of the planes.
Definition: Clip.hpp:159
Point3f _zb
Thickness of the region.
Definition: Clip.hpp:160
Point3f _normal
Normal to the grid.
Definition: Clip.hpp:157