29#ifndef vtkChartMatrix_h
30#define vtkChartMatrix_h
32#include "vtkChartsCoreModule.h"
87 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 Update()
Perform any updates to the item that may be necessary before rendering.
static vtkChartMatrix * New()
Creates a new object.
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)
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 void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual vtkChart * GetChart(const vtkVector2i &position)
Get the specified chart element, if the element does not exist NULL will be returned.
virtual void SetSize(const vtkVector2i &size)
Set the width and height of the chart matrix.
virtual bool Paint(vtkContext2D *painter)
Paint event for 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 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.