* @brief GetPositionOnScreen Return PositionOnScreen as String * @param event * @return */
| 228 | * @return |
| 229 | */ |
| 230 | static std::string GetPositionOnScreen(mitk::InteractionEvent *event) |
| 231 | { |
| 232 | std::stringstream ss; |
| 233 | auto *pe = dynamic_cast<mitk::InteractionPositionEvent *>(event); |
| 234 | if (pe != nullptr) |
| 235 | { |
| 236 | mitk::Point2D p = pe->GetPointerPositionOnScreen(); |
| 237 | ss << p[0] << "," << p[1]; |
| 238 | } |
| 239 | return ss.str(); |
| 240 | } |
| 241 | |
| 242 | mitk::InteractionEvent::Pointer mitk::EventFactory::CreateEvent(PropertyList::Pointer list) |
| 243 | { |
no test coverage detected