VTK
|
create a pie chart from an array More...
#include <vtkPieChartActor.h>
create a pie chart from an array
vtkPieChartActor generates a pie chart from an array of numbers defined in field data (a vtkDataObject). To use this class, you must specify an input data object. You'll probably also want to specify the position of the plot be setting the Position and Position2 instance variables, which define a rectangle in which the plot lies. There are also many other instance variables that control the look of the plot includes its title, and legend.
Set the text property/attributes of the title and the labels through the vtkTextProperty objects associated with these components.
Definition at line 54 of file vtkPieChartActor.h.
Standard methods for type information and printing.
Reimplemented from vtkActor2D.
Definition at line 59 of file vtkPieChartActor.h.
vtkPieChartActor::vtkPieChartActor | ( | ) | [protected] |
vtkPieChartActor::~vtkPieChartActor | ( | ) | [protected] |
static int vtkPieChartActor::IsTypeOf | ( | const char * | type | ) | [static] |
Standard methods for type information and printing.
Reimplemented from vtkActor2D.
virtual int vtkPieChartActor::IsA | ( | const char * | type | ) | [virtual] |
Standard methods for type information and printing.
Reimplemented from vtkActor2D.
static vtkPieChartActor* vtkPieChartActor::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Standard methods for type information and printing.
Reimplemented from vtkActor2D.
virtual vtkObjectBase* vtkPieChartActor::NewInstanceInternal | ( | ) | const [protected, virtual] |
Standard methods for type information and printing.
Reimplemented from vtkActor2D.
vtkPieChartActor* vtkPieChartActor::NewInstance | ( | ) | const |
Standard methods for type information and printing.
Reimplemented from vtkActor2D.
void vtkPieChartActor::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
Standard methods for type information and printing.
Reimplemented from vtkActor2D.
static vtkPieChartActor* vtkPieChartActor::New | ( | ) | [static] |
Instantiate this class.
Reimplemented from vtkActor2D.
virtual void vtkPieChartActor::SetInputData | ( | vtkDataObject * | ) | [virtual] |
Set the input to the pie chart actor. SetInputData() does not connect the pipeline whereas SetInputConnection() does.
virtual void vtkPieChartActor::SetInputConnection | ( | vtkAlgorithmOutput * | ) | [virtual] |
Set the input to the pie chart actor. SetInputData() does not connect the pipeline whereas SetInputConnection() does.
virtual vtkDataObject* vtkPieChartActor::GetInput | ( | ) | [virtual] |
Get the input data object to this actor.
virtual void vtkPieChartActor::SetTitleVisibility | ( | int | ) | [virtual] |
Enable/Disable the display of a plot title.
virtual int vtkPieChartActor::GetTitleVisibility | ( | ) | [virtual] |
Enable/Disable the display of a plot title.
virtual void vtkPieChartActor::TitleVisibilityOn | ( | ) | [virtual] |
Enable/Disable the display of a plot title.
virtual void vtkPieChartActor::TitleVisibilityOff | ( | ) | [virtual] |
Enable/Disable the display of a plot title.
virtual void vtkPieChartActor::SetTitle | ( | const char * | ) | [virtual] |
Set/Get the title of the pie chart.
virtual char* vtkPieChartActor::GetTitle | ( | ) | [virtual] |
Set/Get the title of the pie chart.
virtual void vtkPieChartActor::SetTitleTextProperty | ( | vtkTextProperty * | p | ) | [virtual] |
Set/Get the title text property. The property controls the appearance of the plot title.
virtual vtkTextProperty* vtkPieChartActor::GetTitleTextProperty | ( | ) | [virtual] |
Set/Get the title text property. The property controls the appearance of the plot title.
virtual void vtkPieChartActor::SetLabelVisibility | ( | int | ) | [virtual] |
Enable/Disable the display of pie piece labels.
virtual int vtkPieChartActor::GetLabelVisibility | ( | ) | [virtual] |
Enable/Disable the display of pie piece labels.
virtual void vtkPieChartActor::LabelVisibilityOn | ( | ) | [virtual] |
Enable/Disable the display of pie piece labels.
virtual void vtkPieChartActor::LabelVisibilityOff | ( | ) | [virtual] |
Enable/Disable the display of pie piece labels.
virtual void vtkPieChartActor::SetLabelTextProperty | ( | vtkTextProperty * | p | ) | [virtual] |
Set/Get the labels text property. This controls the appearance of all pie piece labels.
virtual vtkTextProperty* vtkPieChartActor::GetLabelTextProperty | ( | ) | [virtual] |
Set/Get the labels text property. This controls the appearance of all pie piece labels.
void vtkPieChartActor::SetPieceColor | ( | int | i, |
double | r, | ||
double | g, | ||
double | b | ||
) |
Specify colors for each piece of pie. If not specified, they are automatically generated.
void vtkPieChartActor::SetPieceColor | ( | int | i, |
const double | color[3] | ||
) | [inline] |
Specify colors for each piece of pie. If not specified, they are automatically generated.
Definition at line 114 of file vtkPieChartActor.h.
Specify colors for each piece of pie. If not specified, they are automatically generated.
void vtkPieChartActor::SetPieceLabel | ( | const int | i, |
const char * | |||
) |
Specify the names for each piece of pie. not specified, then an integer number is automatically generated.
const char* vtkPieChartActor::GetPieceLabel | ( | int | i | ) |
Specify the names for each piece of pie. not specified, then an integer number is automatically generated.
virtual void vtkPieChartActor::SetLegendVisibility | ( | int | ) | [virtual] |
Enable/Disable the creation of a legend. If on, the legend labels will be created automatically unless the per plot legend symbol has been set.
virtual int vtkPieChartActor::GetLegendVisibility | ( | ) | [virtual] |
Enable/Disable the creation of a legend. If on, the legend labels will be created automatically unless the per plot legend symbol has been set.
virtual void vtkPieChartActor::LegendVisibilityOn | ( | ) | [virtual] |
Enable/Disable the creation of a legend. If on, the legend labels will be created automatically unless the per plot legend symbol has been set.
virtual void vtkPieChartActor::LegendVisibilityOff | ( | ) | [virtual] |
Enable/Disable the creation of a legend. If on, the legend labels will be created automatically unless the per plot legend symbol has been set.
virtual vtkLegendBoxActor* vtkPieChartActor::GetLegendActor | ( | ) | [virtual] |
Retrieve handles to the legend box. This is useful if you would like to manually control the legend appearance.
int vtkPieChartActor::RenderOverlay | ( | vtkViewport * | ) | [virtual] |
Draw the pie plot.
Reimplemented from vtkActor2D.
int vtkPieChartActor::RenderOpaqueGeometry | ( | vtkViewport * | ) | [virtual] |
Draw the pie plot.
Reimplemented from vtkActor2D.
virtual int vtkPieChartActor::RenderTranslucentPolygonalGeometry | ( | vtkViewport * | ) | [inline, virtual] |
Draw the pie plot.
Reimplemented from vtkActor2D.
Definition at line 145 of file vtkPieChartActor.h.
virtual int vtkPieChartActor::HasTranslucentPolygonalGeometry | ( | ) | [virtual] |
Does this prop have some translucent polygonal geometry?
Reimplemented from vtkActor2D.
void vtkPieChartActor::ReleaseGraphicsResources | ( | vtkWindow * | ) | [virtual] |
Release any graphics resources that are being consumed by this actor. The parameter window could be used to determine which graphic resources to release.
Reimplemented from vtkActor2D.