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-2013 Gilles Debunne. All rights reserved.
26 
27  This file is part of the QGLViewer library version 2.4.0.
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 ;
78 
79  GLfloat _xmin ;
80  GLfloat _ymin ;
81  GLfloat _zmin ;
82  GLfloat _xmax ;
83  GLfloat _ymax ;
84  GLfloat _zmax ;
85  };
86 }
87 
88 #endif
GLfloat xmin() const
Definition: ParserGL.h:65
GLfloat xmax() const
Definition: ParserGL.h:68
GLfloat _xmax
Definition: ParserGL.h:82
GLfloat _zmax
Definition: ParserGL.h:84
int nb_degenerated_lines
Definition: ParserGL.h:75
GLfloat _zmin
Definition: ParserGL.h:81
GLfloat _xmin
Definition: ParserGL.h:79
GLfloat zmax() const
Definition: ParserGL.h:70
void parseFeedbackBuffer(GLfloat *, int size, std::vector< PtrPrimitive > &primitive_tab, VRenderParams &vparams)
Definition: ParserGL.cpp:86
GLfloat zmin() const
Definition: ParserGL.h:67
void printStats() const
int nb_degenerated_points
Definition: ParserGL.h:77
GLfloat _ymin
Definition: ParserGL.h:80
GLfloat ymin() const
Definition: ParserGL.h:66
int nb_degenerated_polys
Definition: ParserGL.h:76
GLfloat _ymax
Definition: ParserGL.h:83
GLfloat ymax() const
Definition: ParserGL.h:69


octovis
Author(s): Kai M. Wurm , Armin Hornung
autogenerated on Mon Jun 10 2019 14:00:25