PlusLib  2.9.0
Software library for tracked ultrasound image acquisition, calibration, and processing.
vtkPlusTrackedFrameProcessor.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 __vtkPlusTrackedFrameProcessor_h
8 #define __vtkPlusTrackedFrameProcessor_h
9 
10 #include "vtkPlusImageProcessingExport.h"
11 
12 //class igsioTrackedFrame;
13 //class vtkIGSIOTrackedFrameList;
14 //class vtkIGSIOTransformRepository;
15 
21 class vtkPlusImageProcessingExport vtkPlusTrackedFrameProcessor : public vtkObject
22 {
23 public:
24  vtkTypeMacro(vtkPlusTrackedFrameProcessor , vtkObject);
25  virtual void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
26 
30  virtual void SetInputFrames(vtkIGSIOTrackedFrameList* inputFrames);
31  vtkGetObjectMacro(InputFrames, vtkIGSIOTrackedFrameList);
32 
34  virtual void SetTransformRepository(vtkIGSIOTransformRepository* transformRepository);
35  vtkGetObjectMacro(TransformRepository, vtkIGSIOTransformRepository);
36 
41  virtual PlusStatus Update();
42 
44  vtkGetObjectMacro(OutputFrames, vtkIGSIOTrackedFrameList);
45 
47  virtual PlusStatus ReadConfiguration(vtkXMLDataElement* processingElement);
48 
50  virtual PlusStatus WriteConfiguration(vtkXMLDataElement* processingElement);
51 
53  static const char* GetTagName() { return "Processor"; };
54 
56  virtual const char* GetProcessorTypeName() = 0;
57 
58 protected:
61 
66  virtual PlusStatus ProcessFrame(igsioTrackedFrame* inputFrame, igsioTrackedFrame* outputFrame) = 0;
67 
68  vtkIGSIOTrackedFrameList* InputFrames;
69  vtkIGSIOTransformRepository *TransformRepository;
70  vtkIGSIOTrackedFrameList* OutputFrames;
71 };
72 
73 #endif
igsioStatus PlusStatus
Definition: PlusCommon.h:40
vtkIGSIOTransformRepository * TransformRepository
#define VTK_OVERRIDE
Definition: PlusCommon.h:49
vtkIGSIOTrackedFrameList * InputFrames
Simple interface class to allow running various algorithms that process tracked frame lists.
vtkIGSIOTrackedFrameList * OutputFrames