1 #ifndef VIEWER_IVIEWERNODE_H_INCLUDED
2 #define VIEWER_IVIEWERNODE_H_INCLUDED
34 typedef std::map<std::string, std::shared_ptr<IViewerNode>> ChildrenMap;
54 virtual ChildrenMap::const_iterator
begin()
const = 0;
57 virtual ChildrenMap::const_iterator
end()
const = 0;
63 template <
class SubjectType>
80 #endif // end_of_inclde_guard
virtual void Enable()=0
Enable node.
virtual bool IsEnabled() const =0
Test whether node is enabled.
virtual ~IViewerNodeWithParent()
Virtual destructor.
Interface for a node in a hierarchical tree of viewers.
virtual void ParentDisabled()=0
Enable entire subtree.
virtual ChildrenMap::const_iterator end() const =0
Get iterator pointing to one position after last child.
Interface/Implementation of Subject.
virtual bool IsParentEnabled() const =0
Test whether parent node is enabled.
virtual ~IViewerNode()
Virtual destructor.
Subject in Observer pattern.
virtual void Disable()=0
Disable node.
Interface for ViewerEvent.
virtual ChildrenMap::const_iterator begin() const =0
Get iterator pointing to first child.
Namespace for generic graphical shell for simulators.
virtual void ParentEnabled(std::shared_ptr< SubjectType >)=0
Disable entire subtree.
A viewer node with a parent.