17 #ifndef vtkChartMatrix_h
18 #define vtkChartMatrix_h
21 #include "vtkChartsCoreModule.h"
28 VTK_ABI_NAMESPACE_BEGIN
68 virtual void SetBorders(
int left,
int bottom,
int right,
int top);
69 void SetBorderLeft(
int value);
70 void SetBorderBottom(
int value);
71 void SetBorderRight(
int value);
72 void SetBorderTop(
int value);
75 for (
int i = 0; i < 4; i++)
77 borders[i] = this->Borders[i];
87 void SetGutterX(
float value);
88 void SetGutterY(
float value);
95 virtual void SetPadding(
const float& padding);
103 virtual void ClearSpecificResizes();
114 virtual void Allocate();
157 virtual std::size_t GetNumberOfCharts();
174 virtual void Link(
const size_t& flatIndex1,
const size_t& flatIndex2,
int axis = 1);
182 virtual void LinkAll(
const size_t& flatIndex,
int axis = 1);
191 virtual void Unlink(
const size_t& flatIndex1,
const size_t& flatIndex2,
int axis = 1);
199 virtual void UnlinkAll(
const size_t& flatIndex,
int axis = 1);
210 virtual void ResetLinks(
int axis = 1);
211 virtual void ResetLinkedLayout();
219 virtual void SetRect(
vtkRecti rect);
247 virtual bool IsDoneWithTraversal();
255 virtual vtkRectf ComputeCurrentElementSceneRect(
268 vtkSetEnumMacro(FillStrategy, StretchType);
292 virtual void SynchronizeAxisRanges(
vtkObject* caller,
unsigned long eventId,
void* calldata);
302 VTK_ABI_NAMESPACE_END
303 #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.