17 #ifndef vtkChartMatrix_h
18 #define vtkChartMatrix_h
21 #include "vtkChartsCoreModule.h"
29 VTK_ABI_NAMESPACE_BEGIN
69 virtual void SetBorders(
int left,
int bottom,
int right,
int top);
70 void SetBorderLeft(
int value);
71 void SetBorderBottom(
int value);
72 void SetBorderRight(
int value);
73 void SetBorderTop(
int value);
76 for (
int i = 0; i < 4; i++)
78 borders[i] = this->Borders[i];
88 void SetGutterX(
float value);
89 void SetGutterY(
float value);
96 virtual void SetPadding(
const float& padding);
104 virtual void ClearSpecificResizes();
115 virtual void Allocate();
158 virtual std::size_t GetNumberOfCharts();
175 virtual void Link(
const size_t& flatIndex1,
const size_t& flatIndex2,
int axis = 1);
183 virtual void LinkAll(
const size_t& flatIndex,
int axis = 1);
192 virtual void Unlink(
const size_t& flatIndex1,
const size_t& flatIndex2,
int axis = 1);
200 virtual void UnlinkAll(
const size_t& flatIndex,
int axis = 1);
211 virtual void ResetLinks(
int axis = 1);
212 virtual void ResetLinkedLayout();
220 virtual void SetRect(
vtkRecti rect);
248 virtual bool IsDoneWithTraversal();
256 virtual vtkRectf ComputeCurrentElementSceneRect(
269 vtkSetEnumMacro(FillStrategy, StretchType);
293 virtual void SynchronizeAxisRanges(
vtkObject* caller,
unsigned long eventId,
void* calldata);
303 VTK_ABI_NAMESPACE_END
304 #endif // vtkChartMatrix_h
abstract base class for most VTK objects
virtual bool Paint(vtkContext2D *painter)
Paint event for the item, called whenever the item needs to be drawn.
virtual vtkVector2i GetSize() const
Get the width and height of the chart matrix.
std::map< vtkVector2i, vtkVector2f > SpecificResize
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
StretchType GetFillStrategy()
This specifies whether the chart matrix will fill the entire scene or instead draw itself in a user p...
Class for drawing 2D primitives to a graphical context.
Factory class for drawing 2D charts.
a simple class to control print indentation
Some derived classes for the different vectors commonly used.
virtual void GetBorders(int borders[4])
Set/get the borders of the chart matrix (space in pixels around each chart).
container for a matrix of charts.
base class for items that are part of a vtkContextScene.
virtual vtkVector2f GetGutter() const
Get the gutter that should be left between the charts in the matrix.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
virtual void Update()
Perform any updates to the item that may be necessary before rendering.