18 #ifndef CXVIEWWRAPPER2D_H_
19 #define CXVIEWWRAPPER2D_H_
21 #include "org_custusx_core_view_Export.h"
30 #include "sscConfig.h"
62 virtual void initializePlane(PLANE_TYPE plane);
67 virtual void updateView();
75 virtual QString getDataDescription();
76 virtual QString getViewDescription();
79 virtual void dataViewPropertiesChangedSlot(QString uid);
80 virtual void videoSourcesChangedSlot();
81 virtual void settingsChangedSlot(QString key);
84 void activeToolChangedSlot();
85 void viewportChanged();
87 void mousePressSlot(
int x,
int y, Qt::MouseButtons buttons);
88 void mouseMoveSlot(
int x,
int y, Qt::MouseButtons buttons);
89 void mouseWheelSlot(
int x,
int y,
int delta,
int orientation, Qt::MouseButtons buttons);
90 void optionChangedSlot();
91 void showManualToolSlot(
bool visible);
92 void toggleShowManualTool();
98 virtual void appendToContextMenu(QMenu& contextMenu);
103 void shiftAxisPos(
Vector3D delta_vp);
105 ORIENTATION_TYPE getOrientationType()
const;
107 virtual void imageAdded(
ImagePtr image);
110 virtual void dataAdded(
DataPtr data);
111 virtual void dataRemoved(
const QString& uid);
113 void recreateMultiSlicer();
114 void updateItemsFromViewGroup();
116 void createAndAddSliceReps(
int numberOfSlices);
117 void removeAndResetSliceRep();
119 bool useGPU2DRendering();
120 bool createAndAddMultiSliceRep();
121 void removeAndResetMultiSliceRep();
123 std::vector<ImagePtr> getImagesToView();
126 void setImagesSWRendering();
134 std::vector<SliceRepSWPtr> mSliceReps;
146 QActionGroup* mOrientationActionGroup;
148 void changeZoom(
double delta);
149 void applyViewFollower();