15 #ifndef niftkSingleViewerWidgetTest_h
16 #define niftkSingleViewerWidgetTest_h
31 class QmitkRenderWindow;
36 class SingleViewerWidget;
37 class SingleViewerWidgetTestClassPrivate;
75 static mitk::Point3D
GetWorldOrigin(
const mitk::BaseGeometry* geometry);
81 static std::vector<int>
GetWorldAxes(
const mitk::Geometry3D* geometry);
117 bool Equals(
const mitk::Point3D& selectedPosition1,
const mitk::Point3D& selectedPosition2,
double tolerance = -1.0);
120 static bool Equals(
const mitk::Vector2D& cursorPosition1,
const mitk::Vector2D& cursorPosition2,
double tolerance = 0.01);
124 bool Equals(
const std::vector<mitk::Vector2D>& cursorPositions1,
const std::vector<mitk::Vector2D>& cursorPositions2,
double tolerance = 0.01);
151 void cleanupTestCase();
163 void testSetSelectedSlice2();
166 void testGetTimeGeometry();
169 void testSetTimeGeometry();
172 void testGetOrientation();
175 void testGetSelectedPosition();
178 void testSetSelectedPosition();
181 void testGetSelectedSlice();
184 void testSetSelectedSlice();
187 void testGetCursorPosition();
190 void testSetCursorPosition();
193 void testGetCursorPositions();
196 void testSetCursorPositions();
199 void testGetWindowLayout();
202 void testGetSelectedRenderWindow();
205 void testSetSelectedRenderWindow();
208 void testSetWindowLayout();
211 void testRememberPositionsPerWindowLayout();
214 void testSelectPositionByInteraction();
217 void testChangeSliceByMouseInteraction();
220 void testChangeSliceByKeyInteraction();
223 void testSelectRenderWindowByInteraction();
226 void testSelectSliceThroughSliceNavigationController();
229 void testSelectPositionThroughSliceNavigationController();
232 void testCursorPositionBinding();
235 void testScaleFactorBinding();
238 void testCursorPositionAndScaleFactorBinding();
242 void DropNodes(QmitkRenderWindow* renderWindow,
const std::vector<mitk::DataNode*>& nodes);
244 static void MouseWheel(QWidget* window, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers,
247 QScopedPointer<SingleViewerWidgetTestClassPrivate> d_ptr;
Test class to ensure the atomic transition from one object state to another.
Definition: niftkAtomicStateTransitionTester.h:59
Orientation
Definition: itkMIDASHelper.h:35
Definition: ReceptorMemberCommandTest.cxx:25
GLsizeiptr size
Definition: glew.h:1665
Definition: niftkExceptionObject.h:21
GLsizei const GLcharARB ** string
Definition: glew.h:5194