PlusLib  2.9.0
Software library for tracked ultrasound image acquisition, calibration, and processing.
vtkPlusGenericSerialCommand.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 __vtkPlusGenericSerialCommand_h
8 #define __vtkPlusGenericSerialCommand_h
9 
10 #include "vtkPlusServerExport.h"
11 
12 #include "vtkPlusCommand.h"
13 
14 class vtkMatrix4x4;
15 
23 class vtkPlusServerExport vtkPlusGenericSerialCommand : public vtkPlusCommand
24 {
25 public:
26 
27  static vtkPlusGenericSerialCommand* 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 
54  vtkSetMacro(ResponseExpected, bool);
55  vtkGetMacro(ResponseExpected, bool);
56  vtkBooleanMacro(ResponseExpected, bool);
57 
58  void SetNameToSerial();
59 
60 protected:
62  virtual ~vtkPlusGenericSerialCommand();
63 
64  std::string GetCommandName() const;
65  void SetCommandName(const std::string& text);
66  std::string GetCommandValue() const;
67  void SetCommandValue(const std::string& text);
68 
69 private:
70  std::string DeviceId;
71  std::string CommandName;
72  std::string CommandValue;
73  bool ResponseExpected;
74 
76  void operator=(const vtkPlusGenericSerialCommand&);
77 };
78 
79 
80 #endif
virtual vtkPlusCommand * Clone()
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)
virtual void GetCommandNames(std::list< std::string > &cmdNames)=0
PhidgetLCD_Font int int const char * text
Definition: phidget22.h:4287
This command is for communicating with vtkPlusGenericSerialDevices.This command is used for communica...