21 #ifndef Tulip_GLSVGFEEDBACKBUILDER_H
22 #define Tulip_GLSVGFEEDBACKBUILDER_H
24 #ifndef DOXYGEN_NOTFOR_DEVEL
28 #include <tulip/GlTLPFeedBackBuilder.h>
32 class TLP_GL_SCOPE GlSVGFeedBackBuilder :
public GlTLPFeedBackBuilder {
36 GlSVGFeedBackBuilder()
37 :stream_out(std::stringstream::in | std::stringstream::out),inGlEntity(false),inGlGraph(false),inNode(false),inEdge(false) {}
39 virtual void begin(
const Vector<int, 4> &viewport,GLfloat *clearColor,GLfloat pointSize,GLfloat lineWidth);
40 virtual void colorInfo(GLfloat *data);
41 virtual void beginGlEntity(GLfloat data);
42 virtual void endGlEntity();
43 virtual void beginGlGraph(GLfloat data);
44 virtual void endGlGraph();
45 virtual void beginNode(GLfloat data);
46 virtual void endNode();
47 virtual void beginEdge(GLfloat data);
48 virtual void endEdge();
49 virtual void pointToken(GLfloat *data);
50 virtual void lineToken(GLfloat *data);
51 virtual void lineResetToken(GLfloat *data);
52 virtual void polygonToken(GLfloat *data);
53 virtual void bitmapToken(GLfloat *data);
54 virtual void drawPixelToken(GLfloat *data);
55 virtual void copyPixelToken(GLfloat *data);
58 virtual void getResult(std::string* str);
62 std::stringstream stream_out;
64 GLfloat clearColor[4];
84 #endif // DOXYGEN_NOTFOR_DEVEL
86 #endif // Tulip_GLFEEDBACKBUILDER_H