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