Medical Imaging Interaction Toolkit
2016.11.0
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) |
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... | |
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) | |
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... | |
Property for tube graphs.
Definition at line 35 of file mitkTubeGraphProperty.h.
typedef std::vector<TubeGraphProperty::LabelGroup *> mitk::TubeGraphProperty::LabelGroupSetType |
Definition at line 55 of file mitkTubeGraphProperty.h.
Definition at line 54 of file mitkTubeGraphProperty.h.
typedef std::pair<TubeDescriptorType, std::string> mitk::TubeGraphProperty::TubeToLabelGroupType |
Definition at line 56 of file mitkTubeGraphProperty.h.
|
protected |
Definition at line 21 of file mitkTubeGraphProperty.cpp.
|
protected |
Definition at line 26 of file mitkTubeGraphProperty.cpp.
|
protectedvirtual |
Definition at line 35 of file mitkTubeGraphProperty.cpp.
void mitk::TubeGraphProperty::AddAnnotation | ( | Annotation * | annotation | ) |
Definition at line 129 of file mitkTubeGraphProperty.cpp.
References MITK_INFO, and mitk::TubeGraphProperty::Annotation::name.
void mitk::TubeGraphProperty::AddLabelGroup | ( | LabelGroup * | labelGroup, |
unsigned int | position | ||
) |
Definition at line 260 of file mitkTubeGraphProperty.cpp.
References mitk::TubeGraphProperty::LabelGroup::labelGroupName, MITK_ERROR, and MITK_INFO.
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 | ) |
Definition at line 166 of file mitkTubeGraphProperty.cpp.
References mitk::TubeGraphProperty::LabelGroup::Label::labelColor.
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 | ||
) |
Definition at line 391 of file mitkTubeGraphProperty.cpp.
References mitk::TubeGraphProperty::LabelGroup::labels, and MITK_ERROR.
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.
|
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
id | the tube id of the tube to check |
Definition at line 107 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 45 of file mitkTubeGraphProperty.cpp.
References 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 154 of file mitkTubeGraphProperty.cpp.
References mitk::TubeGraphProperty::Annotation::name.
void mitk::TubeGraphProperty::RemoveLabelGroup | ( | LabelGroup * | labelGroup | ) |
Definition at line 289 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 334 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 314 of file mitkTubeGraphProperty.cpp.
References mitk::TubeGraphProperty::LabelGroup::Label::labelColor.
void mitk::TubeGraphProperty::SetLabelForActivatedTubes | ( | LabelGroup * | labelGroup, |
LabelGroup::Label * | label | ||
) |
Definition at line 216 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 324 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 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.