PlusLib  2.9.0
Software library for tracked ultrasound image acquisition, calibration, and processing.
vtkPlusGetPolydataCommand.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 __vtkPlusGetPolydataCommand_h
8 #define __vtkPlusGetPolydataCommand_h
9 
10 #include "vtkPlusServerExport.h"
11 #include "vtkPlusCommand.h"
12 
18 class vtkPlusServerExport vtkPlusGetPolydataCommand : public vtkPlusCommand
19 {
20 public:
21 
22  static vtkPlusGetPolydataCommand* New();
24  virtual void PrintSelf(ostream& os, vtkIndent indent);
25  virtual vtkPlusCommand* Clone() { return New(); }
26 
28  virtual PlusStatus ReadConfiguration(vtkXMLDataElement* aConfig);
29 
31  virtual PlusStatus WriteConfiguration(vtkXMLDataElement* aConfig);
32 
34  virtual PlusStatus Execute();
35 
37  virtual void GetCommandNames(std::list<std::string>& cmdNames);
38 
40  virtual std::string GetDescription(const std::string& commandName);
41 
42  void SetNameToGetPolydata();
43 
45  vtkGetStdStringMacro(PolydataId);
46  vtkSetStdStringMacro(PolydataId);
47 
48 protected:
50  PlusStatus ExecutePolydataReply(std::string& outErrorString);
51 
53  virtual ~vtkPlusGetPolydataCommand();
54 
55 protected:
56  std::string PolydataId;
57 
58 private:
60  void operator=(const vtkPlusGetPolydataCommand&);
61 };
62 
63 #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
vtkGetStdStringMacro(Name)
virtual PlusStatus ReadConfiguration(vtkXMLDataElement *aConfig)
virtual vtkPlusCommand * Clone()
vtkSetStdStringMacro(Name)
virtual void GetCommandNames(std::list< std::string > &cmdNames)=0
This command is used to answer the OpenIGTLink message GET_POLYDATA. GET_POLYDATA returns the request...