PlusLib  2.9.0
Software library for tracked ultrasound image acquisition, calibration, and processing.
vtkPlusGetFrameRateCommand.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 __vtkPlusGetFrameRateCommand_h
8 #define __vtkPlusGetFrameRateCommand_h
9 
10 #include "vtkPlusServerExport.h"
11 
12 #include "vtkPlusCommand.h"
13 
14 class vtkMatrix4x4;
15 
23 class vtkPlusServerExport vtkPlusGetFrameRateCommand : public vtkPlusCommand
24 {
25 public:
26 
27  static vtkPlusGetFrameRateCommand* New();
29  virtual void PrintSelf(ostream& os, vtkIndent indent);
30  virtual vtkPlusCommand* Clone() { return New(); }
31 
33  virtual PlusStatus Execute();
34 
36  virtual PlusStatus ReadConfiguration(vtkXMLDataElement* aConfig);
37 
39  virtual PlusStatus WriteConfiguration(vtkXMLDataElement* aConfig);
40 
42  virtual void GetCommandNames(std::list<std::string>& cmdNames);
43 
45  virtual std::string GetDescription(const std::string& commandName);
46 
48  virtual std::string GetChannelId() const;
49  virtual void SetChannelId(const std::string& channelId);
50 
54  vtkSetMacro(ResponseExpected, bool);
55  vtkGetMacro(ResponseExpected, bool);
56  vtkBooleanMacro(ResponseExpected, bool);
57 
58  void SetNameToGetFrameRate();
59 
60 protected:
62  virtual ~vtkPlusGetFrameRateCommand();
63 
64 private:
65  std::string ChannelId;
66  bool ResponseExpected;
67 
69  void operator=(const vtkPlusGetFrameRateCommand&);
70 };
71 
72 
73 #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 command returns the current frame rate from a vtkPlusChannel's DataSource.This command is used f...
This is an abstract superclass for commands in the OpenIGTLink network interface for Plus.
igsioStatus PlusStatus
Definition: PlusCommon.h:40
virtual PlusStatus ReadConfiguration(vtkXMLDataElement *aConfig)
virtual vtkPlusCommand * Clone()
virtual void GetCommandNames(std::list< std::string > &cmdNames)=0