24#ifndef vtkPlotHistogram2D_h
25#define vtkPlotHistogram2D_h
27#include "vtkChartsCoreModule.h"
Class for drawing 2D primitives to a graphical context.
topologically and geometrically regular array of data
a simple class to control print indentation
vtkIdType GetNearestPoint(const vtkVector2f &point, const vtkVector2f &tolerance, vtkVector2f *location, vtkIdType *segmentId) override
Function to query a plot for the nearest point to the specified coordinate.
bool Paint(vtkContext2D *painter) override
Paint event for the item, called whenever it needs to be drawn.
vtkImageData * GetInputImageData()
Get the input table used by the plot.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSmartPointer< vtkImageData > Output
void Update() override
Perform any updates to the item that may be necessary before rendering.
virtual vtkRectf GetPosition()
~vtkPlotHistogram2D() override
vtkScalarsToColors * GetTransferFunction()
Get the color transfer function that is used to generate the histogram.
void SetInputData(vtkTable *, const vtkStdString &, const vtkStdString &) override
This is a convenience function to set the input table and the x, y column for the plot.
vtkStdString GetTooltipLabel(const vtkVector2d &plotPos, vtkIdType seriesIndex, vtkIdType segmentIndex) override
Generate and return the tooltip label string for this plot The segmentIndex parameter is ignored.
virtual void SetInputData(vtkImageData *data, vtkIdType z=0)
Set the input, we are expecting a vtkImageData with just one component, this would normally be a floa...
void SetInputData(vtkTable *) override
This is a convenience function to set the input table and the x, y column for the plot.
static vtkPlotHistogram2D * New()
Creates a new object.
void SetTransferFunction(vtkScalarsToColors *transfer)
Set the color transfer function that will be used to generate the 2D histogram.
virtual void SetPosition(const vtkRectf &pos)
vtkSmartPointer< vtkImageData > Input
void GenerateHistogram()
Where all the magic happens...
void GetBounds(double bounds[4]) override
Get the bounds for this plot as (Xmin, Xmax, Ymin, Ymax).
vtkSmartPointer< vtkScalarsToColors > TransferFunction
Abstract class for 2D plots.
virtual vtkIdType GetNearestPoint(const vtkVector2f &point, const vtkVector2f &tolerance, vtkVector2f *location, vtkIdType *segmentId)
Function to query a plot for the nearest point to the specified coordinate.
Superclass for mapping scalar values to colors.
Wrapper around std::string to keep symbols short.
A table, which contains similar-typed columns of data.