MorphoGraphX
2.0-1-227
src
ClipRegion.hpp
Go to the documentation of this file.
1
//
2
// This file is part of MorphoGraphX - http://www.MorphoGraphX.org
3
// Copyright (C) 2012-2015 Richard S. Smith and collaborators.
4
//
5
// If you use MorphoGraphX in your work, please cite:
6
// http://dx.doi.org/10.7554/eLife.05864
7
//
8
// MorphoGraphX is free software, and is licensed under under the terms of the
9
// GNU General (GPL) Public License version 2.0, http://www.gnu.org/licenses.
10
//
11
#ifndef CLIP_REGION_H
12
#define CLIP_REGION_H
13
19
#include <Config.hpp>
20
#include <
GL.hpp
>
21
22
#include <
Clip.hpp
>
23
#include <
Colors.hpp
>
24
#include <
Geometry.hpp
>
25
#include <MGXViewer/qglviewer.h>
26
#include <
Parms.hpp
>
27
28
#include <iostream>
29
30
namespace
mgx
31
{
32
typedef
Color<float>
Color3f
;
33
39
class
mgx_EXPORT
ClipRegion
{
40
public
:
41
ClipRegion
();
42
~ClipRegion
(){
43
};
44
45
Clip
* clip;
46
47
void
setClip(
Clip
* c);
48
52
GLenum
clip0
;
56
GLenum
clip1
;
57
58
Colors::ColorType
GridColor
;
59
61
void
readParms(
Parms
& parms, QString section);
62
64
void
writeParms(QTextStream& pout, QString section);
65
67
void
disable
()
68
{
69
glDisable(clip0);
70
glDisable(clip1);
71
}
72
74
void
drawClip();
75
77
void
drawGrid(
float
width);
78
};
79
}
80
#endif
mgx::ClipRegion::clip0
GLenum clip0
OpenGL identifier for the first clipping plane.
Definition:
ClipRegion.hpp:52
GL.hpp
mgx::ClipRegion::disable
void disable()
Draw (use) clipping place (ax + by + cz + d = 0)
Definition:
ClipRegion.hpp:67
mgx::ClipRegion::GridColor
Colors::ColorType GridColor
Color used to draw the grid.
Definition:
ClipRegion.hpp:58
mgx::ClipRegion::clip1
GLenum clip1
OpenGL identifier for the second clipping plane.
Definition:
ClipRegion.hpp:56
Colors.hpp
mgx::Colors::ColorType
ColorType
Mesh1 and 2 must have the same order for their colors.
Definition:
Colors.hpp:35
Geometry.hpp
mgx
Distributed matrix library.
Definition:
Assert.hpp:26
mgx::ClipRegion
Definition:
ClipRegion.hpp:39
mgx::Clip
Definition:
Clip.hpp:20
Parms.hpp
Clip.hpp
mgx::ClipRegion::~ClipRegion
~ClipRegion()
Definition:
ClipRegion.hpp:42
mgx::Color3f
Color< float > Color3f
Definition:
ClipRegion.hpp:32
mgx::Color< float >
mgx::Parms
A utility class to parse L-Studio like parameter files.
Definition:
Parms.hpp:116
Generated on Fri Jul 9 2021 18:34:54 for MorphoGraphX by
1.8.17