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