CustusX  20.03-rc1
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

cx::TreeNodeImpl::TreeNodeImpl ( TreeRepositoryWeakPtr  repo)

Definition at line 22 of file cxTreeNodeImpl.cpp.

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

Definition at line 31 of file cxTreeNodeImpl.h.

Member Function Documentation

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.

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

Definition at line 112 of file cxTreeNodeImpl.cpp.

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.

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

Implements cx::TreeNode.

Definition at line 28 of file cxTreeNodeImpl.cpp.

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.

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.

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

Definition at line 97 of file cxTreeNodeImpl.cpp.

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.

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

Implements cx::TreeNode.

Definition at line 60 of file cxTreeNodeImpl.cpp.

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

Implements cx::TreeNode.

Definition at line 74 of file cxTreeNodeImpl.cpp.

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

Implements cx::TreeNode.

Reimplemented in cx::DataTreeNode.

Definition at line 42 of file cxTreeNodeImpl.h.

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

Implements cx::TreeNode.

Reimplemented in cx::DataTreeNode.

Definition at line 44 of file cxTreeNodeImpl.h.

bool cx::TreeNodeImpl::isVisibleNode ( ) const
virtual
virtual void cx::TreeNodeImpl::remove ( )
inlinevirtual

Implements cx::TreeNode.

Reimplemented in cx::DataTreeNode.

Definition at line 45 of file cxTreeNodeImpl.h.

TreeRepositoryPtr cx::TreeNodeImpl::repo ( )
protected

Definition at line 102 of file cxTreeNodeImpl.cpp.

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

Definition at line 107 of file cxTreeNodeImpl.cpp.

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.

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

TreeRepositoryWeakPtr cx::TreeNodeImpl::mRepository
protected

Definition at line 51 of file cxTreeNodeImpl.h.


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