15 #include <vsg/core/Allocator.h>
16 #include <vsg/core/ref_ptr.h>
17 #include <vsg/nodes/Node.h>
37 template<
class N,
class V>
38 static void t_traverse(N& node, V& visitor)
40 for (
auto& child : node.children) child.node->accept(visitor);
43 void traverse(
Visitor& visitor)
override { t_traverse(*
this, visitor); }
44 void traverse(
ConstVisitor& visitor)
const override { t_traverse(*
this, visitor); }
45 void traverse(
RecordTraversal& visitor)
const override { t_traverse(*
this, visitor); }
49 void read(
Input& input)
override;
50 void write(
Output& output)
const override;
54 double minimumScreenHeightRatio = 0.0;
58 using Children = std::vector<Child, allocator_affinity_nodes<Child>>;
63 void addChild(
const Child& lodChild) { children.push_back(lodChild); }
Definition: ConstVisitor.h:147
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