12 #ifndef NODE_H_6014714286
13 #define NODE_H_6014714286
48 const std::unique_ptr< Details > pimpl;
57 explicit Node(
const std::string& tag =
"" );
81 void invalidate()
override;
89 void attachChild(
Spatial* child );
105 bool hasChild(
const Spatial& child )
const;
110 void deleteAllChildren();
115 std::size_t children()
const;
120 void visitChildren(
bool recursively,
const MutableVisitor& visit );
124 void visitChildren(
bool recursively,
const ImmutableVisitor& visit )
const;
131 virtual void updateWorldTransform()
override;
141 #endif // NODE_H_6014714286
std::function< void(Spatial &) > MutableVisitor
Declares an entity that visits mutable Spatial instances.
Defines Carna::base::Spatial.
std::function< void(const Spatial &) > ImmutableVisitor
Declares an entity that visits mutable Spatial instances.
Defines the inner node of a scene graph. Implements a spatial scene element that is allowed to have c...
Represents a spatial scene element. It's location is determined relatively to another spatial that is...
Notified by Node objects.