Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::TubeGraphProperty Class Reference

Property for tube graphs. More...

#include <mitkTubeGraphProperty.h>

Inheritance diagram for mitk::TubeGraphProperty:
Collaboration diagram for mitk::TubeGraphProperty:

Classes

struct  Annotation
 
struct  LabelGroup
 

Public Types

typedef TubeGraph::TubeDescriptorType TubeDescriptorType
 
typedef std::vector< TubeGraphProperty::LabelGroup * > LabelGroupSetType
 
typedef std::pair< TubeDescriptorType, std::string > TubeToLabelGroupType
 
- Public Types inherited from mitk::BaseProperty
typedef BaseProperty Self
 
typedef itk::Object Superclass
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 

Public Member Functions

 mitkClassMacro (TubeGraphProperty, BaseProperty)
 
bool IsTubeVisible (const TubeDescriptorType &tube)
 
void SetTubeActive (const TubeDescriptorType &tube, const bool &active)
 
void SetTubesActive (std::vector< TubeDescriptorType > &tubes)
 
bool IsTubeActive (const TubeDescriptorType &tube)
 
std::vector< TubeDescriptorTypeGetActiveTubes ()
 
Color GetColorOfTube (const TubeDescriptorType &tube)
 
void SetTubesToLabels (std::map< TubeToLabelGroupType, std::string > tubeToLabelMap)
 
std::map< TubeToLabelGroupType, std::string > GetTubesToLabels ()
 
void DeactivateAllTubes ()
 
void AddAnnotation (Annotation *annotation)
 
AnnotationGetAnnotationByName (std::string annotation)
 
std::vector< Annotation * > GetAnnotations ()
 
void RemoveAnnotation (Annotation *annotation)
 
void AddLabelGroup (LabelGroup *labelGroup, unsigned int position)
 
void RemoveLabelGroup (LabelGroup *labelGroup)
 
LabelGroupSetType GetLabelGroups ()
 
unsigned int GetNumberOfLabelGroups ()
 
unsigned int GetIndexOfLabelGroup (LabelGroup *labelGroup)
 
LabelGroupGetLabelGroupByName (std::string labelGroup)
 
void SetLabelVisibility (LabelGroup::Label *label, bool isVisible)
 
void SetLabelColor (LabelGroup::Label *label, Color color)
 
void RenameLabel (LabelGroup *labelGroup, LabelGroup::Label *label, std::string newName)
 
void SetLabelForActivatedTubes (LabelGroup *labelGroup, LabelGroup::Label *label)
 
LabelGroup::LabelGetLabelByName (LabelGroup *labelGroup, std::string labelName)
 
virtual std::string GetValueAsString () const override
 
- Public Member Functions inherited from mitk::BaseProperty
virtual std::vector< std::string > GetClassHierarchy () const
 
virtual const char * GetClassName () const
 
Pointer Clone () const
 
bool operator== (const BaseProperty &property) const
 Subclasses must implement IsEqual(const BaseProperty&) to support comparison. More...
 
BasePropertyoperator= (const BaseProperty &property)
 Assigns property to this BaseProperty instance. More...
 
bool AssignProperty (const BaseProperty &property)
 Assigns property to this BaseProperty instance. More...
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from mitk::BaseProperty
static const char * GetStaticNameOfClass ()
 

Protected Member Functions

 TubeGraphProperty ()
 
 TubeGraphProperty (const TubeGraphProperty &other)
 
virtual ~TubeGraphProperty ()
 
- Protected Member Functions inherited from mitk::BaseProperty
 BaseProperty ()
 
 BaseProperty (const BaseProperty &other)
 
virtual ~BaseProperty ()
 

Additional Inherited Members

- Static Public Attributes inherited from mitk::BaseProperty
static const std::string VALUE_CANNOT_BE_CONVERTED_TO_STRING
 Default return value if a property which can not be returned as string. More...
 

Detailed Description

Property for tube graphs.

Definition at line 35 of file mitkTubeGraphProperty.h.

Member Typedef Documentation

Definition at line 56 of file mitkTubeGraphProperty.h.

Constructor & Destructor Documentation

mitk::TubeGraphProperty::TubeGraphProperty ( )
protected

Definition at line 21 of file mitkTubeGraphProperty.cpp.

mitk::TubeGraphProperty::TubeGraphProperty ( const TubeGraphProperty other)
protected

Definition at line 26 of file mitkTubeGraphProperty.cpp.

mitk::TubeGraphProperty::~TubeGraphProperty ( )
protectedvirtual

Definition at line 35 of file mitkTubeGraphProperty.cpp.

Member Function Documentation

void mitk::TubeGraphProperty::AddAnnotation ( Annotation annotation)
void mitk::TubeGraphProperty::AddLabelGroup ( LabelGroup labelGroup,
unsigned int  position 
)
void mitk::TubeGraphProperty::DeactivateAllTubes ( )

Deactivates all tubes

Definition at line 122 of file mitkTubeGraphProperty.cpp.

std::vector< mitk::TubeGraphProperty::TubeDescriptorType > mitk::TubeGraphProperty::GetActiveTubes ( )

Definition at line 117 of file mitkTubeGraphProperty.cpp.

mitk::TubeGraphProperty::Annotation * mitk::TubeGraphProperty::GetAnnotationByName ( std::string  annotation)

Definition at line 141 of file mitkTubeGraphProperty.cpp.

std::vector< mitk::TubeGraphProperty::Annotation * > mitk::TubeGraphProperty::GetAnnotations ( )

Definition at line 150 of file mitkTubeGraphProperty.cpp.

mitk::Color mitk::TubeGraphProperty::GetColorOfTube ( const TubeDescriptorType tube)
unsigned int mitk::TubeGraphProperty::GetIndexOfLabelGroup ( LabelGroup labelGroup)

Definition at line 365 of file mitkTubeGraphProperty.cpp.

References MITK_ERROR.

mitk::TubeGraphProperty::LabelGroup::Label * mitk::TubeGraphProperty::GetLabelByName ( LabelGroup labelGroup,
std::string  labelName 
)
mitk::TubeGraphProperty::LabelGroup * mitk::TubeGraphProperty::GetLabelGroupByName ( std::string  labelGroup)

Definition at line 379 of file mitkTubeGraphProperty.cpp.

References MITK_ERROR.

mitk::TubeGraphProperty::LabelGroupSetType mitk::TubeGraphProperty::GetLabelGroups ( )

Definition at line 355 of file mitkTubeGraphProperty.cpp.

unsigned int mitk::TubeGraphProperty::GetNumberOfLabelGroups ( )

Definition at line 360 of file mitkTubeGraphProperty.cpp.

std::map< mitk::TubeGraphProperty::TubeToLabelGroupType, std::string > mitk::TubeGraphProperty::GetTubesToLabels ( )

Definition at line 255 of file mitkTubeGraphProperty.cpp.

std::string mitk::TubeGraphProperty::GetValueAsString ( ) const
overridevirtual

Reimplemented from mitk::BaseProperty.

Definition at line 434 of file mitkTubeGraphProperty.cpp.

bool mitk::TubeGraphProperty::IsTubeActive ( const TubeDescriptorType tube)

Checks, if a given tube is activated

Parameters
idthe tube id of the tube to check
Returns
true, if the tube with id is active or false otherwise

Definition at line 107 of file mitkTubeGraphProperty.cpp.

bool mitk::TubeGraphProperty::IsTubeVisible ( const TubeDescriptorType tube)

Checks, if a given tube is visible

Parameters
tubethe tube id of the tube to check
Returns
true, if the tube with id is visible or false otherwise

Definition at line 45 of file mitkTubeGraphProperty.cpp.

References mitk::TubeGraphProperty::LabelGroup::Label::isVisible.

mitk::TubeGraphProperty::mitkClassMacro ( TubeGraphProperty  ,
BaseProperty   
)
static Pointer mitk::TubeGraphProperty::New ( )
static

Referenced by mitk::TubeGraphIO::Read().

void mitk::TubeGraphProperty::RemoveAnnotation ( Annotation annotation)
void mitk::TubeGraphProperty::RemoveLabelGroup ( LabelGroup labelGroup)
void mitk::TubeGraphProperty::RenameLabel ( LabelGroup labelGroup,
LabelGroup::Label label,
std::string  newName 
)
void mitk::TubeGraphProperty::SetLabelColor ( LabelGroup::Label label,
mitk::Color  color 
)
void mitk::TubeGraphProperty::SetLabelForActivatedTubes ( LabelGroup labelGroup,
LabelGroup::Label label 
)
void mitk::TubeGraphProperty::SetLabelVisibility ( LabelGroup::Label label,
bool  isVisible 
)
void mitk::TubeGraphProperty::SetTubeActive ( const TubeDescriptorType tube,
const bool &  active 
)

Sets a tube active.

Parameters
tubethe tube id of the tube, which has to be set active
activetrue, if the tube should be active or false if not.

Definition at line 68 of file mitkTubeGraphProperty.cpp.

void mitk::TubeGraphProperty::SetTubesActive ( std::vector< TubeDescriptorType > &  tubes)

Sets tubes active.

Definition at line 101 of file mitkTubeGraphProperty.cpp.

void mitk::TubeGraphProperty::SetTubesToLabels ( std::map< TubeToLabelGroupType, std::string >  tubeToLabelMap)

Definition at line 250 of file mitkTubeGraphProperty.cpp.


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