3 #ifndef SCENEVIEW_GROUP_NODE_HPP__
4 #define SCENEVIEW_GROUP_NODE_HPP__
8 #include <sceneview/scene_node.hpp>
9 #include <sceneview/axis_aligned_box.hpp>
34 return SceneNodeType::kGroupNode; }
39 const std::vector<SceneNode*>&
Children() {
return children_; }
57 std::vector<SceneNode*> children_;
60 bool bounding_box_dirty_;
65 #endif // SCENEVIEW_GROUP_NODE_HPP__
A scene graph node that can have children.
Definition: group_node.hpp:26
void TransformChanged() override
Internal method, used to enable lazy matrix computations.
Pure virtual class that all scene graph nodes inherit.
Definition: scene_node.hpp:41
An axis-aligned box typically used for bounding box and intersection calculations.
Definition: axis_aligned_box.hpp:17
const AxisAlignedBox & WorldBoundingBox() override
Retrieve the world-space bounding box of the node and all of its children (if applicable).
A scene graph.
Definition: scene.hpp:36
SceneNodeType
Specifies a scene node type.
Definition: scene_node.hpp:19
const std::vector< SceneNode * > & Children()
Retrieve the node's children.
Definition: group_node.hpp:39
SceneNodeType NodeType() const override
Definition: group_node.hpp:33