32 #ifndef CXVIEWGROUPDATA_H 33 #define CXVIEWGROUPDATA_H 35 #include "cxResourceVisualizationExport.h" 65 explicit CameraStyleData(CAMERA_STYLE_TYPE style);
66 void setCameraStyle(CAMERA_STYLE_TYPE style);
67 CAMERA_STYLE_TYPE getStyle();
69 void addXml(QDomNode& dataNode);
70 void parseXml(QDomNode dataNode);
110 void addXml(QDomNode& dataNode);
111 void parseXml(QDomNode dataNode);
134 explicit ViewGroupData(CoreServicesPtr services, QString uid);
135 void requestInitialize();
138 QString getVideoSource()
const;
139 void addData(QString uid);
140 void addDataSorted(QString uid);
141 void setVideoSource(QString uid);
142 bool removeData(QString uid);
147 std::vector<TrackedStreamPtr> getTracked2DStreams(
DataViewProperties properties)
const;
148 std::vector<ImagePtr> getImagesAndChangingImagesFromTrackedStreams(
DataViewProperties properties,
bool include2D =
false)
const;
152 void initializeGlobal2DZoom(SyncedValuePtr val);
153 SyncedValuePtr getGroup2DZoom();
154 SyncedValuePtr getGlobal2DZoom();
157 void zoomCamera3D(
int zoomFactor);
161 StringListPropertyPtr getSliceDefinitionProperty();
174 void setOptions(
Options options);
175 void setRegistrationMode(REGISTRATION_STATUS mode);
177 void addXml(QDomNode& dataNode);
178 void parseXml(QDomNode dataNode);
181 void purgeDataNotExistingInPatientModelService();
184 void dataViewPropertiesChanged(QString uid);
185 void videoSourceChanged(QString uid);
187 void optionsChanged();
190 typedef std::pair<QString, DataViewProperties> DataAndViewPropertiesPair;
194 data_equals(QString uid) : mData(uid) {}
195 bool operator()(
const DataAndViewPropertiesPair& right)
197 return mData == right.first;
202 template<
class DATA_TYPE>
203 std::vector<boost::shared_ptr<DATA_TYPE> > getDataOfType(
DataViewProperties requiredProperties)
const;
205 void createSliceDefinitionProperty();
206 void insertData(std::vector<DataAndViewPropertiesPair>::iterator iter, DataAndViewPropertiesPair &item);
209 CoreServicesPtr mServices;
210 QString mVideoSource;
211 std::vector<DataAndViewPropertiesPair> mData;
212 CameraDataPtr mCamera3D;
214 SyncedValuePtr mGroup2DZoom;
215 SyncedValuePtr mGlobal2DZoom;
216 StringListPropertyPtr mSliceDefinitionProperty;
217 DataPtr getData(QString uid)
const;
228 #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.