29 #ifndef vtkChartMatrix_h
30 #define vtkChartMatrix_h
33 #include "vtkChartsCoreModule.h"
79 virtual void SetBorders(
int left,
int bottom,
int right,
int top);
80 void SetBorderLeft(
int value);
81 void SetBorderBottom(
int value);
82 void SetBorderRight(
int value);
83 void SetBorderTop(
int value);
86 for (
int i = 0; i < 4; i++)
88 borders[i] = this->Borders[i];
98 void SetGutterX(
float value);
99 void SetGutterY(
float value);
106 virtual void SetPadding(
const float& padding);
114 virtual void ClearSpecificResizes();
125 virtual void Allocate();
168 virtual std::size_t GetNumberOfCharts();
185 virtual void Link(
const size_t& flatIndex1,
const size_t& flatIndex2,
int axis = 1);
193 virtual void LinkAll(
const size_t& flatIndex,
int axis = 1);
202 virtual void Unlink(
const size_t& flatIndex1,
const size_t& flatIndex2,
int axis = 1);
210 virtual void UnlinkAll(
const size_t& flatIndex,
int axis = 1);
221 virtual void ResetLinks(
int axis = 1);
222 virtual void ResetLinkedLayout();
230 virtual void SetRect(
vtkRecti rect);
258 virtual bool IsDoneWithTraversal();
266 virtual vtkRectf ComputeCurrentElementSceneRect(
279 vtkSetEnumMacro(FillStrategy, StretchType);
303 virtual void SynchronizeAxisRanges(
vtkObject* caller,
unsigned long eventId,
void* calldata);
313 #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.