11 #ifndef CXVIEWGROUPDATA_H 12 #define CXVIEWGROUPDATA_H 14 #include "cxResourceVisualizationExport.h" 44 explicit CameraStyleData(CAMERA_STYLE_TYPE style);
45 void setCameraStyle(CAMERA_STYLE_TYPE style);
46 CAMERA_STYLE_TYPE getStyle();
48 void addXml(QDomNode& dataNode);
49 void parseXml(QDomNode dataNode);
89 void addXml(QDomNode& dataNode);
90 void parseXml(QDomNode dataNode);
113 explicit ViewGroupData(CoreServicesPtr services, QString uid);
114 void requestInitialize();
117 QString getVideoSource()
const;
118 void addData(QString uid);
119 void addDataSorted(QString uid);
120 void setVideoSource(QString uid);
121 bool removeData(QString uid);
126 std::vector<ImagePtr> getImagesAndChangingImagesFromTrackedStreams(
DataViewProperties properties,
bool include2D =
false)
const;
130 void initializeGlobal2DZoom(SyncedValuePtr val);
131 SyncedValuePtr getGroup2DZoom();
132 SyncedValuePtr getGlobal2DZoom();
135 void zoomCamera3D(
int zoomFactor);
139 StringListPropertyPtr getSliceDefinitionProperty();
152 void setOptions(
Options options);
153 void setRegistrationMode(REGISTRATION_STATUS mode);
155 void addXml(QDomNode& dataNode);
156 void parseXml(QDomNode dataNode);
159 void purgeDataNotExistingInPatientModelService();
162 void dataViewPropertiesChanged(QString uid);
163 void videoSourceChanged(QString uid);
165 void optionsChanged();
168 typedef std::pair<QString, DataViewProperties> DataAndViewPropertiesPair;
172 data_equals(QString uid) : mData(uid) {}
173 bool operator()(
const DataAndViewPropertiesPair& right)
175 return mData == right.first;
180 template<
class DATA_TYPE>
181 std::vector<boost::shared_ptr<DATA_TYPE> > getDataOfType(
DataViewProperties requiredProperties)
const;
183 void createSliceDefinitionProperty();
184 void insertData(std::vector<DataAndViewPropertiesPair>::iterator iter, DataAndViewPropertiesPair &item);
187 CoreServicesPtr mServices;
188 QString mVideoSource;
189 std::vector<DataAndViewPropertiesPair> mData;
190 CameraDataPtr mCamera3D;
192 SyncedValuePtr mGroup2DZoom;
193 SyncedValuePtr mGlobal2DZoom;
194 StringListPropertyPtr mSliceDefinitionProperty;
195 DataPtr getData(QString uid)
const;
206 #endif // CXVIEWGROUPDATA_H int getPriority(DataPtr data)
boost::shared_ptr< class ViewGroupData > ViewGroupDataPtr
QString mCameraNotBehindROI
CameraDataPtr getCamera3D()
bool mCameraLockToTooltip
boost::shared_ptr< class CameraData > CameraDataPtr
boost::shared_ptr< class VisServices > VisServicesPtr
Container for data shared between all members of a view group.
CameraStyleData mCameraStyle
boost::shared_ptr< class Data > DataPtr
static DataViewProperties createFull()
double mCameraTooltipOffset
bool dataTypeSort(const DataPtr data1, const DataPtr data2)
boost::shared_ptr< class StringListProperty > StringListPropertyPtr
bool operator==(const RegistrationTransform &lhs, const RegistrationTransform &rhs)
boost::shared_ptr< class CoreServices > CoreServicesPtr
bool contains(std::string const &s, std::string const &infix)
boost::shared_ptr< class SyncedValue > SyncedValuePtr
boost::shared_ptr< class Mesh > MeshPtr
bool mShowPointPickerProbe
Namespace for all CustusX production code.