PlusLib  2.9.0
Software library for tracked ultrasound image acquisition, calibration, and processing.
vtkPlusStealthLinkCommand.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 __vtkPlusStealthLinkCommand_h
8 #define __vtkPlusStealthLinkCommand_h
9 
10 #include "vtkPlusServerExport.h"
11 
12 #include "vtkPlusCommand.h"
13 #include "vtkIGSIOTransformRepository.h"
14 
16 
17 //class vtkPlusStealthLinkTracker;
23 class vtkPlusServerExport vtkPlusStealthLinkCommand : public vtkPlusCommand
24 {
25 public:
26  static vtkPlusStealthLinkCommand* New();
28  virtual void PrintSelf(ostream& os, vtkIndent indent);
29  virtual vtkPlusCommand* Clone() { return New(); }
30 
32  virtual PlusStatus Execute();
33 
35  virtual PlusStatus ReadConfiguration(vtkXMLDataElement* aConfig);
36 
38  virtual PlusStatus WriteConfiguration(vtkXMLDataElement* aConfig);
39 
41  virtual void GetCommandNames(std::list<std::string>& cmdNames);
42 
44  virtual std::string GetDescription(const std::string& commandName);
45 
47  vtkGetStdStringMacro(StealthLinkDeviceId);
48  vtkSetStdStringMacro(StealthLinkDeviceId);
49 
51  vtkGetStdStringMacro(DicomImagesOutputDirectory);
52  vtkSetStdStringMacro(DicomImagesOutputDirectory);
53 
58  vtkGetStdStringMacro(VolumeEmbeddedTransformToFrame);
59  vtkSetStdStringMacro(VolumeEmbeddedTransformToFrame);
60 
65  vtkGetMacro(KeepReceivedDicomFiles, bool);
66  vtkSetMacro(KeepReceivedDicomFiles, bool);
67 
72  void SetNameToGetExam();
73 
74 protected:
76  PlusStatus ProcessImageReply(const std::string& imageId, vtkImageData* volumeToSend, vtkMatrix4x4* imageToReferenceOrientationMatrixWithSpacing, std::string& resultMessage);
77 
78  vtkPlusStealthLinkTracker* GetStealthLinkDevice();
79 
81  virtual ~vtkPlusStealthLinkCommand();
82 
83 protected:
84  std::string StealthLinkDeviceId;
88 
89 private:
91  void operator=(const vtkPlusStealthLinkCommand&);
92 };
93 
94 #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 reconstructs a volume from an image sequence and saves it to disk or sends it to the cli...