PlusLib  2.9.0
Software library for tracked ultrasound image acquisition, calibration, and processing.
PlusPlotter.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 __PlusPlotter_h
8 #define __PlusPlotter_h
9 
10 #include "vtkPlusRenderingExport.h"
11 
12 // Local includes
13 #include "PlusCommon.h"
14 
15 class vtkTable;
16 class vtkContextView;
17 
18 class vtkPlusRenderingExport PlusPlotter
19 {
20 public:
22  static PlusStatus WriteScatterChartToFile(const std::string& chartTitle,
23  const std::string& yAxisText,
24  vtkTable& inputTable,
25  int xColumnIndex,
26  int yColumnIndex,
27  int imageSize[2],
28  const std::string& outputImageFilename);
29 
31  static PlusStatus WriteLineChartToFile(const std::string& chartTitle,
32  const std::string& yAxisText,
33  vtkTable& inputTable,
34  int xColumnIndex,
35  int y1ColumnIndex,
36  int y2ColumnIndex,
37  int imageSize[2],
38  const std::string& outputImageFilename);
39 
41  static PlusStatus WriteHistogramChartToFile(const std::string& chartTitle,
42  vtkTable& inputTable,
43  int inputColumnIndex,
44  double valueRangeMin,
45  double valueRangeMax,
46  int numberOfBins,
47  int imageSize[2],
48  const std::string& outputImageFilename);
49 
51  static PlusStatus WriteChartToFile(vtkContextView& view,
52  int imageSize[2],
53  const std::string& outputImageFilename);
54 
56  static PlusStatus ComputeHistogram(vtkTable& inputTable,
57  int inputColumnIndex,
58  vtkTable& resultTable,
59  double valueRangeMin,
60  double valueRangeMax,
61  unsigned int numberOfBins);
62 
64  static PlusStatus WriteTableToFile(vtkTable& table, const std::string& filename);
65 };
66 
67 #endif //__PlusPlotter_h
igsioStatus PlusStatus
Definition: PlusCommon.h:40