PlusLib  2.9.0
Software library for tracked ultrasound image acquisition, calibration, and processing.
vtkPlusWinProbeCommand.h
Go to the documentation of this file.
1 /*=Plus=header=begin======================================================
2  Program: Plus
3  Copyright (c) Laboratory for Percutaneous Surgery. All rights reserved.
4  See License.txt for details.
5 =========================================================Plus=header=end*/
6 
7 #ifndef __vtkPlusWinProbeCommand_h
8 #define __vtkPlusWinProbeCommand_h
9 
10 #include "vtkPlusServerExport.h"
11 #include "vtkPlusCommand.h"
12 #include <sstream>
13 
15 
23 class vtkPlusServerExport vtkPlusWinProbeCommand : public vtkPlusCommand
24 {
25 public:
26  static vtkPlusWinProbeCommand* New();
28  virtual void PrintSelf(ostream& os, vtkIndent indent);
29  virtual vtkPlusCommand* Clone() { return New(); }
30 
32  virtual PlusStatus Execute();
33 
35  virtual PlusStatus ReadConfiguration(vtkXMLDataElement* aConfig);
36 
38  virtual PlusStatus WriteConfiguration(vtkXMLDataElement* aConfig);
39 
41  virtual void GetCommandNames(std::list<std::string>& cmdNames);
42 
44  virtual std::string GetDescription(const std::string& commandName);
45 
47  virtual std::string GetDeviceId() const;
48  virtual void SetDeviceId(const std::string& deviceId);
49 
53  vtkSetMacro(ResponseExpected, bool);
54  vtkGetMacro(ResponseExpected, bool);
55  vtkBooleanMacro(ResponseExpected, bool);
56 
57  void SetNameToWinProbeDevice();
58 
59 protected:
61  virtual ~vtkPlusWinProbeCommand();
62 
63  std::string GetCommandName() const;
64  void SetCommandName(const std::string& text);
65  std::string GetCommandValue() const;
66  void SetCommandValue(const std::string& text);
67  std::string GetCommandIndex() const;
68  void SetCommandIndex(const std::string& text);
69 
70 private:
71  std::string DeviceId;
72  std::string CommandName;
73  std::string CommandValue;
74  std::string CommandIndex;
75  bool ResponseExpected;
76 
77  std::list<std::pair<std::string, std::map<std::string, std::string>>> RequestedParameters;
78 
80  void operator=(const vtkPlusWinProbeCommand&);
81 };
82 
83 #endif
virtual void PrintSelf(ostream &os, vtkIndent indent)
virtual std::string GetDescription(const std::string &commandName)=0
virtual PlusStatus WriteConfiguration(vtkXMLDataElement *aConfig)
virtual PlusStatus Execute()=0
virtual vtkPlusCommand * Clone()
This is an abstract superclass for commands in the OpenIGTLink network interface for Plus.
igsioStatus PlusStatus
Definition: PlusCommon.h:40
virtual PlusStatus ReadConfiguration(vtkXMLDataElement *aConfig)
This command is for communicating with vtkPlusWinProbeDevices.This command is used for communicating ...
virtual void GetCommandNames(std::list< std::string > &cmdNames)=0
Class for acquiring ultrasound images from WinProbe ultrasound systems.
PhidgetLCD_Font int int const char * text
Definition: phidget22.h:4287