| 23 | const char* AnyLabelEvent::GetEventName() const { return "AnyLabelEvent"; } |
| 24 | |
| 25 | bool AnyLabelEvent::CheckEvent(const itk::EventObject* e) const |
| 26 | { |
| 27 | auto castedE = dynamic_cast<const AnyLabelEvent*>(e); |
| 28 | |
| 29 | return (nullptr != castedE) && ((castedE->m_LabelValue == m_LabelValue) || (ANY_LABEL == castedE->m_LabelValue) || (ANY_LABEL == m_LabelValue)); |
| 30 | } |
| 31 | |
| 32 | itk::EventObject* AnyLabelEvent::MakeObject() const { return new AnyLabelEvent(); } |
| 33 |
no test coverage detected