Fraxinus  22.09
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:
52  static StringPropertyActiveImagePtr New(PatientModelServicePtr patientModelService)
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:
156  static StringPropertySelectTrackedStreamPtr New(PatientModelServicePtr patientModelService) { return StringPropertySelectTrackedStreamPtr(new StringPropertySelectTrackedStream(patientModelService)); }
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_
boost::shared_ptr< class TrackedStream > TrackedStreamPtr
boost::shared_ptr< class StringPropertyActiveImage > StringPropertyActiveImagePtr
static StringPropertySelectDataPtr New(PatientModelServicePtr patientModelService, QString typeRegexp=".*")
boost::shared_ptr< class Image > ImagePtr
Definition: cxDicomWidget.h:27
boost::shared_ptr< class ActiveData > ActiveDataPtr
Definition: cxColorWidget.h:21
boost::shared_ptr< class Data > DataPtr
boost::shared_ptr< class StringPropertySelectTrackedStream > StringPropertySelectTrackedStreamPtr
static StringPropertyActiveImagePtr New(PatientModelServicePtr patientModelService)
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
static StringPropertySelectTrackedStreamPtr New(PatientModelServicePtr patientModelService)
boost::shared_ptr< class StringPropertySelectImage > StringPropertySelectImagePtr
static StringPropertySelectMeshPtr New(PatientModelServicePtr patientModelService)
boost::shared_ptr< class StringPropertySelectData > StringPropertySelectDataPtr
static StringPropertySelectImagePtr New(PatientModelServicePtr patientModelService)
static StringPropertyActiveDataPtr New(PatientModelServicePtr patientModelService, QString typeRegexp=".*")
boost::shared_ptr< class Mesh > MeshPtr
boost::shared_ptr< class StringPropertyActiveData > StringPropertyActiveDataPtr
boost::shared_ptr< class StringPropertySelectMesh > StringPropertySelectMeshPtr
Namespace for all CustusX production code.