Tulip  5.1.0
Large graphs analysis and drawing
EpsFunction.h
1 /*
2  *
3  * This file is part of Tulip (http://tulip.labri.fr)
4  *
5  * Authors: David Auber and the Tulip development Team
6  * from LaBRI, University of Bordeaux
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 #include <tulip/OpenGlIncludes.h>
29 
30 namespace tlp {
31 
32 class Color;
33 
34 void Line(float x1,float y1,float z1,float x2, float y2 , float z2, Color& C1, Color& C2);
35 void Rect(float x, float y , float z, float w , float h);
36 GLfloat *spewPrimitiveEPS(FILE * file, GLfloat * loc);
37 void spewUnsortedFeedback(FILE * file, GLint size, GLfloat * buffer);
38 int compare(const void *a, const void *b);
39 void spewSortedFeedback(FILE * file, GLint size, GLfloat * buffer);
40 void spewWireFrameEPS(FILE * file, int doSort, GLint size, GLfloat * buffer, char *creator);
41 void print3DcolorVertex(GLint size, GLint * count, GLfloat * buffer);
42 void printBuffer(GLint size, GLfloat * buffer);
43 
44 }
45 #endif //DOXYGEN_NOTFOR_DEVEL
46 #endif
47 ///@endcond