PlusLib  2.9.0
Software library for tracked ultrasound image acquisition, calibration, and processing.
vtkPlusUSDigitalEncoderCommand.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 __vtkPlusUSDigitalEncodersCommand_h
8 #define __vtkPlusUSDigitalEncodersCommand_h
9 
10 #include "vtkPlusServerExport.h"
11 
12 #include "vtkPlusCommand.h"
13 
14 class vtkMatrix4x4;
15 
24 class vtkPlusServerExport vtkPlusUSDigitalEncoderCommand : public vtkPlusCommand
25 {
26 public:
27 
28  static vtkPlusUSDigitalEncoderCommand* New();
30  virtual void PrintSelf(ostream& os, vtkIndent indent);
31  virtual vtkPlusCommand* Clone() { return New(); }
32 
34  virtual PlusStatus Execute();
35 
37  virtual PlusStatus ReadConfiguration(vtkXMLDataElement* aConfig);
38 
40  virtual PlusStatus WriteConfiguration(vtkXMLDataElement* aConfig);
41 
43  virtual void GetCommandNames(std::list<std::string>& cmdNames);
44 
46  virtual std::string GetDescription(const std::string& commandName);
47 
49  virtual std::string GetDeviceId() const;
50  virtual void SetDeviceId(const std::string& deviceId);
51 
55  vtkSetMacro(ResponseExpected, bool);
56  vtkGetMacro(ResponseExpected, bool);
57  vtkBooleanMacro(ResponseExpected, bool);
58 
59  void SetNameToEncoderCommand();
60 
61 protected:
64 
65  std::list<std::pair<std::string, std::string>> CommandList;
66 
67 private:
68  std::string DeviceId;
69  bool ResponseExpected;
70 
72  void operator=(const vtkPlusUSDigitalEncoderCommand&);
73 };
74 
75 
76 #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 controls USDigitalEncodersTracker devices.This command is used for controlling a USDigit...
virtual void GetCommandNames(std::list< std::string > &cmdNames)=0
std::list< std::pair< std::string, std::string > > CommandList