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();
142 void setControllingTool(
ToolPtr tool);
155 void setOptions(
Options options);
156 void setRegistrationMode(REGISTRATION_STATUS mode);
158 void addXml(QDomNode& dataNode);
159 void parseXml(QDomNode dataNode);
162 void purgeDataNotExistingInPatientModelService();
165 void dataViewPropertiesChanged(QString uid);
166 void videoSourceChanged(QString uid);
168 void optionsChanged();
169 void controllingToolChanged();
172 typedef std::pair<QString, DataViewProperties> DataAndViewPropertiesPair;
176 data_equals(QString uid) : mData(uid) {}
177 bool operator()(
const DataAndViewPropertiesPair& right)
179 return mData == right.first;
184 template<
class DATA_TYPE>
185 std::vector<boost::shared_ptr<DATA_TYPE> > getDataOfType(
DataViewProperties requiredProperties)
const;
187 void createSliceDefinitionProperty();
188 void insertData(std::vector<DataAndViewPropertiesPair>::iterator iter, DataAndViewPropertiesPair &item);
191 CoreServicesPtr mServices;
192 QString mVideoSource;
193 std::vector<DataAndViewPropertiesPair> mData;
194 CameraDataPtr mCamera3D;
196 SyncedValuePtr mGroup2DZoom;
197 SyncedValuePtr mGlobal2DZoom;
198 StringListPropertyPtr mSliceDefinitionProperty;
199 DataPtr getData(QString uid)
const;
211 #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.
boost::shared_ptr< class Tool > ToolPtr