PlusLib  2.9.0
Software library for tracked ultrasound image acquisition, calibration, and processing.
vtkPlusGetImageCommand.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 __vtkPlusGetImageCommand_h
8 #define __vtkPlusGetImageCommand_h
9 
10 #include "vtkPlusServerExport.h"
11 
12 #include "vtkPlusCommand.h"
13 
22 class vtkPlusServerExport vtkPlusGetImageCommand : public vtkPlusCommand
23 {
24 public:
25 
26  static vtkPlusGetImageCommand* New();
28  virtual void PrintSelf(ostream& os, vtkIndent indent);
29  virtual vtkPlusCommand* Clone() { return New(); }
30 
32  virtual PlusStatus Execute();
33 
35  virtual void GetCommandNames(std::list<std::string>& cmdNames);
36 
38  virtual std::string GetDescription(const std::string& commandName);
39 
40  void SetNameToGetImageMeta();
41  void SetNameToGetImage();
42 
44  vtkGetStdStringMacro(ImageId);
45  vtkSetStdStringMacro(ImageId);
46 
47 protected:
49  PlusStatus ExecuteImageReply(std::string& outErrorString);
50 
52  PlusStatus ExecuteImageMetaReply(std::string& outErrorString);
53 
55  virtual ~vtkPlusGetImageCommand();
56 
58  std::string GetImageMetaDatasetsCountAsString();
59 
60 protected:
61  std::string ImageId;
62 
65 
66 private:
67 
69  void operator=(const vtkPlusGetImageCommand&);
70 
71 };
72 
73 #endif
virtual void PrintSelf(ostream &os, vtkIndent indent)
virtual std::string GetDescription(const std::string &commandName)=0
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
vtkGetStdStringMacro(Name)
vtkSetStdStringMacro(Name)
virtual void GetCommandNames(std::list< std::string > &cmdNames)=0
This command is used to answer the OpenIGTLink messages "GET_IMGMETA" and "GET_IMAGE"....