PlusLib  2.9.0
Software library for tracked ultrasound image acquisition, calibration, and processing.
vtkPlusVolumeReconstructor.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 __vtkPlusVolumeReconstructor_h
8 #define __vtkPlusVolumeReconstructor_h
9 
10 #include "PlusConfigure.h"
11 #include "vtkPlusVolumeReconstructionExport.h"
12 
13 // IGSIO includes
14 #include <igsioCommon.h>
15 #include <vtkIGSIOVolumeReconstructor.h>
16 
42 class vtkPlusVolumeReconstructionExport vtkPlusVolumeReconstructor : public vtkIGSIOVolumeReconstructor
43 {
44 public:
45 
46  static vtkPlusVolumeReconstructor* New();
47  vtkTypeMacro(vtkPlusVolumeReconstructor, vtkIGSIOVolumeReconstructor);
48  virtual void PrintSelf(ostream& os, vtkIndent indent) override;
49 
50  virtual PlusStatus UpdateImportanceMask() override;
51 
60  virtual PlusStatus SaveReconstructedVolumeToFile(const std::string& filename, bool accumulation = false, bool useCompression = true) override;
61  virtual PlusStatus SaveReconstructedVolumeToFile(const std::string& filename, bool accumulation = false, bool useCompression = true, std::vector<std::string>* customFields = nullptr, std::vector<std::string>* customValues = nullptr);
62  virtual PlusStatus SaveReconstructedVolumeToMetafile(const std::string& filename, bool accumulation = false, bool useCompression = true, std::vector<std::string>* customFields = nullptr, std::vector<std::string>* customValues = nullptr) { return SaveReconstructedVolumeToFile(filename, accumulation, useCompression, customFields, customValues); }
63 
72  static PlusStatus SaveReconstructedVolumeToFile(vtkImageData* volumeToSave, const std::string& filename, bool useCompression = true, std::vector<std::string>* customFields = nullptr, std::vector<std::string>* customValues = nullptr);
73  static PlusStatus SaveReconstructedVolumeToMetafile(vtkImageData* volumeToSave, const std::string& filename, bool useCompression = true, std::vector<std::string>* customFields = nullptr, std::vector<std::string>* customValues = nullptr) { return vtkPlusVolumeReconstructor::SaveReconstructedVolumeToFile(volumeToSave, filename, useCompression, customFields, customValues); }
74 
75 protected:
77  virtual ~vtkPlusVolumeReconstructor();
78 
79 private:
80  vtkPlusVolumeReconstructor(const vtkPlusVolumeReconstructor&); // Not implemented.
81  void operator=(const vtkPlusVolumeReconstructor&); // Not implemented.
82 };
83 
84 #endif
igsioStatus PlusStatus
Definition: PlusCommon.h:40
virtual PlusStatus SaveReconstructedVolumeToFile(const std::string &filename, bool accumulation=false, bool useCompression=true) override
static PlusStatus SaveReconstructedVolumeToMetafile(vtkImageData *volumeToSave, const std::string &filename, bool useCompression=true, std::vector< std::string > *customFields=nullptr, std::vector< std::string > *customValues=nullptr)
virtual PlusStatus SaveReconstructedVolumeToMetafile(const std::string &filename, bool accumulation=false, bool useCompression=true, std::vector< std::string > *customFields=nullptr, std::vector< std::string > *customValues=nullptr)
Reconstructs a volume from tracked frames.