Files
vimix/SearchVisitor.h
brunoherbelin 20cafa388f Initial implementation of handles on sources to manipulate in geometry
view (only resize implemented so far)
2020-05-16 12:06:52 +02:00

28 lines
530 B
C++

#ifndef SEARCHVISITOR_H
#define SEARCHVISITOR_H
#include "Visitor.h"
class SearchVisitor: public Visitor
{
Node *node_;
int id_;
bool found_;
public:
SearchVisitor(Node *node);
SearchVisitor(int id);
inline bool found() const { return found_; }
inline Node *node() const { return found_ ? node_ : nullptr; }
// Elements of Scene
void visit(Scene& n);
void visit(Node& n);
void visit(Primitive&) {}
void visit(Group& n);
void visit(Switch& n);
};
#endif // SEARCHVISITOR_H