NorMIT-nav  22.09
An IGT application
cxToolProperty.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 
12 #ifndef CXTOOLPROPERTY_H_
13 #define CXTOOLPROPERTY_H_
14 
15 #include "cxResourceExport.h"
16 
17 #include "cxStringPropertyBase.h"
18 #include "cxTool.h"
19 
20 namespace cx
21 {
22 typedef boost::shared_ptr<class TrackingService> TrackingServicePtr;
23 
32 class cxResource_EXPORT StringPropertyActiveTool : public StringPropertyBase
33 {
34  Q_OBJECT
35 public:
36  static StringPropertyBasePtr New(TrackingServicePtr trackingService) { return StringPropertyBasePtr(new StringPropertyActiveTool(trackingService)); }
37  explicit StringPropertyActiveTool(TrackingServicePtr trackingService);
39 
40 public: // basic methods
41  virtual QString getDisplayName() const;
42  virtual bool setValue(const QString& value);
43  virtual QString getValue() const;
44 
45 public: // optional methods
46  virtual QString getHelp() const;
47  virtual QStringList getValueRange() const;
48  virtual QString convertInternal2Display(QString internal);
49 
50 private:
51  TrackingServicePtr mTrackingService;
52 };
53 
54 
55 typedef boost::shared_ptr<class StringPropertyActiveProbeConfiguration> StringPropertyActiveProbeConfigurationPtr;
56 
62 {
63  Q_OBJECT
64 public:
68 
69 public: // basic methods
70  virtual QString getDisplayName() const;
71  virtual bool setValue(const QString& value);
72  virtual QString getValue() const;
73 
74 public: // optional methods
75  virtual QString getHelp() const;
76  virtual QStringList getValueRange() const;
77  virtual QString convertInternal2Display(QString internal);
78 
79  // extensions
80  ToolPtr getTool() { return mTool; }
81 
82 private slots:
83  void activeToolChanged();
84 private:
85  ToolPtr mTool;
86  TrackingServicePtr mTrackingService;
87 };
88 
89 
93 }
94 
95 #endif /* CXTOOLPROPERTY_H_ */
cx::StringPropertyActiveProbeConfiguration::New
static StringPropertyActiveProbeConfigurationPtr New(TrackingServicePtr trackingService)
Definition: cxToolProperty.h:65
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cx::StringPropertyActiveTool::~StringPropertyActiveTool
virtual ~StringPropertyActiveTool()
Definition: cxToolProperty.h:38
cx::StringPropertyActiveTool
Definition: cxToolProperty.h:32
cx::StringPropertyActiveTool::New
static StringPropertyBasePtr New(TrackingServicePtr trackingService)
Definition: cxToolProperty.h:36
cx::StringPropertyActiveProbeConfiguration::~StringPropertyActiveProbeConfiguration
virtual ~StringPropertyActiveProbeConfiguration()
Definition: cxToolProperty.h:67
cx::StringPropertyActiveProbeConfigurationPtr
boost::shared_ptr< class StringPropertyActiveProbeConfiguration > StringPropertyActiveProbeConfigurationPtr
Definition: cxUSAcqusitionWidget.h:25
cx::TrackingServicePtr
boost::shared_ptr< class TrackingService > TrackingServicePtr
Definition: cxToolFilterWidget.h:27
cxTool.h
cx::StringPropertyActiveProbeConfiguration::getTool
ToolPtr getTool()
Definition: cxToolProperty.h:80
cx::ToolPtr
boost::shared_ptr< class Tool > ToolPtr
Definition: cxVideoConnectionWidget.h:43
cx::StringPropertyActiveProbeConfiguration
Definition: cxToolProperty.h:61
cxStringPropertyBase.h
cx::StringPropertyBasePtr
boost::shared_ptr< class StringPropertyBase > StringPropertyBasePtr
Definition: cxIGTLinkStreamerService.h:20
cx::StringPropertyBase
Abstract interface for interaction with internal string-valued data.
Definition: cxStringPropertyBase.h:65