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();
189 void settingsChangedSlot(QString key);
190 void onLayoutRepositoryChanged(QString uid);
193 void updateCameraStyleActions();
194 void setActiveView(QString viewUid);
202 int findGroupContaining3DViewGivenGuess(
int preferredGroup);
203 QString getActiveView()
const;
205 void setRenderingInterval(
int interval);
206 void setSlicePlanesProxyInViewsUpTo2DViewgroup();
208 void loadGlobalSettings();
209 void saveGlobalSettings();
211 void rebuildLayouts();
212 void initializeGlobal2DZoom();
213 void initializeActiveView();
214 void layoutWidgetDestroyed(QObject *
object);
237 void autoShowInViewGroups(
DataPtr data);
238 void autoResetCameraToSuperiorView();
239 void autoCenterToImageCenter();
240 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