NorMIT-nav  2023.01.05-dev+develop.0da12
An IGT application
cxSelectDataStringProperty.h
Go to the documentation of this file.
1 /*=========================================================================
2 This file is part of CustusX, an Image Guided Therapy Application.
3 
4 Copyright (c) SINTEF Department of Medical Technology.
5 All rights reserved.
6 
7 CustusX is released under a BSD 3-Clause license.
8 
9 See Lisence.txt (https://github.com/SINTEFMedtek/CustusX/blob/master/License.txt) for details.
10 =========================================================================*/
11 #ifndef CXSELECTDATASTRINGPROPERTY_H_
12 #define CXSELECTDATASTRINGPROPERTY_H_
13 
15 
16 namespace cx
17 {
18 typedef boost::shared_ptr<class StringPropertyActiveData> StringPropertyActiveDataPtr;
25 {
26  Q_OBJECT
27 public:
28  static StringPropertyActiveDataPtr New(PatientModelServicePtr patientModelService, QString typeRegexp = ".*")
29  {
30  return StringPropertyActiveDataPtr(new StringPropertyActiveData(patientModelService, typeRegexp));
31  }
33 
34 public: // basic methods
35  virtual bool setValue(const QString& value);
36  virtual QString getValue() const;
37 protected:
39  StringPropertyActiveData(PatientModelServicePtr patientModelService, QString typeRegexp = ".*");
40 };
41 
42 typedef boost::shared_ptr<class StringPropertyActiveImage> StringPropertyActiveImagePtr;
49 {
50  Q_OBJECT
51 public:
53  {
54  return StringPropertyActiveImagePtr(new StringPropertyActiveImage(patientModelService));
55  }
58 
59 public: // basic methods
60  virtual bool setValue(const QString& value);
61  virtual QString getValue() const;
62 protected:
64 };
65 
66 
67 typedef boost::shared_ptr<class StringPropertySelectImage> StringPropertySelectImagePtr;
73 {
74  Q_OBJECT
75 public:
76  static StringPropertySelectImagePtr New(PatientModelServicePtr patientModelService) { return StringPropertySelectImagePtr(new StringPropertySelectImage(patientModelService)); }
78 
79 public: // basic methods
80  virtual bool setValue(const QString& value);
81  virtual QString getValue() const;
82 
83 public: // interface extension
84  ImagePtr getImage();
85 
86 protected:
88 private:
89  QString mImageUid;
90 };
91 
92 typedef boost::shared_ptr<class StringPropertySelectData> StringPropertySelectDataPtr;
98 {
99  Q_OBJECT
100 public:
101  static StringPropertySelectDataPtr New(PatientModelServicePtr patientModelService, QString typeRegexp = ".*")
102  {
103  return StringPropertySelectDataPtr(new StringPropertySelectData(patientModelService, typeRegexp));
104  }
106 
107 public: // basic methods
108  virtual bool setValue(const QString& value);
109  virtual QString getValue() const;
110 
111 public: // interface extension
112  virtual DataPtr getData() const;
113 
114 protected:
115  StringPropertySelectData(PatientModelServicePtr patientModelService, QString typeRegexp = ".*");
116 private:
117 // DataPtr mData;
118  QString mUid;
119 
120 };
121 
122 typedef boost::shared_ptr<class StringPropertySelectMesh> StringPropertySelectMeshPtr;
128 {
129  Q_OBJECT
130 public:
131  static StringPropertySelectMeshPtr New(PatientModelServicePtr patientModelService) { return StringPropertySelectMeshPtr(new StringPropertySelectMesh(patientModelService)); }
133 
134 public: // basic methods
135  virtual bool setValue(const QString& value);
136  virtual QString getValue() const;
137 
138 public: // interface extension
139  MeshPtr getMesh();
140 
141 protected:
143 private:
144  QString mMeshUid;
145 };
146 
147 typedef boost::shared_ptr<class StringPropertySelectTrackedStream> StringPropertySelectTrackedStreamPtr;
153 {
154  Q_OBJECT
155 public:
158 
159 public: // basic methods
160  virtual bool setValue(const QString& value);
161  virtual QString getValue() const;
162 
163 public: // interface extension
164  TrackedStreamPtr getTrackedStream();
165 
166 protected:
168 private:
169  QString mStreamUid;
170 };
171 
172 
173 
174 } // namespace cx
175 
176 #endif // CXSELECTDATASTRINGPROPERTY_H_
cx::StringPropertySelectData::New
static StringPropertySelectDataPtr New(PatientModelServicePtr patientModelService, QString typeRegexp=".*")
Definition: cxSelectDataStringProperty.h:101
cx::StringPropertySelectMesh::New
static StringPropertySelectMeshPtr New(PatientModelServicePtr patientModelService)
Definition: cxSelectDataStringProperty.h:131
cx::StringPropertyActiveImage::~StringPropertyActiveImage
virtual ~StringPropertyActiveImage()
Definition: cxSelectDataStringProperty.h:57
cx::SelectDataStringPropertyBase
Definition: cxSelectDataStringPropertyBase.h:32
cx::StringPropertySelectData
Definition: cxSelectDataStringProperty.h:97
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cx::StringPropertyActiveData::New
static StringPropertyActiveDataPtr New(PatientModelServicePtr patientModelService, QString typeRegexp=".*")
Definition: cxSelectDataStringProperty.h:28
cxSelectDataStringPropertyBase.h
cx::StringPropertySelectMesh
Definition: cxSelectDataStringProperty.h:127
cx::StringPropertyActiveDataPtr
boost::shared_ptr< class StringPropertyActiveData > StringPropertyActiveDataPtr
Definition: cxSelectDataStringProperty.h:18
cx::StringPropertyActiveImage::New
static StringPropertyActiveImagePtr New(PatientModelServicePtr patientModelService)
Definition: cxSelectDataStringProperty.h:52
cx::StringPropertyActiveImagePtr
boost::shared_ptr< class StringPropertyActiveImage > StringPropertyActiveImagePtr
Definition: cxSelectDataStringProperty.h:42
cx::StringPropertySelectMeshPtr
boost::shared_ptr< class StringPropertySelectMesh > StringPropertySelectMeshPtr
Definition: cxRecordSessionSelector.h:26
cx::StringPropertyActiveImage
Definition: cxSelectDataStringProperty.h:48
cx::StringPropertySelectImage::~StringPropertySelectImage
virtual ~StringPropertySelectImage()
Definition: cxSelectDataStringProperty.h:77
cx::StringPropertySelectTrackedStream
Definition: cxSelectDataStringProperty.h:152
cx::MeshPtr
boost::shared_ptr< class Mesh > MeshPtr
Definition: cxForwardDeclarations.h:48
cx::StringPropertySelectImage::New
static StringPropertySelectImagePtr New(PatientModelServicePtr patientModelService)
Definition: cxSelectDataStringProperty.h:76
cx::StringPropertySelectTrackedStream::New
static StringPropertySelectTrackedStreamPtr New(PatientModelServicePtr patientModelService)
Definition: cxSelectDataStringProperty.h:156
cx::StringPropertySelectImagePtr
boost::shared_ptr< class StringPropertySelectImage > StringPropertySelectImagePtr
Definition: cxRegisterI2IWidget.h:23
cx::PatientModelServicePtr
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
Definition: cxLogicManager.h:25
cx::DataPtr
boost::shared_ptr< class Data > DataPtr
Definition: cxRegistrationApplicator.h:22
cx::StringPropertyActiveData
Definition: cxSelectDataStringProperty.h:24
cx::StringPropertySelectMesh::~StringPropertySelectMesh
virtual ~StringPropertySelectMesh()
Definition: cxSelectDataStringProperty.h:132
cx::StringPropertySelectTrackedStreamPtr
boost::shared_ptr< class StringPropertySelectTrackedStream > StringPropertySelectTrackedStreamPtr
Definition: cxStreamPropertiesWidget.h:19
cx::ImagePtr
boost::shared_ptr< class Image > ImagePtr
Definition: cxDicomWidget.h:27
cx::StringPropertySelectTrackedStream::~StringPropertySelectTrackedStream
virtual ~StringPropertySelectTrackedStream()
Definition: cxSelectDataStringProperty.h:157
cx::StringPropertyActiveImage::mActiveData
ActiveDataPtr mActiveData
Definition: cxSelectDataStringProperty.h:63
cx::StringPropertyActiveData::mActiveData
ActiveDataPtr mActiveData
Definition: cxSelectDataStringProperty.h:38
cx::ActiveDataPtr
boost::shared_ptr< class ActiveData > ActiveDataPtr
Definition: cxColorWidget.h:21
cx::StringPropertySelectDataPtr
boost::shared_ptr< class StringPropertySelectData > StringPropertySelectDataPtr
Definition: cxClippingWidget.h:23
cx::StringPropertyActiveData::~StringPropertyActiveData
virtual ~StringPropertyActiveData()
Definition: cxSelectDataStringProperty.h:32
cx::StringPropertySelectImage
Definition: cxSelectDataStringProperty.h:72
cx::StringPropertySelectData::~StringPropertySelectData
virtual ~StringPropertySelectData()
Definition: cxSelectDataStringProperty.h:105
cx::TrackedStreamPtr
boost::shared_ptr< class TrackedStream > TrackedStreamPtr
Definition: cxStreamPropertiesWidget.h:22