Main Page
Namespaces
Classes
Files
File List
File Members
src
extern
QGLViewer
VRender
ParserGL.h
Go to the documentation of this file.
1
/*
2
This file is part of the VRender library.
3
Copyright (C) 2005 Cyril Soler (Cyril.Soler@imag.fr)
4
Version 1.0.0, released on June 27, 2005.
5
6
http://artis.imag.fr/Members/Cyril.Soler/VRender
7
8
VRender is free software; you can redistribute it and/or modify
9
it under the terms of the GNU General Public License as published by
10
the Free Software Foundation; either version 2 of the License, or
11
(at your option) any later version.
12
13
VRender is distributed in the hope that it will be useful,
14
but WITHOUT ANY WARRANTY; without even the implied warranty of
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
GNU General Public License for more details.
17
18
You should have received a copy of the GNU General Public License
19
along with VRender; if not, write to the Free Software Foundation, Inc.,
20
51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
21
*/
22
23
/****************************************************************************
24
25
Copyright (C) 2002-2014 Gilles Debunne. All rights reserved.
26
27
This file is part of the QGLViewer library version 2.6.3.
28
29
http://www.libqglviewer.com - contact@libqglviewer.com
30
31
This file may be used under the terms of the GNU General Public License
32
versions 2.0 or 3.0 as published by the Free Software Foundation and
33
appearing in the LICENSE file included in the packaging of this file.
34
In addition, as a special exception, Gilles Debunne gives you certain
35
additional rights, described in the file GPL_EXCEPTION in this package.
36
37
libQGLViewer uses dual licensing. Commercial/proprietary software must
38
purchase a libQGLViewer Commercial License.
39
40
This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
41
WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
42
43
*****************************************************************************/
44
45
#ifndef _VRENDER_PARSERGL_H
46
#define _VRENDER_PARSERGL_H
47
48
// This class implements the conversion from OpenGL feedback buffer into more
49
// usable data structures such as points, segments, and polygons (See Primitive.h)
50
51
#include <vector>
52
#include "
Primitive.h
"
53
54
namespace
vrender
55
{
56
class
ParserGL
57
{
58
public
:
59
void
parseFeedbackBuffer
( GLfloat *,
60
int
size,
61
std::vector<PtrPrimitive>& primitive_tab,
62
VRenderParams
& vparams) ;
63
void
printStats
()
const
;
64
65
inline
GLfloat
xmin
()
const
{
return
_xmin
; }
66
inline
GLfloat
ymin
()
const
{
return
_ymin
; }
67
inline
GLfloat
zmin
()
const
{
return
_zmin
; }
68
inline
GLfloat
xmax
()
const
{
return
_xmax
; }
69
inline
GLfloat
ymax
()
const
{
return
_ymax
; }
70
inline
GLfloat
zmax
()
const
{
return
_zmax
; }
71
private
:
72
int
nb_lines
;
73
int
nb_polys
;
74
int
nb_points
;
75
int
nb_degenerated_lines
;
76
int
nb_degenerated_polys
;
77
int
nb_degenerated_points
;
78
79
GLfloat
_xmin
;
80
GLfloat
_ymin
;
81
GLfloat
_zmin
;
82
GLfloat
_xmax
;
83
GLfloat
_ymax
;
84
GLfloat
_zmax
;
85
};
86
}
87
88
#endif
vrender::ParserGL::xmin
GLfloat xmin() const
Definition:
ParserGL.h:65
vrender::ParserGL::xmax
GLfloat xmax() const
Definition:
ParserGL.h:68
vrender::VRenderParams
Definition:
VRender.h:62
vrender::ParserGL::nb_polys
int nb_polys
Definition:
ParserGL.h:73
vrender::ParserGL::nb_points
int nb_points
Definition:
ParserGL.h:74
vrender::ParserGL::_xmax
GLfloat _xmax
Definition:
ParserGL.h:82
vrender::ParserGL::_zmax
GLfloat _zmax
Definition:
ParserGL.h:84
vrender::ParserGL::nb_degenerated_lines
int nb_degenerated_lines
Definition:
ParserGL.h:75
vrender::ParserGL::_zmin
GLfloat _zmin
Definition:
ParserGL.h:81
vrender::ParserGL::_xmin
GLfloat _xmin
Definition:
ParserGL.h:79
Primitive.h
vrender::ParserGL::zmax
GLfloat zmax() const
Definition:
ParserGL.h:70
vrender::ParserGL::parseFeedbackBuffer
void parseFeedbackBuffer(GLfloat *, int size, std::vector< PtrPrimitive > &primitive_tab, VRenderParams &vparams)
Definition:
ParserGL.cpp:86
vrender::ParserGL::zmin
GLfloat zmin() const
Definition:
ParserGL.h:67
vrender::ParserGL::printStats
void printStats() const
vrender::ParserGL::nb_lines
int nb_lines
Definition:
ParserGL.h:72
vrender::ParserGL::nb_degenerated_points
int nb_degenerated_points
Definition:
ParserGL.h:77
vrender::ParserGL::_ymin
GLfloat _ymin
Definition:
ParserGL.h:80
vrender::ParserGL::ymin
GLfloat ymin() const
Definition:
ParserGL.h:66
vrender::ParserGL::nb_degenerated_polys
int nb_degenerated_polys
Definition:
ParserGL.h:76
vrender::ParserGL
Definition:
ParserGL.h:56
vrender::ParserGL::_ymax
GLfloat _ymax
Definition:
ParserGL.h:83
vrender
Definition:
AxisAlignedBox.h:48
vrender::ParserGL::ymax
GLfloat ymax() const
Definition:
ParserGL.h:69
octovis
Author(s): Kai M. Wurm
, Armin Hornung
autogenerated on Wed Jun 5 2019 19:26:39