15 #include <vsg/core/ref_ptr.h>
17 #include <vsg/nodes/Node.h>
33 template<
class N,
class V>
34 static void t_traverse(N& node, V& visitor)
36 for (
int i = 0; i < 4; ++i) node.children[i]->accept(visitor);
39 void traverse(
Visitor& visitor)
override { t_traverse(*
this, visitor); }
40 void traverse(
ConstVisitor& visitor)
const override { t_traverse(*
this, visitor); }
41 void traverse(
RecordTraversal& visitor)
const override { t_traverse(*
this, visitor); }
45 void read(
Input& input)
override;
46 void write(
Output& output)
const override;
48 using Children = std::array<ref_ptr<vsg::Node>, 4>;
Definition: ConstVisitor.h:147
Definition: QuadGroup.h:29
int compare(const Object &rhs) const override
compare two objects, return -1 if this object is less than rhs, return 0 if it's equal,...
RecordTraversal traverses a scene graph doing view frustum culling and invoking state/commands to rec...
Definition: RecordTraversal.h:61
Definition: Visitor.h:147