Fraxinus  17.12-rc3
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) 2008-2014, SINTEF Department of Medical Technology
5 All rights reserved.
6 
7 Redistribution and use in source and binary forms, with or without
8 modification, are permitted provided that the following conditions are met:
9 
10 1. Redistributions of source code must retain the above copyright notice,
11  this list of conditions and the following disclaimer.
12 
13 2. Redistributions in binary form must reproduce the above copyright notice,
14  this list of conditions and the following disclaimer in the documentation
15  and/or other materials provided with the distribution.
16 
17 3. Neither the name of the copyright holder nor the names of its contributors
18  may be used to endorse or promote products derived from this software
19  without specific prior written permission.
20 
21 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
25 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
27 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
28 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
29 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 =========================================================================*/
32 #ifndef CXSELECTDATASTRINGPROPERTY_H_
33 #define CXSELECTDATASTRINGPROPERTY_H_
34 
36 
37 namespace cx
38 {
39 typedef boost::shared_ptr<class StringPropertyActiveData> StringPropertyActiveDataPtr;
46 {
47  Q_OBJECT
48 public:
49  static StringPropertyActiveDataPtr New(PatientModelServicePtr patientModelService, QString typeRegexp = ".*")
50  {
51  return StringPropertyActiveDataPtr(new StringPropertyActiveData(patientModelService, typeRegexp));
52  }
54 
55 public: // basic methods
56  virtual bool setValue(const QString& value);
57  virtual QString getValue() const;
58 protected:
60  StringPropertyActiveData(PatientModelServicePtr patientModelService, QString typeRegexp = ".*");
61 };
62 
63 typedef boost::shared_ptr<class StringPropertyActiveImage> StringPropertyActiveImagePtr;
70 {
71  Q_OBJECT
72 public:
73  static StringPropertyActiveImagePtr New(PatientModelServicePtr patientModelService)
74  {
75  return StringPropertyActiveImagePtr(new StringPropertyActiveImage(patientModelService));
76  }
79 
80 public: // basic methods
81  virtual bool setValue(const QString& value);
82  virtual QString getValue() const;
83 protected:
85 };
86 
87 
88 typedef boost::shared_ptr<class StringPropertySelectImage> StringPropertySelectImagePtr;
94 {
95  Q_OBJECT
96 public:
97  static StringPropertySelectImagePtr New(PatientModelServicePtr patientModelService) { return StringPropertySelectImagePtr(new StringPropertySelectImage(patientModelService)); }
99 
100 public: // basic methods
101  virtual bool setValue(const QString& value);
102  virtual QString getValue() const;
103 
104 public: // interface extension
105  ImagePtr getImage();
106 
107 protected:
109 private:
110  QString mImageUid;
111 };
112 
113 typedef boost::shared_ptr<class StringPropertySelectData> StringPropertySelectDataPtr;
119 {
120  Q_OBJECT
121 public:
122  static StringPropertySelectDataPtr New(PatientModelServicePtr patientModelService, QString typeRegexp = ".*")
123  {
124  return StringPropertySelectDataPtr(new StringPropertySelectData(patientModelService, typeRegexp));
125  }
127 
128 public: // basic methods
129  virtual bool setValue(const QString& value);
130  virtual QString getValue() const;
131 
132 public: // interface extension
133  virtual DataPtr getData() const;
134 
135 protected:
136  StringPropertySelectData(PatientModelServicePtr patientModelService, QString typeRegexp = ".*");
137 private:
138 // DataPtr mData;
139  QString mUid;
140 
141 };
142 
143 typedef boost::shared_ptr<class StringPropertySelectMesh> StringPropertySelectMeshPtr;
149 {
150  Q_OBJECT
151 public:
152  static StringPropertySelectMeshPtr New(PatientModelServicePtr patientModelService) { return StringPropertySelectMeshPtr(new StringPropertySelectMesh(patientModelService)); }
154 
155 public: // basic methods
156  virtual bool setValue(const QString& value);
157  virtual QString getValue() const;
158 
159 public: // interface extension
160  MeshPtr getMesh();
161 
162 protected:
164 private:
165  QString mMeshUid;
166 };
167 
168 typedef boost::shared_ptr<class StringPropertySelectTrackedStream> StringPropertySelectTrackedStreamPtr;
174 {
175  Q_OBJECT
176 public:
177  static StringPropertySelectTrackedStreamPtr New(PatientModelServicePtr patientModelService) { return StringPropertySelectTrackedStreamPtr(new StringPropertySelectTrackedStream(patientModelService)); }
179 
180 public: // basic methods
181  virtual bool setValue(const QString& value);
182  virtual QString getValue() const;
183 
184 public: // interface extension
185  TrackedStreamPtr getTrackedStream();
186 
187 protected:
189 private:
190  QString mStreamUid;
191 };
192 
193 
194 
195 } // namespace cx
196 
197 #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:48
boost::shared_ptr< class ActiveData > ActiveDataPtr
Definition: cxColorWidget.h:42
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.