Commit 6e4bb50c authored by Marcus D. Hanwell's avatar Marcus D. Hanwell
Browse files

ENH: Inherit from vtkPlot for vtk2DHistogramItem.

It might be best to rename the class now too, but it makes more sense to
inherit directly from vtkPlot even though the input data is different.
parent efd8bfe4
......@@ -70,7 +70,7 @@ void vtk2DHistogramItem::SetInput(vtkImageData *data, vtkIdType)
vtkImageData * vtk2DHistogramItem::GetInput()
vtkImageData * vtk2DHistogramItem::GetInputImageData()
return this->Input;
......@@ -21,17 +21,17 @@
#ifndef __vtk2DHistogramItem_h
#define __vtk2DHistogramItem_h
#include "vtkContextItem.h"
#include "vtkPlot.h"
#include "vtkSmartPointer.h" // Needed for SP ivars
#include "vtkVector.h" // Needed for vtkRectf
class vtkImageData;
class vtkScalarsToColors;
class VTK_CHARTS_EXPORT vtk2DHistogramItem : public vtkContextItem
class VTK_CHARTS_EXPORT vtk2DHistogramItem : public vtkPlot
vtkTypeMacro(vtk2DHistogramItem, vtkContextItem);
vtkTypeMacro(vtk2DHistogramItem, vtkPlot);
virtual void PrintSelf(ostream &os, vtkIndent indent);
// Description:
......@@ -56,7 +56,7 @@ public:
// Description:
// Get the input table used by the plot.
vtkImageData * GetInput();
vtkImageData * GetInputImageData();
// Description:
// Set the color transfer funtion that will be used to generate the 2D
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment