container for a matrix of charts.
More...
#include <vtkChartMatrix.h>
container for a matrix of charts.
This class contains a matrix of charts. These charts will be of type vtkChartXY by default, but this can be overridden. The class will manage their layout and object lifetime.
- Tests:
- vtkChartMatrix (Tests)
Definition at line 37 of file vtkChartMatrix.h.
vtkChartMatrix::vtkChartMatrix |
( |
| ) |
|
|
protected |
vtkChartMatrix::~vtkChartMatrix |
( |
| ) |
|
|
protected |
static int vtkChartMatrix::IsTypeOf |
( |
const char * |
type | ) |
|
|
static |
virtual int vtkChartMatrix::IsA |
( |
const char * |
type | ) |
|
|
virtual |
virtual vtkObjectBase* vtkChartMatrix::NewInstanceInternal |
( |
| ) |
const |
|
protectedvirtual |
virtual void vtkChartMatrix::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
| |
|
virtual |
virtual void vtkChartMatrix::Update |
( |
| ) |
|
|
virtual |
Perform any updates to the item that may be necessary before rendering.
Reimplemented in vtkScatterPlotMatrix.
virtual bool vtkChartMatrix::Paint |
( |
vtkContext2D * |
painter | ) |
|
|
virtual |
virtual void vtkChartMatrix::SetSize |
( |
const vtkVector2i & |
size | ) |
|
|
virtual |
Set the width and height of the chart matrix. This will cause an immediate resize of the chart matrix, the default size is 0x0 (no charts). No chart objects are created until Allocate is called.
virtual vtkVector2i vtkChartMatrix::GetSize |
( |
| ) |
const |
|
inlinevirtual |
Get the width and height of the chart matrix.
Definition at line 59 of file vtkChartMatrix.h.
virtual void vtkChartMatrix::SetBorders |
( |
int |
left, |
|
|
int |
bottom, |
|
|
int |
right, |
|
|
int |
top |
|
) |
| |
|
virtual |
Set/get the borders of the chart matrix (space in pixels around each chart).
virtual void vtkChartMatrix::GetBorders |
( |
int |
borders[4] | ) |
|
|
inlinevirtual |
Set/get the borders of the chart matrix (space in pixels around each chart).
Definition at line 65 of file vtkChartMatrix.h.
virtual void vtkChartMatrix::SetGutter |
( |
const vtkVector2f & |
gutter | ) |
|
|
virtual |
Set the gutter that should be left between the charts in the matrix.
virtual vtkVector2f vtkChartMatrix::GetGutter |
( |
| ) |
const |
|
inlinevirtual |
Get the gutter that should be left between the charts in the matrix.
Definition at line 78 of file vtkChartMatrix.h.
virtual void vtkChartMatrix::Allocate |
( |
| ) |
|
|
virtual |
Allocate the charts, this will cause any null chart to be allocated.
virtual bool vtkChartMatrix::SetChart |
( |
const vtkVector2i & |
position, |
|
|
vtkChart * |
chart |
|
) |
| |
|
virtual |
Set the chart element, note that the chart matrix must be large enough to accommodate the element being set. Note that this class will take ownership of the chart object.
- Returns
- false if the element cannot be set.
virtual vtkChart* vtkChartMatrix::GetChart |
( |
const vtkVector2i & |
position | ) |
|
|
virtual |
Get the specified chart element, if the element does not exist NULL will be returned. If the chart element has not yet been allocated it will be at this point.
virtual bool vtkChartMatrix::SetChartSpan |
( |
const vtkVector2i & |
position, |
|
|
const vtkVector2i & |
span |
|
) |
| |
|
virtual |
Set the span of a chart in the matrix. This defaults to 1x1, and cannot exceed the remaining space in x or y.
- Returns
- false If the span is not possible.
virtual vtkVector2i vtkChartMatrix::GetChartSpan |
( |
const vtkVector2i & |
position | ) |
|
|
virtual |
Get the span of the specified chart.
virtual vtkVector2i vtkChartMatrix::GetChartIndex |
( |
const vtkVector2f & |
position | ) |
|
|
virtual |
Get the position of the chart in the matrix at the specified location. The position should be specified in scene coordinates.
PIMPL* vtkChartMatrix::Private |
|
protected |
vtkVector2i vtkChartMatrix::Size |
|
protected |
vtkVector2f vtkChartMatrix::Gutter |
|
protected |
int vtkChartMatrix::Borders[4] |
|
protected |
bool vtkChartMatrix::LayoutIsDirty |
|
protected |
The documentation for this class was generated from the following file: