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