MCPcopy Create free account
hub / github.com/MITK/MITK / hotspotClicked

Method hotspotClicked

Modules/QtWidgetsExt/src/QmitkStandardViews.cpp:83–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83void QmitkStandardViews::hotspotClicked(const QString &s)
84{
85 mitk::CameraController::StandardView view;
86 bool good(true);
87
88 if (s == "Left")
89 view = mitk::CameraController::DEXTER;
90 else if (s == "Right")
91 view = mitk::CameraController::SINISTER;
92 else if (s == "Top")
93 view = mitk::CameraController::CRANIAL;
94 else if (s == "Bottom")
95 view = mitk::CameraController::CAUDAL;
96 else if (s == "Front")
97 view = mitk::CameraController::ANTERIOR;
98 else if (s == "Back")
99 view = mitk::CameraController::POSTERIOR;
100 else
101 {
102 std::cerr << "Warning in " << __FILE__ << ", " << __LINE__ << ": unknown standard view '" << s.toStdString() << "'"
103 << std::endl;
104 view = mitk::CameraController::ANTERIOR;
105 good = false;
106 }
107
108 if (good)
109 {
110 if (m_CameraController.IsNotNull())
111 {
112 m_CameraController->SetStandardView(view);
113 }
114
115 emit StandardViewDefined(view);
116 }
117}

Callers

nothing calls this directly

Calls 2

IsNotNullMethod · 0.80
SetStandardViewMethod · 0.80

Tested by

no test coverage detected