PlusLib  2.9.0
Software library for tracked ultrasound image acquisition, calibration, and processing.
vtkPlusGetTransformCommand.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 __vtkPlusGetTransformCommand_h
8 #define __vtkPlusGetTransformCommand_h
9 
10 #include "vtkPlusServerExport.h"
11 #include "vtkPlusCommand.h"
12 
13 class vtkMatrix4x4;
14 
20 class vtkPlusServerExport vtkPlusGetTransformCommand : public vtkPlusCommand
21 {
22 public:
23  static vtkPlusGetTransformCommand* New();
25  virtual void PrintSelf(ostream& os, vtkIndent indent);
26  virtual vtkPlusCommand* Clone() { return New(); }
27 
29  virtual PlusStatus Execute();
30 
32  virtual PlusStatus ReadConfiguration(vtkXMLDataElement* aConfig);
33 
35  virtual PlusStatus WriteConfiguration(vtkXMLDataElement* aConfig);
36 
38  virtual void GetCommandNames(std::list<std::string>& cmdNames);
39 
41  virtual std::string GetDescription(const std::string& commandName);
42 
43  vtkGetStdStringMacro(TransformName);
44  vtkSetStdStringMacro(TransformName);
45 
46  void SetNameToGetTransform();
47 
48 protected:
50  virtual ~vtkPlusGetTransformCommand();
51 
52 protected:
53  std::string TransformName;
54 
55 private:
57  void operator=(const vtkPlusGetTransformCommand&);
58 };
59 
60 #endif
virtual void PrintSelf(ostream &os, vtkIndent indent)
virtual std::string GetDescription(const std::string &commandName)=0
virtual PlusStatus WriteConfiguration(vtkXMLDataElement *aConfig)
This command retrieves the value of a transformation in the transform repository.
virtual PlusStatus Execute()=0
This is an abstract superclass for commands in the OpenIGTLink network interface for Plus.
igsioStatus PlusStatus
Definition: PlusCommon.h:40
vtkGetStdStringMacro(Name)
virtual PlusStatus ReadConfiguration(vtkXMLDataElement *aConfig)
virtual vtkPlusCommand * Clone()
vtkSetStdStringMacro(Name)
virtual void GetCommandNames(std::list< std::string > &cmdNames)=0