FreeMat: vtkPieChartActor

FreeMat

- Main Page
- Related Pages

vtkPieChartActor

Section: Visualization Toolkit Hybrid Classes

# Usage

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.

To create an instance of class vtkPieChartActor, simply invoke its constructor as follows

      obj = vtkPieChartActor

# Methods

The class vtkPieChartActor has several methods that can be used. They are listed below. Note that the documentation is translated automatically from the VTK sources, and may not be completely intelligible. When in doubt, consult the VTK website. In the methods listed below, `obj` is an instance of the vtkPieChartActor class.

- `string = obj.GetClassName ()` - Standard methods for type information and printing.
- `int = obj.IsA (string name)` - Standard methods for type information and printing.
- `vtkPieChartActor = obj.NewInstance ()` - Standard methods for type information and printing.
- `vtkPieChartActor = obj.SafeDownCast (vtkObject o)` - Standard methods for type information and printing.
- `obj.SetInput (vtkDataObject )` - Set the input to the pie chart actor.
- `vtkDataObject = obj.GetInput ()` - Get the input data object to this actor.
- `obj.SetTitleVisibility (int )` - Enable/Disable the display of a plot title.
- `int = obj.GetTitleVisibility ()` - Enable/Disable the display of a plot title.
- `obj.TitleVisibilityOn ()` - Enable/Disable the display of a plot title.
- `obj.TitleVisibilityOff ()` - Enable/Disable the display of a plot title.
- `obj.SetTitle (string )` - Set/Get the title of the pie chart.
- `string = obj.GetTitle ()` - Set/Get the title of the pie chart.
- `obj.SetTitleTextProperty (vtkTextProperty p)` - Set/Get the title text property. The property controls the appearance of the plot title.
- `vtkTextProperty = obj.GetTitleTextProperty ()` - Set/Get the title text property. The property controls the appearance of the plot title.
- `obj.SetLabelVisibility (int )` - Enable/Disable the display of pie piece labels.
- `int = obj.GetLabelVisibility ()` - Enable/Disable the display of pie piece labels.
- `obj.LabelVisibilityOn ()` - Enable/Disable the display of pie piece labels.
- `obj.LabelVisibilityOff ()` - Enable/Disable the display of pie piece labels.
- `obj.SetLabelTextProperty (vtkTextProperty p)` - Set/Get the labels text property. This controls the appearance of all pie piece labels.
- `vtkTextProperty = obj.GetLabelTextProperty ()` - Set/Get the labels text property. This controls the appearance of all pie piece labels.
- `obj.SetPieceColor (int i, double r, double g, double b)` - Specify colors for each piece of pie. If not specified, they are automatically generated.
- `obj.SetPieceColor (int i, double color[3])` - Specify colors for each piece of pie. If not specified, they are automatically generated.
- `obj.SetPieceLabel (int i, string )` - Specify the names for each piece of pie. not specified, then an integer number is automatically generated.
- `string = obj.GetPieceLabel (int i)` - Specify the names for each piece of pie. not specified, then an integer number is automatically generated.
- `obj.SetLegendVisibility (int )` - 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.
- `int = obj.GetLegendVisibility ()` - 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.
- `obj.LegendVisibilityOn ()` - 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.
- `obj.LegendVisibilityOff ()` - 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.
- `vtkLegendBoxActor = obj.GetLegendActor ()` - Retrieve handles to the legend box. This is useful if you would like to manually control the legend appearance.
- `int = obj.RenderOverlay (vtkViewport )` - Draw the pie plot.
- `int = obj.RenderOpaqueGeometry (vtkViewport )` - Draw the pie plot.
- `int = obj.RenderTranslucentPolygonalGeometry (vtkViewport )` - Does this prop have some translucent polygonal geometry?
- `int = obj.HasTranslucentPolygonalGeometry ()` - Does this prop have some translucent polygonal geometry?
- `obj.ReleaseGraphicsResources (vtkWindow )` - Release any graphics resources that are being consumed by this actor. The parameter window could be used to determine which graphic resources to release.