| 99 | } |
| 100 | |
| 101 | bool SetLabelColor(const mitk::IPropertyProvider* propertyProvider, mitk::Label* label) |
| 102 | { |
| 103 | if (propertyProvider != nullptr) |
| 104 | { |
| 105 | if (auto property = propertyProvider->GetConstProperty("color"); property.IsNotNull()) |
| 106 | { |
| 107 | if (auto colorProperty = dynamic_cast<const mitk::ColorProperty*>(property.GetPointer()); colorProperty != nullptr) |
| 108 | { |
| 109 | label->SetColor(colorProperty->GetColor()); |
| 110 | return true; |
| 111 | } |
| 112 | } |
| 113 | } |
| 114 | |
| 115 | return false; |
| 116 | } |
| 117 | |
| 118 | OutputFormat ParseOutputFormat(const mitk::IFileIO::Options& args) |
| 119 | { |
no test coverage detected