33 #ifndef CXVIEWMANAGER_H_
34 #define CXVIEWMANAGER_H_
36 #include "org_custusx_core_view_Export.h"
56 struct LayoutViewData;
58 class ViewCollectionWidget;
136 ViewPtr get3DView(
int group = 0,
int index = 0);
142 while(this->getViewGroup(count))
146 virtual int getActiveViewGroup()
const;
150 QActionGroup* createInteractorStyleActionGroup();
157 QWidget* getLayoutWidget(QWidget* parent,
int index);
159 void enableRender(
bool val);
160 bool renderingIsEnabled()
const;
162 QString getActiveLayout(
int widgetIndex=0)
const;
163 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);
179 void fps(
int number);
180 void activeLayoutChanged();
181 void activeViewChanged();
182 void renderingEnabledChanged();
185 void settingsChangedSlot(QString key);
186 void onLayoutRepositoryChanged(QString uid);
189 void updateCameraStyleActions();
190 void setActiveView(QString viewUid);
201 int findGroupContaining3DViewGivenGuess(
int preferredGroup);
202 QString getActiveView()
const;
204 void setRenderingInterval(
int interval);
205 void setSlicePlanesProxyInViewsUpTo2DViewgroup();
207 void loadGlobalSettings();
208 void saveGlobalSettings();
210 void rebuildLayouts();
211 void initializeGlobal2DZoom();
212 void initializeActiveView();
213 void layoutWidgetDestroyed(QObject *
object);
std::vector< ViewGroupPtr > getViewGroups()
std::vector< QPointer< ViewCollectionWidget > > mLayoutWidgets
SlicePlanesProxyPtr mSlicePlanesProxy
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 ViewManager > VisualizationServiceOldPtr
boost::shared_ptr< class InteractiveClipper > InteractiveClipperPtr
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
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
InteractiveClipperPtr mInteractiveClipper