VTK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
dox
Charts
Core
vtkChartMatrix.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkChartMatrix.h
5
6
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7
All rights reserved.
8
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10
This software is distributed WITHOUT ANY WARRANTY; without even
11
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12
PURPOSE. See the above copyright notice for more information.
13
14
=========================================================================*/
15
28
#ifndef vtkChartMatrix_h
29
#define vtkChartMatrix_h
30
31
#include "
vtkChartsCoreModule.h
"
// For export macro
32
#include "
vtkAbstractContextItem.h
"
33
#include "
vtkVector.h
"
// For ivars
34
35
class
vtkChart
;
36
37
class
VTKCHARTSCORE_EXPORT
vtkChartMatrix
:
public
vtkAbstractContextItem
38
{
39
public
:
40
vtkTypeMacro(
vtkChartMatrix
,
vtkAbstractContextItem
);
41
virtual
void
PrintSelf
(ostream &os,
vtkIndent
indent);
42
44
static
vtkChartMatrix
*
New
();
45
48
virtual
void
Update
();
49
51
virtual
bool
Paint
(
vtkContext2D
*painter);
52
56
virtual
void
SetSize(
const
vtkVector2i
&
size
);
57
59
virtual
vtkVector2i
GetSize
()
const
{
return
this->Size; }
60
62
64
virtual
void
SetBorders(
int
left,
int
bottom
,
int
right,
int
top
);
65
void
SetBorderLeft(
int
value
);
66
void
SetBorderBottom(
int
value
);
67
void
SetBorderRight(
int
value
);
68
void
SetBorderTop(
int
value
);
69
virtual
void
GetBorders
(
int
borders[4])
70
{
71
for
(
int
i=0;i<4;i++)
72
{
73
borders[i]=this->Borders[i];
74
}
75
}
77
79
80
virtual
void
SetGutter(
const
vtkVector2f
& gutter);
81
void
SetGutterX(
float
value
);
82
void
SetGutterY(
float
value
);
84
86
virtual
vtkVector2f
GetGutter
()
const
{
return
this->Gutter; }
87
89
virtual
void
Allocate();
90
95
virtual
bool
SetChart(
const
vtkVector2i
&
position
,
vtkChart
* chart);
96
100
virtual
vtkChart
* GetChart(
const
vtkVector2i
&
position
);
101
103
106
virtual
bool
SetChartSpan(
const
vtkVector2i
&
position
,
107
const
vtkVector2i
& span);
109
111
virtual
vtkVector2i
GetChartSpan(
const
vtkVector2i
&
position
);
112
115
virtual
vtkVector2i
GetChartIndex(
const
vtkVector2f
&
position
);
116
117
protected
:
118
vtkChartMatrix
();
119
~
vtkChartMatrix
();
120
121
class
PIMPL;
122
PIMPL *
Private
;
123
124
// The number of charts in x and y.
125
vtkVector2i
Size
;
126
127
// The gutter between each chart.
128
vtkVector2f
Gutter
;
129
int
Borders[4];
130
bool
LayoutIsDirty
;
131
132
private
:
133
vtkChartMatrix
(
const
vtkChartMatrix
&);
// Not implemented.
134
void
operator=(
const
vtkChartMatrix
&);
// Not implemented.
135
};
136
137
#endif //vtkChartMatrix_h
vtkX3D::bottom
Definition:
vtkX3D.h:290
vtkChartMatrix::Size
vtkVector2i Size
Definition:
vtkChartMatrix.h:125
vtkAbstractContextItem::Paint
virtual bool Paint(vtkContext2D *painter)
vtkChartMatrix::GetSize
virtual vtkVector2i GetSize() const
Definition:
vtkChartMatrix.h:59
vtkChartMatrix::Gutter
vtkVector2f Gutter
Definition:
vtkChartMatrix.h:128
vtkContext2D
Class for drawing 2D primitives to a graphical context.
Definition:
vtkContext2D.h:56
vtkChart
Factory class for drawing 2D charts.
Definition:
vtkChart.h:49
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:38
vtkChartMatrix::Private
PIMPL * Private
Definition:
vtkChartMatrix.h:121
vtkVector2i
Definition:
vtkVector.h:269
vtkChartMatrix::GetBorders
virtual void GetBorders(int borders[4])
Definition:
vtkChartMatrix.h:69
vtkVector.h
vtkX3D::size
Definition:
vtkX3D.h:253
vtkVector2f
Definition:
vtkVector.h:279
vtkChartMatrix
container for a matrix of charts.
Definition:
vtkChartMatrix.h:37
vtkChartMatrix::LayoutIsDirty
bool LayoutIsDirty
Definition:
vtkChartMatrix.h:130
vtkAbstractContextItem.h
vtkX3D::top
Definition:
vtkX3D.h:502
vtkX3D::value
Definition:
vtkX3D.h:220
vtkAbstractContextItem
base class for items that are part of a vtkContextScene.
Definition:
vtkAbstractContextItem.h:39
vtkChartMatrix::GetGutter
virtual vtkVector2f GetGutter() const
Definition:
vtkChartMatrix.h:86
vtkObject::New
static vtkObject * New()
vtkAbstractContextItem::Update
virtual void Update()
VTKCHARTSCORE_EXPORT
#define VTKCHARTSCORE_EXPORT
Definition:
vtkChartsCoreModule.h:15
vtkAbstractContextItem::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkChartsCoreModule.h
vtkX3D::position
Definition:
vtkX3D.h:261
Generated on Wed Dec 16 2015 17:14:46 for VTK by
1.8.9.1