Tulip  4.4.0
Better Visualization Through Research
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Groups Pages
EpsFunction.h
1 /*
2  *
3  * This file is part of Tulip (www.tulip-software.org)
4  *
5  * Authors: David Auber and the Tulip development Team
6  * from LaBRI, University of Bordeaux 1 and Inria Bordeaux - Sud Ouest
7  *
8  * Tulip is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU Lesser General Public License
10  * as published by the Free Software Foundation, either version 3
11  * of the License, or (at your option) any later version.
12  *
13  * Tulip 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.
16  * See the GNU General Public License for more details.
17  *
18  */
19 ///@cond DOXYGEN_HIDDEN
20 
21 #ifndef EPSFUNCTION
22 #define EPSFUNCTION
23 #ifndef DOXYGEN_NOTFOR_DEVEL
24 //====================================================
25 
26 #include <cstdio>
27 
28 
29 #if defined(_MSC_VER)
30 #include <Windows.h>
31 #endif
32 
33 #if defined(__APPLE__)
34 #include <OpenGL/gl.h>
35 #else
36 #include <GL/gl.h>
37 #endif
38 
39 namespace tlp {
40 
41 class Color;
42 
43 void Line(float x1,float y1,float z1,float x2, float y2 , float z2, Color& C1, Color& C2);
44 void Rect(float x, float y , float z, float w , float h);
45 GLfloat *spewPrimitiveEPS(FILE * file, GLfloat * loc);
46 void spewUnsortedFeedback(FILE * file, GLint size, GLfloat * buffer);
47 int compare(const void *a, const void *b);
48 void spewSortedFeedback(FILE * file, GLint size, GLfloat * buffer);
49 void spewWireFrameEPS(FILE * file, int doSort, GLint size, GLfloat * buffer, char *creator);
50 void print3DcolorVertex(GLint size, GLint * count, GLfloat * buffer);
51 void printBuffer(GLint size, GLfloat * buffer);
52 
53 }
54 #endif //DOXYGEN_NOTFOR_DEVEL
55 #endif
56 ///@endcond