VPTissue Reference Manual
SimShell::Viewer::SubjectViewerNodeWrapper< FakeSubjectType > Class Template Reference
Inheritance diagram for SimShell::Viewer::SubjectViewerNodeWrapper< FakeSubjectType >:
Inheritance graph
Collaboration diagram for SimShell::Viewer::SubjectViewerNodeWrapper< FakeSubjectType >:
Collaboration graph

Public Member Functions

 SubjectViewerNodeWrapper (std::shared_ptr< IViewerNode > node)
 
virtual IViewerNode::ChildrenMap::const_iterator begin () const
 Get iterator pointing to first child.
 
virtual void Disable ()
 Disable node.
 
virtual void Enable ()
 Enable node.
 
virtual IViewerNode::ChildrenMap::const_iterator end () const
 Get iterator pointing to one position after last child.
 
virtual bool IsEnabled () const
 Test whether node is enabled. More...
 
virtual bool IsParentEnabled () const
 Test whether parent node is enabled.
 
- Public Member Functions inherited from SimShell::Viewer::IViewerNodeWithParent< FakeSubjectType >
virtual ~IViewerNodeWithParent ()
 Virtual destructor.
 
- Public Member Functions inherited from SimShell::Viewer::IViewerNode
virtual ~IViewerNode ()
 Virtual destructor.
 
- Public Member Functions inherited from SimPT_Sim::Util::Subject< Event::ViewerEvent, std::weak_ptr< const void > >
void Notify (const EventType &)
 
void Register (const U *, CallbackType)
 
void Unregister (const U *)
 
void UnregisterAll ()
 

Protected Member Functions

virtual void ParentDisabled ()
 
virtual void ParentEnabled (std::shared_ptr< FakeSubjectType >)
 

Additional Inherited Members

- Public Types inherited from SimShell::Viewer::IViewerNode
typedef std::map< std::string, std::shared_ptr< IViewerNode > > ChildrenMap
 
- Public Types inherited from SimPT_Sim::Util::Subject< Event::ViewerEvent, std::weak_ptr< const void > >
typedef std::function< void(const EventType &)> CallbackType
 
typedef Event::ViewerEvent EventType
 
typedef const std::weak_ptr< const void > * KeyType
 

Detailed Description

template<class FakeSubjectType>
class SimShell::Viewer::SubjectViewerNodeWrapper< FakeSubjectType >

Definition at line 73 of file SubjectNode.h.

Member Function Documentation

template<class FakeSubjectType >
virtual bool SimShell::Viewer::SubjectViewerNodeWrapper< FakeSubjectType >::IsEnabled ( ) const
inlinevirtual

Test whether node is enabled.

Note that an enabled node still won't do anything if its parent is disabled.

See also
IViewerNodeWithParent::IsParentEnabled

Implements SimShell::Viewer::IViewerNode.

Definition at line 85 of file SubjectNode.h.

template<class FakeSubjectType >
virtual void SimShell::Viewer::SubjectViewerNodeWrapper< FakeSubjectType >::ParentDisabled ( )
inlineprotectedvirtual
template<class FakeSubjectType >
virtual void SimShell::Viewer::SubjectViewerNodeWrapper< FakeSubjectType >::ParentEnabled ( std::shared_ptr< FakeSubjectType >  )
inlineprotectedvirtual

The documentation for this class was generated from the following file: