#ifndef CONTAINERNODE_H #define CONTAINERNODE_H #include "scenenode.h" #include /** * @brief The ContainerNode class represents a node which main use is to contain a collection of nodes */ class ContainerNode : public SceneNode { public: virtual ~ContainerNode(); virtual void update(); /** * @brief addChild adds node in the ContainerNode's children list */ void addChild(SceneNode* node); /** * @brief removeChild removes the first iteration of node of the children list */ void removeChild(SceneNode* node); /** * @brief setSceneTree is called when this node is added to a SceneTree * * @param tree */ void setSceneTree(SceneTree *tree); protected: std::vector m_children; }; #endif // CONTAINERNODE_H