PlusLib  2.9.0
Software library for tracked ultrasound image acquisition, calibration, and processing.
vtkPlusClariusCommand.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 __vtkPlusClariusCommand_h
8 #define __vtkPlusClariusCommand_h
9 
10 #include "vtkPlusServerExport.h"
11 
12 #include "vtkPlusCommand.h"
13 #include "vtkIGSIOTransformRepository.h"
14 
15 class vtkPlusClarius;
16 
22 class vtkPlusServerExport vtkPlusClariusCommand : public vtkPlusCommand
23 {
24 public:
25  static vtkPlusClariusCommand* New();
27  virtual void PrintSelf(ostream& os, vtkIndent indent);
28  virtual vtkPlusCommand* Clone() { return New(); }
29 
31  virtual PlusStatus Execute();
32 
34  virtual PlusStatus ReadConfiguration(vtkXMLDataElement* aConfig);
35 
37  virtual PlusStatus WriteConfiguration(vtkXMLDataElement* aConfig);
38 
40  virtual void GetCommandNames(std::list<std::string>& cmdNames);
41 
43  virtual std::string GetDescription(const std::string& commandName);
44 
49  void SetNameToSaveRawData();
50 
54  vtkGetMacro(CompressRawData, bool);
55  vtkSetMacro(CompressRawData, bool);
56  vtkBooleanMacro(CompressRawData, bool);
57 
59  vtkGetStdStringMacro(ClariusDeviceId);
60  vtkSetStdStringMacro(ClariusDeviceId);
61 
66  vtkGetStdStringMacro(OutputFilename);
67  vtkSetStdStringMacro(OutputFilename);
68 
72  vtkGetMacro(RawDataLastNSeconds, double);
73  vtkSetMacro(RawDataLastNSeconds, double);
74 
75 protected:
76  vtkPlusClarius* GetClariusDevice();
77 
79  virtual ~vtkPlusClariusCommand();
80 
81 protected:
83  std::string ClariusDeviceId;
84  std::string OutputFilename;
86 
87 private:
89  void operator=(const vtkPlusClariusCommand&);
90 };
91 
92 #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)
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...
Interface to the Clarius ultrasound scans This class talks with a Clarius Scanner over the Clarius AP...
virtual vtkPlusCommand * Clone()