mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-05 15:30:00 +01:00
fixed Switch node in Scene, removed Animation node from scene, created display mode for Source.
29 lines
589 B
C++
29 lines
589 B
C++
#ifndef BOUNDINGBOXVISITOR_H
|
|
#define BOUNDINGBOXVISITOR_H
|
|
|
|
#include "GlmToolkit.h"
|
|
#include "Visitor.h"
|
|
|
|
|
|
class BoundingBoxVisitor: public Visitor
|
|
{
|
|
glm::mat4 modelview_;
|
|
GlmToolkit::AxisAlignedBoundingBox bbox_;
|
|
|
|
public:
|
|
|
|
BoundingBoxVisitor();
|
|
|
|
void setModelview(glm::mat4 modelview);
|
|
GlmToolkit::AxisAlignedBoundingBox bbox();
|
|
|
|
// Elements of Scene
|
|
void visit(Scene& n) override;
|
|
void visit(Node& n) override;
|
|
void visit(Group& n) override;
|
|
void visit(Switch& n) override;
|
|
void visit(Primitive& n) override;
|
|
};
|
|
|
|
#endif // BOUNDINGBOXVISITOR_H
|