PlusLib  2.9.0
Software library for tracked ultrasound image acquisition, calibration, and processing.
vtkPlusIEEListener.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 __IEEListener_h
8 #define __IEEListener_h
9 
10 #include "StreamMgr.h"
11 #include "vtkPlusDataCollectionExport.h"
12 #include "vtkObject.h"
13 #include "vtkPlusLogger.h"
14 
15 class vtkPlusDataCollectionExport vtkPlusIEEListener : public vtkObject
16 {
17 public:
18  vtkTypeMacro(vtkPlusIEEListener, vtkObject);
19  virtual void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
20  static vtkPlusIEEListener* New();
21  static vtkPlusIEEListener* New(bool forceZQuantize, double resolutionFactor, bool integerZ, bool isotropic, bool quantizeDim, int zDecimation, bool set4PtFIR, int latAndElevSmoothingIndex);
22 
23  void SetMachineName(const std::string& machineName);
24  void SetPortNumber(unsigned int port);
25 
30  PlusStatus Connect(CLIENT_POSTSCANCONVERT_CALLBACK callback, vtkPlusLogger::LogLevelType logType = vtkPlusLogger::LOG_LEVEL_ERROR);
34  PlusStatus Disconnect();
35 
37  bool IsConnected();
38 
39 protected:
41  vtkPlusIEEListener(bool forceZQuantize, double resolutionFactor, bool integerZ, bool isotropic, bool quantizeDim, int zDecimation, bool set4PtFIR, int latAndElevSmoothingIndex);
43 
44 protected:
45  CStreamMgr* StreamManager;
46  std::string MachineName;
47  unsigned int Port;
48  bool Connected;
49 
50 private:
52  void operator=(const vtkPlusIEEListener&);
53 };
54 
55 #endif //__IEEListener_h
igsioStatus PlusStatus
Definition: PlusCommon.h:40
int port
Definition: phidget22.h:2454
#define VTK_OVERRIDE
Definition: PlusCommon.h:49
CStreamMgr * StreamManager