PlusLib  2.9.0
Software library for tracked ultrasound image acquisition, calibration, and processing.
vtkPlusSaveConfigCommand.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 __vtkPlusSaveConfigCommand_h
8 #define __vtkPlusSaveConfigCommand_h
9 
10 #include "vtkPlusServerExport.h"
11 
12 #include "vtkPlusCommand.h"
13 
14 class vtkMatrix4x4;
15 
21 class vtkPlusServerExport vtkPlusSaveConfigCommand : public vtkPlusCommand
22 {
23 public:
24 
25  static vtkPlusSaveConfigCommand* 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 
45  vtkGetStdStringMacro(Filename);
46  vtkSetStdStringMacro(Filename);
47 
48  void SetNameToSaveConfig();
49 
50 protected:
52  virtual ~vtkPlusSaveConfigCommand();
53 
54 private:
55  std::string Filename;
56 
58  void operator=(const vtkPlusSaveConfigCommand&);
59 };
60 
61 
62 #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
virtual vtkPlusCommand * Clone()
This command forces the data collector to save the config file.