VTK
vtkPlotPie.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkPlotPie.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
26#ifndef vtkPlotPie_h
27#define vtkPlotPie_h
28
29#include "vtkChartsCoreModule.h" // For export macro
30#include "vtkPlot.h"
31#include "vtkSmartPointer.h" // To hold ColorSeries etc.
32
33class vtkContext2D;
34class vtkColorSeries;
35class vtkPoints2D;
36
37class vtkPlotPiePrivate;
38
39class VTKCHARTSCORE_EXPORT vtkPlotPie : public vtkPlot
40{
41public:
42 vtkTypeMacro(vtkPlotPie, vtkPlot);
43 virtual void PrintSelf(ostream &os, vtkIndent indent);
44
45 static vtkPlotPie *New();
46
50 virtual bool Paint(vtkContext2D *painter);
51
58 bool PaintLegend(vtkContext2D *painter, const vtkRectf& rect, int legendIndex);
59
64 void SetDimensions(int arg1, int arg2, int arg3, int arg4);
65
70 void SetDimensions(int arg[4]);
71
73
77 vtkGetVector4Macro(Dimensions, int);
79
83 void SetColorSeries(vtkColorSeries *colorSeries);
84
89
96 const vtkVector2f& tolerance,
98
99protected:
102
107
108 int Dimensions[4];
109
114
119
124
125private:
126 vtkPlotPie(const vtkPlotPie &) VTK_DELETE_FUNCTION;
127 void operator=(const vtkPlotPie &) VTK_DELETE_FUNCTION;
128
129 vtkPlotPiePrivate *Private;
130
131};
132
133#endif //vtkPlotPie_h
stores a list of colors.
Class for drawing 2D primitives to a graphical context.
Definition: vtkContext2D.h:58
a simple class to control print indentation
Definition: vtkIndent.h:40
Class for drawing a Pie diagram.
Definition: vtkPlotPie.h:40
vtkTimeStamp BuildTime
The point cache is marked dirty until it has been initialized.
Definition: vtkPlotPie.h:123
static vtkPlotPie * New()
virtual bool Paint(vtkContext2D *painter)
Paint event for the item.
void SetDimensions(int arg[4])
Set the dimensions of the pie, elements 0 and 1 are the x and y coordinate of the bottom corner.
bool UpdateTableCache(vtkTable *table)
Update the table cache.
void SetColorSeries(vtkColorSeries *colorSeries)
Set the color series to use for the Pie.
bool PaintLegend(vtkContext2D *painter, const vtkRectf &rect, int legendIndex)
Paint legend event for the XY plot, called whenever the legend needs the plot items symbol/mark/line ...
void SetDimensions(int arg1, int arg2, int arg3, int arg4)
Set the dimensions of the pie, arguments 1 and 2 are the x and y coordinate of the bottom corner.
virtual vtkIdType GetNearestPoint(const vtkVector2f &point, const vtkVector2f &tolerance, vtkVector2f *location)
Function to query a plot for the nearest point to the specified coordinate.
vtkColorSeries * GetColorSeries()
Get the color series used.
vtkSmartPointer< vtkColorSeries > ColorSeries
The color series to use for the pie.
Definition: vtkPlotPie.h:113
virtual void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkPoints2D * Points
Store a well packed set of angles for the wedges of the pie.
Definition: vtkPlotPie.h:118
Abstract class for 2D plots.
Definition: vtkPlot.h:53
represent and manipulate 2D points
Definition: vtkPoints2D.h:37
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:69
record modification and/or execution time
Definition: vtkTimeStamp.h:36
@ point
Definition: vtkX3D.h:236
@ location
Definition: vtkX3D.h:406
int vtkIdType
Definition: vtkType.h:287