| 220 | } |
| 221 | |
| 222 | void mitk::BaseData::CopyInformation(const itk::DataObject *data) |
| 223 | { |
| 224 | const auto *bd = dynamic_cast<const Self *>(data); |
| 225 | if (bd != nullptr) |
| 226 | { |
| 227 | m_PropertyList = bd->GetPropertyList()->Clone(); |
| 228 | if (bd->GetTimeGeometry() != nullptr) |
| 229 | { |
| 230 | m_TimeGeometry = bd->GetTimeGeometry()->Clone(); |
| 231 | } |
| 232 | } |
| 233 | else |
| 234 | { |
| 235 | // pointer could not be cast back down; this can be the case if your filters input |
| 236 | // and output objects differ in type; then you have to write your own GenerateOutputInformation method |
| 237 | itkExceptionMacro(<< "mitk::BaseData::CopyInformation() cannot cast " << typeid(data).name() << " to " |
| 238 | << typeid(Self *).name()); |
| 239 | } |
| 240 | } |
| 241 | |
| 242 | bool mitk::BaseData::IsInitialized() const |
| 243 | { |
nothing calls this directly
no test coverage detected