15 #include <vsg/core/Inherit.h>
16 #include <vsg/core/ref_ptr.h>
27 explicit Objects(
size_t numChildren = 0);
29 template<
class N,
class V>
30 static void t_traverse(N& node, V& visitor)
32 for (
auto& child : node.children) child->accept(visitor);
35 void traverse(
Visitor& visitor)
override { t_traverse(*
this, visitor); }
36 void traverse(
ConstVisitor& visitor)
const override { t_traverse(*
this, visitor); }
37 void traverse(
RecordTraversal& visitor)
const override { t_traverse(*
this, visitor); }
39 void read(
Input& input)
override;
40 void write(
Output& output)
const override;
42 using Children = std::vector<ref_ptr<vsg::Object>>;
47 children.push_back(child);
Definition: ConstVisitor.h:147
Simple container class that has a list of vsg::Object as children.
Definition: Objects.h:25
RecordTraversal traverses a scene graph doing view frustum culling and invoking state/commands to rec...
Definition: RecordTraversal.h:61
Definition: Visitor.h:147