Files
vimix/SessionVisitor.h
brunoherbelin 551acf25b9 New Shader Image Processing
Cleanup shaders and add image processing shader for source
2020-04-25 23:58:49 +02:00

42 lines
997 B
C++

#ifndef XMLVISITOR_H
#define XMLVISITOR_H
#include "Visitor.h"
#include "tinyxml2Toolkit.h"
class SessionVisitor : public Visitor {
tinyxml2::XMLDocument *xmlDoc_;
tinyxml2::XMLElement *xmlCurrent_;
tinyxml2::XMLElement *xmlRoot_;
public:
SessionVisitor();
void save(std::string filename);
tinyxml2::XMLElement *root() {return xmlRoot_;}
// Elements of Scene
void visit(Scene& n);
void visit(Node& n);
void visit(Group& n);
void visit(Switch& n);
void visit(Animation& n);
void visit(Primitive& n);
void visit(Surface& n);
void visit(ImageSurface& n);
void visit(MediaSurface& n);
void visit(FrameBufferSurface& n);
void visit(LineStrip& n);
void visit(LineSquare&);
void visit(LineCircle& n);
void visit(Mesh& n);
// Elements with attributes
void visit(MediaPlayer& n);
void visit(Shader& n);
void visit(ImageShader& n);
void visit(ImageProcessingShader& n);
};
#endif // XMLVISITOR_H