33 #ifndef CXVIEWSERVICE_H_
34 #define CXVIEWSERVICE_H_
36 #include "cxResourceVisualizationExport.h"
39 #include <boost/shared_ptr.hpp>
45 #define ViewService_iid "cx::ViewService"
51 typedef boost::shared_ptr<class Clippers>
ClippersPtr;
59 enum cxResourceVisualization_EXPORT CAMERA_STYLE_TYPE
70 class cxResourceVisualization_EXPORT
ViewService :
public QObject
74 virtual ViewPtr get3DView(
int group = 0,
int index = 0) = 0;
78 virtual int getActiveGroupId()
const = 0;
80 unsigned groupCount()
const;
83 virtual void setRegistrationMode(REGISTRATION_STATUS mode) = 0;
85 virtual void autoShowData(
DataPtr data) = 0;
86 virtual void enableRender(
bool val) = 0;
87 virtual bool renderingIsEnabled()
const = 0;
88 virtual QWidget* createLayoutWidget(QWidget* parent,
int index=0) = 0;
89 virtual QWidget* getLayoutWidget(
int index) = 0;
90 virtual QString getActiveLayout(
int widgetIndex=0)
const = 0;
91 virtual void setActiveLayout(
const QString& uid,
int widgetIndex=0) = 0;
92 virtual void deactivateLayout();
99 virtual QActionGroup* getInteractorStyleActionGroup() = 0;
100 virtual void centerToImageCenterInActiveViewGroup() = 0;
101 virtual void setCameraStyle(CAMERA_STYLE_TYPE style,
int groupIdx) = 0;
102 virtual void addDefaultLayout(
LayoutData layoutData) = 0;
104 virtual bool isNull() = 0;
110 void fps(
int number);
111 void activeLayoutChanged();
112 void activeViewChanged();
113 void renderingEnabledChanged();
117 virtual void aboutToStop() = 0;
124 #endif // CXVIEWSERVICE_H_
boost::shared_ptr< class ViewGroupData > ViewGroupDataPtr
boost::shared_ptr< class LayoutRepository > LayoutRepositoryPtr
boost::shared_ptr< class View > ViewPtr
boost::shared_ptr< class Navigation > NavigationPtr
boost::shared_ptr< class Data > DataPtr
boost::shared_ptr< class RepContainer > RepContainerPtr
boost::shared_ptr< class CyclicActionLogger > CyclicActionLoggerPtr
boost::shared_ptr< class InteractiveCropper > InteractiveCropperPtr
Eigen::Vector3d Vector3D
Vector3D is a representation of a point or vector in 3D.
boost::shared_ptr< class CameraControl > CameraControlPtr
boost::shared_ptr< class Clippers > ClippersPtr