MorphoGraphX
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ClipRegion.hpp
Go to the documentation of this file.
1 #ifndef CLIP_REGION_H
2 #define CLIP_REGION_H
3 
9 #include <Config.hpp>
10 #include <GL.hpp>
11 
12 #include <Clip.hpp>
13 #include <Colors.hpp>
14 #include <Geometry.hpp>
15 #include <MGXViewer/qglviewer.h>
16 #include <Parms.hpp>
17 
18 #include <iostream>
19 
20 namespace mgx {
21 typedef util::Color<float> Color3f;
22 
28 class mgx_EXPORT ClipRegion {
29 public:
30  ClipRegion();
31  ~ClipRegion(){
32  };
33 
34  Clip* clip;
35 
36  void setClip(Clip* c);
37 
41  GLenum clip0;
45  GLenum clip1;
46 
48 
50  void readParms(util::Parms& parms, QString section);
51 
53  void writeParms(QTextStream& pout, QString section);
54 
56  void disable()
57  {
58  glDisable(clip0);
59  glDisable(clip1);
60  }
61 
63  void drawClip();
64 
66  void drawGrid(float width);
67 };
68 } // namespace mgx
69 #endif /*CLIP_REGION_H*/
void disable()
Draw (use) clipping place (ax + by + cz + d = 0)
Definition: ClipRegion.hpp:56
Defines the util::Parms class.
Class to handle rotatable pair of clipping planes.
Definition: ClipRegion.hpp:28
GLenum clip1
OpenGL identifier for the second clipping plane.
Definition: ClipRegion.hpp:45
Common definitions and utilities for all geometry algorithms This file is shared by cuda...
A utility class to parse L-Studio like parameter files.
Definition: Parms.hpp:105
Colors::ColorType GridColor
Color used to draw the grid.
Definition: ClipRegion.hpp:47
ColorType
Mesh1 and 2 must have the same order for their colors.
Definition: Colors.hpp:24
Definition: Clip.hpp:11
GLenum clip0
OpenGL identifier for the first clipping plane.
Definition: ClipRegion.hpp:41