|
Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
Property for tube graphs. More...
#include <mitkTubeGraphProperty.h>


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< Self > | Pointer |
| typedef itk::SmartPointer< const Self > | ConstPointer |
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< TubeDescriptorType > | GetActiveTubes () |
| 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) |
| Annotation * | GetAnnotationByName (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) |
| LabelGroup * | GetLabelGroupByName (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::Label * | GetLabelByName (LabelGroup *labelGroup, std::string labelName) |
| 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... | |
| BaseProperty & | operator= (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) | |
| ~TubeGraphProperty () override | |
Protected Member Functions inherited from mitk::BaseProperty | |
| BaseProperty () | |
| BaseProperty (const BaseProperty &other) | |
| ~BaseProperty () override | |
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... | |
Property for tube graphs.
Definition at line 31 of file mitkTubeGraphProperty.h.
| typedef std::vector<TubeGraphProperty::LabelGroup *> mitk::TubeGraphProperty::LabelGroupSetType |
Definition at line 51 of file mitkTubeGraphProperty.h.
Definition at line 50 of file mitkTubeGraphProperty.h.
| typedef std::pair<TubeDescriptorType, std::string> mitk::TubeGraphProperty::TubeToLabelGroupType |
Definition at line 52 of file mitkTubeGraphProperty.h.
|
protected |
Definition at line 17 of file mitkTubeGraphProperty.cpp.
|
protected |
Definition at line 22 of file mitkTubeGraphProperty.cpp.
|
overrideprotected |
Definition at line 31 of file mitkTubeGraphProperty.cpp.
| void mitk::TubeGraphProperty::AddAnnotation | ( | Annotation * | annotation | ) |
Definition at line 125 of file mitkTubeGraphProperty.cpp.
References MITK_INFO, and mitk::TubeGraphProperty::Annotation::name.
| void mitk::TubeGraphProperty::AddLabelGroup | ( | LabelGroup * | labelGroup, |
| unsigned int | position | ||
| ) |
Definition at line 256 of file mitkTubeGraphProperty.cpp.
References mitk::TubeGraphProperty::LabelGroup::labelGroupName, MITK_ERROR, and MITK_INFO.
| void mitk::TubeGraphProperty::DeactivateAllTubes | ( | ) |
Deactivates all tubes
Definition at line 118 of file mitkTubeGraphProperty.cpp.
| std::vector< mitk::TubeGraphProperty::TubeDescriptorType > mitk::TubeGraphProperty::GetActiveTubes | ( | ) |
Definition at line 113 of file mitkTubeGraphProperty.cpp.
| mitk::TubeGraphProperty::Annotation * mitk::TubeGraphProperty::GetAnnotationByName | ( | std::string | annotation | ) |
Definition at line 137 of file mitkTubeGraphProperty.cpp.
| std::vector< mitk::TubeGraphProperty::Annotation * > mitk::TubeGraphProperty::GetAnnotations | ( | ) |
Definition at line 146 of file mitkTubeGraphProperty.cpp.
| mitk::Color mitk::TubeGraphProperty::GetColorOfTube | ( | const TubeDescriptorType & | tube | ) |
Definition at line 162 of file mitkTubeGraphProperty.cpp.
References GetLabelByName(), GetLabelGroupByName(), and mitk::TubeGraphProperty::LabelGroup::Label::labelColor.
| unsigned int mitk::TubeGraphProperty::GetIndexOfLabelGroup | ( | LabelGroup * | labelGroup | ) |
Definition at line 361 of file mitkTubeGraphProperty.cpp.
References MITK_ERROR.
| mitk::TubeGraphProperty::LabelGroup::Label * mitk::TubeGraphProperty::GetLabelByName | ( | LabelGroup * | labelGroup, |
| std::string | labelName | ||
| ) |
Definition at line 387 of file mitkTubeGraphProperty.cpp.
References mitk::TubeGraphProperty::LabelGroup::labels, and MITK_ERROR.
Referenced by GetColorOfTube(), and IsTubeVisible().
| mitk::TubeGraphProperty::LabelGroup * mitk::TubeGraphProperty::GetLabelGroupByName | ( | std::string | labelGroup | ) |
Definition at line 375 of file mitkTubeGraphProperty.cpp.
References MITK_ERROR.
Referenced by GetColorOfTube(), and IsTubeVisible().
| mitk::TubeGraphProperty::LabelGroupSetType mitk::TubeGraphProperty::GetLabelGroups | ( | ) |
Definition at line 351 of file mitkTubeGraphProperty.cpp.
| unsigned int mitk::TubeGraphProperty::GetNumberOfLabelGroups | ( | ) |
Definition at line 356 of file mitkTubeGraphProperty.cpp.
| std::map< mitk::TubeGraphProperty::TubeToLabelGroupType, std::string > mitk::TubeGraphProperty::GetTubesToLabels | ( | ) |
Definition at line 251 of file mitkTubeGraphProperty.cpp.
|
overridevirtual |
Reimplemented from mitk::BaseProperty.
Definition at line 419 of file mitkTubeGraphProperty.cpp.
| bool mitk::TubeGraphProperty::IsTubeActive | ( | const TubeDescriptorType & | tube | ) |
Checks, if a given tube is activated
| id | the tube id of the tube to check |
Definition at line 103 of file mitkTubeGraphProperty.cpp.
| bool mitk::TubeGraphProperty::IsTubeVisible | ( | const TubeDescriptorType & | tube | ) |
Checks, if a given tube is visible
| tube | the tube id of the tube to check |
Definition at line 41 of file mitkTubeGraphProperty.cpp.
References GetLabelByName(), GetLabelGroupByName(), and mitk::TubeGraphProperty::LabelGroup::Label::isVisible.
| mitk::TubeGraphProperty::mitkClassMacro | ( | TubeGraphProperty | , |
| BaseProperty | |||
| ) |
|
static |
Referenced by mitk::TubeGraphIO::Read().
| void mitk::TubeGraphProperty::RemoveAnnotation | ( | Annotation * | annotation | ) |
Definition at line 150 of file mitkTubeGraphProperty.cpp.
References mitk::TubeGraphProperty::Annotation::name.
| void mitk::TubeGraphProperty::RemoveLabelGroup | ( | LabelGroup * | labelGroup | ) |
Definition at line 285 of file mitkTubeGraphProperty.cpp.
References mitk::TubeGraphProperty::LabelGroup::labelGroupName, and MITK_ERROR.
| void mitk::TubeGraphProperty::RenameLabel | ( | LabelGroup * | labelGroup, |
| LabelGroup::Label * | label, | ||
| std::string | newName | ||
| ) |
Definition at line 330 of file mitkTubeGraphProperty.cpp.
References mitk::TubeGraphProperty::LabelGroup::labelGroupName, and mitk::TubeGraphProperty::LabelGroup::Label::labelName.
| void mitk::TubeGraphProperty::SetLabelColor | ( | LabelGroup::Label * | label, |
| mitk::Color | color | ||
| ) |
Definition at line 310 of file mitkTubeGraphProperty.cpp.
References mitk::TubeGraphProperty::LabelGroup::Label::labelColor.
| void mitk::TubeGraphProperty::SetLabelForActivatedTubes | ( | LabelGroup * | labelGroup, |
| LabelGroup::Label * | label | ||
| ) |
Definition at line 212 of file mitkTubeGraphProperty.cpp.
References mitk::TubeGraphProperty::LabelGroup::labelGroupName, and mitk::TubeGraphProperty::LabelGroup::Label::labelName.
| void mitk::TubeGraphProperty::SetLabelVisibility | ( | LabelGroup::Label * | label, |
| bool | isVisible | ||
| ) |
Definition at line 320 of file mitkTubeGraphProperty.cpp.
References mitk::TubeGraphProperty::LabelGroup::Label::isVisible.
| void mitk::TubeGraphProperty::SetTubeActive | ( | const TubeDescriptorType & | tube, |
| const bool & | active | ||
| ) |
Sets a tube active.
| tube | the tube id of the tube, which has to be set active |
| active | true, if the tube should be active or false if not. |
Definition at line 64 of file mitkTubeGraphProperty.cpp.
Referenced by SetTubesActive().
| void mitk::TubeGraphProperty::SetTubesActive | ( | std::vector< TubeDescriptorType > & | tubes | ) |
Sets tubes active.
Definition at line 97 of file mitkTubeGraphProperty.cpp.
References SetTubeActive().
| void mitk::TubeGraphProperty::SetTubesToLabels | ( | std::map< TubeToLabelGroupType, std::string > | tubeToLabelMap | ) |
Definition at line 246 of file mitkTubeGraphProperty.cpp.