NorMIT-nav  22.09
An IGT application
cx::TreeNodeImpl Class Reference

#include <cxTreeNodeImpl.h>

Inheritance diagram for cx::TreeNodeImpl:
cx::TreeNode cx::DataTreeNode cx::GroupTreeNode cx::ShowDataTreeNodeBase cx::SpaceTreeNode cx::ToolTreeNode cx::TopTreeNode cx::ViewGroupTreeNode cx::ViewServiceTreeNode cx::ShowSlice2DDataTreeNode cx::ShowSlice3DDataTreeNode cx::ShowVolumeDataTreeNode

Public Member Functions

 TreeNodeImpl (TreeRepositoryWeakPtr repo)
 
virtual ~TreeNodeImpl ()
 
virtual std::vector< TreeNodePtrgetChildren () const
 
virtual bool isVisibleNode () const
 
virtual void activate ()
 
virtual QVariant getViewGroupVisibility (int index) const
 
virtual void setViewGroupVisibility (int index, bool value)
 
virtual QVariant getColor () const
 
virtual bool useColoredName () const
 
virtual QVariant getFont () const
 
virtual boost::shared_ptr< QWidget > createPropertiesWidget () const
 
virtual bool isDefaultExpanded () const
 
virtual bool isRemovable () const
 
virtual void remove ()
 
virtual std::vector< TreeNodePtrgetVisibleChildren () const
 
virtual TreeNodePtr getVisibleParent () const
 
- Public Member Functions inherited from cx::TreeNode
virtual ~TreeNode ()
 
virtual QString getUid () const =0
 
virtual QString getName () const =0
 
virtual QString getType () const =0
 
virtual TreeNodePtr getParent () const =0
 
virtual QIcon getIcon () const =0
 

Protected Member Functions

VisServicesPtr getServices () const
 
TreeRepositoryPtr repo ()
 
const TreeRepositoryPtr repo () const
 
QIcon addBackgroundColorToIcon (QIcon input, QColor color) const
 

Protected Attributes

TreeRepositoryWeakPtr mRepository
 

Additional Inherited Members

- Signals inherited from cx::TreeNode
void parentChanged (TreeNodePtr prev, TreeNodePtr next)
 
void changed ()
 

Detailed Description

Definition at line 26 of file cxTreeNodeImpl.h.

Constructor & Destructor Documentation

◆ TreeNodeImpl()

cx::TreeNodeImpl::TreeNodeImpl ( TreeRepositoryWeakPtr  repo)

Definition at line 22 of file cxTreeNodeImpl.cpp.

◆ ~TreeNodeImpl()

virtual cx::TreeNodeImpl::~TreeNodeImpl ( )
inlinevirtual

Definition at line 31 of file cxTreeNodeImpl.h.

Member Function Documentation

◆ activate()

virtual void cx::TreeNodeImpl::activate ( )
inlinevirtual

Implements cx::TreeNode.

Reimplemented in cx::DataTreeNode, cx::ShowDataTreeNodeBase, cx::ToolTreeNode, and cx::ViewGroupTreeNode.

Definition at line 35 of file cxTreeNodeImpl.h.

◆ addBackgroundColorToIcon()

QIcon cx::TreeNodeImpl::addBackgroundColorToIcon ( QIcon  input,
QColor  color 
) const
protected

Definition at line 112 of file cxTreeNodeImpl.cpp.

◆ createPropertiesWidget()

virtual boost::shared_ptr<QWidget> cx::TreeNodeImpl::createPropertiesWidget ( ) const
inlinevirtual

Implements cx::TreeNode.

Reimplemented in cx::DataTreeNode, cx::ShowDataTreeNodeBase, cx::ToolTreeNode, and cx::ViewGroupTreeNode.

Definition at line 41 of file cxTreeNodeImpl.h.

◆ getChildren()

std::vector< TreeNodePtr > cx::TreeNodeImpl::getChildren ( ) const
virtual

Implements cx::TreeNode.

Definition at line 28 of file cxTreeNodeImpl.cpp.

◆ getColor()

virtual QVariant cx::TreeNodeImpl::getColor ( ) const
inlinevirtual

Implements cx::TreeNode.

Reimplemented in cx::DataTreeNode, cx::ShowDataTreeNodeBase, cx::ToolTreeNode, and cx::ViewGroupTreeNode.

Definition at line 38 of file cxTreeNodeImpl.h.

◆ getFont()

virtual QVariant cx::TreeNodeImpl::getFont ( ) const
inlinevirtual

Implements cx::TreeNode.

Reimplemented in cx::DataTreeNode, cx::ShowDataTreeNodeBase, cx::ToolTreeNode, and cx::ViewGroupTreeNode.

Definition at line 40 of file cxTreeNodeImpl.h.

◆ getServices()

VisServicesPtr cx::TreeNodeImpl::getServices ( ) const
protected

Definition at line 97 of file cxTreeNodeImpl.cpp.

◆ getViewGroupVisibility()

virtual QVariant cx::TreeNodeImpl::getViewGroupVisibility ( int  index) const
inlinevirtual

Implements cx::TreeNode.

Reimplemented in cx::DataTreeNode, and cx::ShowDataTreeNodeBase.

Definition at line 36 of file cxTreeNodeImpl.h.

◆ getVisibleChildren()

std::vector< TreeNodePtr > cx::TreeNodeImpl::getVisibleChildren ( ) const
virtual

Implements cx::TreeNode.

Definition at line 60 of file cxTreeNodeImpl.cpp.

◆ getVisibleParent()

TreeNodePtr cx::TreeNodeImpl::getVisibleParent ( ) const
virtual

Implements cx::TreeNode.

Definition at line 74 of file cxTreeNodeImpl.cpp.

◆ isDefaultExpanded()

virtual bool cx::TreeNodeImpl::isDefaultExpanded ( ) const
inlinevirtual

Implements cx::TreeNode.

Reimplemented in cx::DataTreeNode.

Definition at line 42 of file cxTreeNodeImpl.h.

◆ isRemovable()

virtual bool cx::TreeNodeImpl::isRemovable ( ) const
inlinevirtual

Implements cx::TreeNode.

Reimplemented in cx::DataTreeNode.

Definition at line 44 of file cxTreeNodeImpl.h.

◆ isVisibleNode()

bool cx::TreeNodeImpl::isVisibleNode ( ) const
virtual

◆ remove()

virtual void cx::TreeNodeImpl::remove ( )
inlinevirtual

Implements cx::TreeNode.

Reimplemented in cx::DataTreeNode.

Definition at line 45 of file cxTreeNodeImpl.h.

◆ repo() [1/2]

const TreeRepositoryPtr cx::TreeNodeImpl::repo ( )
protected

Definition at line 102 of file cxTreeNodeImpl.cpp.

◆ repo() [2/2]

const TreeRepositoryPtr cx::TreeNodeImpl::repo ( ) const
protected

◆ setViewGroupVisibility()

virtual void cx::TreeNodeImpl::setViewGroupVisibility ( int  index,
bool  value 
)
inlinevirtual

Implements cx::TreeNode.

Reimplemented in cx::DataTreeNode, and cx::ShowDataTreeNodeBase.

Definition at line 37 of file cxTreeNodeImpl.h.

◆ useColoredName()

virtual bool cx::TreeNodeImpl::useColoredName ( ) const
inlinevirtual

Implements cx::TreeNode.

Reimplemented in cx::ToolTreeNode, and cx::ViewGroupTreeNode.

Definition at line 39 of file cxTreeNodeImpl.h.

Member Data Documentation

◆ mRepository

TreeRepositoryWeakPtr cx::TreeNodeImpl::mRepository
protected

Definition at line 51 of file cxTreeNodeImpl.h.


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