26 #ifndef vtkChartMatrix_h
27 #define vtkChartMatrix_h
30 #include "vtkChartsCoreModule.h"
82 for (
int i = 0; i < 4; i++)
84 borders[i] = this->Borders[i];
base class for items that are part of a vtkContextScene.
container for a matrix of charts.
void SetBorderBottom(int value)
void SetBorderRight(int value)
virtual void SetGutter(const vtkVector2f &gutter)
Set the gutter that should be left between the charts in the matrix.
virtual bool SetChart(const vtkVector2i &position, vtkChart *chart)
Set the chart element, note that the chart matrix must be large enough to accommodate the element bei...
virtual vtkVector2i GetSize() const
Get the width and height of the chart matrix.
virtual void GetBorders(int borders[4])
virtual vtkVector2i GetChartSpan(const vtkVector2i &position)
Get the span of the specified chart.
void SetBorderTop(int value)
std::map< vtkVector2i, vtkVector2f > SpecificResize
void SetGutterY(float value)
~vtkChartMatrix() override
bool Paint(vtkContext2D *painter) override
Paint event for the chart matrix.
void SetGutterX(float value)
virtual bool SetChartSpan(const vtkVector2i &position, const vtkVector2i &span)
Set the span of a chart in the matrix.
virtual vtkVector2f GetGutter() const
Get the gutter that should be left between the charts in the matrix.
virtual vtkChart * GetChart(const vtkVector2i &position)
Get the specified chart element, if the element does not exist nullptr will be returned.
static vtkChartMatrix * New()
Creates a new object.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void SetSize(const vtkVector2i &size)
Set the width and height of the chart matrix.
virtual vtkVector2i GetChartIndex(const vtkVector2f &position)
Get the position of the chart in the matrix at the specified location.
virtual void SetSpecificResize(const vtkVector2i &index, const vtkVector2f &resize)
Set a specific resize that will move the bottom left point of a chart.
virtual void ClearSpecificResizes()
virtual void Allocate()
Allocate the charts, this will cause any null chart to be allocated.
virtual void SetBorders(int left, int bottom, int right, int top)
Set/get the borders of the chart matrix (space in pixels around each chart).
void Update() override
Perform any updates to the item that may be necessary before rendering.
void SetBorderLeft(int value)
Factory class for drawing 2D charts.
Class for drawing 2D primitives to a graphical context.
a simple class to control print indentation
Some derived classes for the different vectors commonly used.