33 #ifndef CXVIEWMANAGER_H_
34 #define CXVIEWMANAGER_H_
36 #include "org_custusx_core_view_Export.h"
57 struct LayoutViewData;
59 class ViewCollectionWidget;
136 ViewPtr get3DView(
int group = 0,
int index = 0);
142 while(this->getViewGroup(count))
146 virtual int getActiveViewGroup()
const;
150 QActionGroup* getInteractorStyleActionGroup();
157 QWidget* createLayoutWidget(QWidget* parent,
int index);
158 QWidget* getLayoutWidget(
int index);
160 void enableRender(
bool val);
161 bool renderingIsEnabled()
const;
163 QString getActiveLayout(
int widgetIndex=0)
const;
164 void setActiveLayout(
const QString& uid,
int widgetIndex=0);
170 void deactivateCurrentLayout();
171 void autoShowData(
DataPtr data);
175 void addXml(QDomNode& parentNode);
176 void parseXml(QDomNode viewmanagerNode);
178 void centerToImageCenterInViewGroup(
unsigned groupNr);
179 void setCameraStyle(CAMERA_STYLE_TYPE style,
int groupIdx);
182 void fps(
int number);
183 void activeLayoutChanged();
184 void activeViewChanged();
185 void renderingEnabledChanged();
187 void renderFinished();
190 void settingsChangedSlot(QString key);
191 void onLayoutRepositoryChanged(QString uid);
194 void updateCameraStyleActions();
195 void setActiveView(QString viewUid);
203 int findGroupContaining3DViewGivenGuess(
int preferredGroup);
204 QString getActiveView()
const;
206 void setRenderingInterval(
int interval);
207 void setSlicePlanesProxyInViewsUpTo2DViewgroup();
209 void loadGlobalSettings();
210 void saveGlobalSettings();
212 void rebuildLayouts();
213 void initializeGlobal2DZoom();
214 void initializeActiveView();
215 void layoutWidgetDestroyed(QObject *
object);
238 void autoShowInViewGroups(
DataPtr data);
239 void autoResetCameraToSuperiorView();
240 void autoCenterToImageCenter();
241 QList<unsigned> getViewGroupsToAutoShowIn();
std::vector< ViewGroupPtr > getViewGroups()
std::vector< QPointer< ViewCollectionWidget > > mLayoutWidgets
SlicePlanesProxyPtr mSlicePlanesProxy
boost::shared_ptr< class ViewManager > ViewManagerPtr
boost::shared_ptr< class ViewGroupData > ViewGroupDataPtr
boost::shared_ptr< class LayoutRepository > LayoutRepositoryPtr
boost::shared_ptr< class SlicePlanesProxy > SlicePlanesProxyPtr
boost::shared_ptr< class VisServices > VisServicesPtr
boost::shared_ptr< class ViewWrapper > ViewWrapperPtr
CameraControlPtr getCameraControl()
CameraControlPtr mCameraControl
unsigned viewGroupCount() const
boost::shared_ptr< class View > ViewPtr
boost::shared_ptr< class Navigation > NavigationPtr
SyncedValuePtr mGlobal2DZoomVal
boost::shared_ptr< class Data > DataPtr
SyncedValuePtr mActiveView
boost::shared_ptr< class CyclicActionLogger > CyclicActionLoggerPtr
boost::shared_ptr< RenderLoop > RenderLoopPtr
boost::shared_ptr< class InteractiveCropper > InteractiveCropperPtr
CameraStyleInteractorPtr mCameraStyleInteractor
Eigen::Vector3d Vector3D
Vector3D is a representation of a point or vector in 3D.
boost::shared_ptr< class CameraControl > CameraControlPtr
QStringList mActiveLayout
the active layout (type)
LayoutRepositoryPtr mLayoutRepository
bool mGlobalObliqueOrientation
controlling whether or not all 2d views should be oblique or orthogonal
Creates a pool of views and offers an interface to them, also handles layouts on a centralwidget...
boost::shared_ptr< class SyncedValue > SyncedValuePtr
std::vector< ViewGroupPtr > mViewGroups
RenderLoopPtr mRenderLoop
boost::shared_ptr< class CameraStyleInteractor > CameraStyleInteractorPtr
InteractiveCropperPtr mInteractiveCropper