PlusLib  2.9.0
Software library for tracked ultrasound image acquisition, calibration, and processing.
vtkPlusSendTextCommand.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 __vtkPlusSendTextCommand_h
8 #define __vtkPlusSendTextCommand_h
9 
10 #include "vtkPlusServerExport.h"
11 
12 #include "vtkPlusCommand.h"
13 
14 class vtkMatrix4x4;
15 
23 class vtkPlusServerExport vtkPlusSendTextCommand : public vtkPlusCommand
24 {
25 public:
26 
27  static vtkPlusSendTextCommand* New();
29  virtual void PrintSelf(ostream& os, vtkIndent indent);
30  virtual vtkPlusCommand* Clone() { return New(); }
31 
33  virtual PlusStatus Execute();
34 
36  virtual PlusStatus ReadConfiguration(vtkXMLDataElement* aConfig);
37 
39  virtual PlusStatus WriteConfiguration(vtkXMLDataElement* aConfig);
40 
42  virtual void GetCommandNames(std::list<std::string>& cmdNames);
43 
45  virtual std::string GetDescription(const std::string& commandName);
46 
48  virtual std::string GetDeviceId() const;
49  virtual void SetDeviceId(const std::string& deviceId);
50 
52  virtual std::string GetText() const;
53  virtual void SetText(const std::string& text);
54 
56  virtual std::string GetResponseText() const;
57  virtual void SetResponseText(const std::string& responseText);
58 
62  vtkSetMacro(ResponseExpected, bool);
63  vtkGetMacro(ResponseExpected, bool);
64  vtkBooleanMacro(ResponseExpected, bool);
65 
66  void SetNameToSendText();
67 
68 protected:
70  virtual ~vtkPlusSendTextCommand();
71 
72 private:
73  std::string DeviceId;
74  std::string Text;
75  std::string ResponseText;
76  bool ResponseExpected;
77 
79  void operator=(const vtkPlusSendTextCommand&);
80 };
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
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 send text to a device and optionally return with a response textThis command is used for...
virtual vtkPlusCommand * Clone()
virtual void GetCommandNames(std::list< std::string > &cmdNames)=0
PhidgetLCD_Font int int const char * text
Definition: phidget22.h:4287