VTK
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
vtkPieChartActor Class Reference

create a pie chart from an array More...

#include <vtkPieChartActor.h>

Inheritance diagram for vtkPieChartActor:
[legend]
Collaboration diagram for vtkPieChartActor:
[legend]

Public Member Functions

virtual void SetInput (vtkDataObject *)
virtual int HasTranslucentPolygonalGeometry ()
void ReleaseGraphicsResources (vtkWindow *)
virtual vtkDataObjectGetInput ()
virtual void SetTitleVisibility (int)
virtual int GetTitleVisibility ()
virtual void TitleVisibilityOn ()
virtual void TitleVisibilityOff ()
virtual void SetTitle (const char *)
virtual char * GetTitle ()
virtual void SetTitleTextProperty (vtkTextProperty *p)
virtual vtkTextPropertyGetTitleTextProperty ()
virtual void SetLabelVisibility (int)
virtual int GetLabelVisibility ()
virtual void LabelVisibilityOn ()
virtual void LabelVisibilityOff ()
virtual void SetLabelTextProperty (vtkTextProperty *p)
virtual vtkTextPropertyGetLabelTextProperty ()
void SetPieceColor (int i, double r, double g, double b)
void SetPieceColor (int i, const double color[3])
double * GetPieceColor (int i)
void SetPieceLabel (const int i, const char *)
const char * GetPieceLabel (int i)
virtual void SetLegendVisibility (int)
virtual int GetLegendVisibility ()
virtual void LegendVisibilityOn ()
virtual void LegendVisibilityOff ()
virtual vtkLegendBoxActorGetLegendActor ()
int RenderOverlay (vtkViewport *)
int RenderOpaqueGeometry (vtkViewport *)
virtual int RenderTranslucentPolygonalGeometry (vtkViewport *)
- Public Member Functions inherited from vtkActor2D
vtkProperty2DGetProperty ()
virtual void SetProperty (vtkProperty2D *)
void SetDisplayPosition (int, int)
virtual unsigned long GetMTime ()
virtual void GetActors2D (vtkPropCollection *pc)
virtual void ShallowCopy (vtkProp *prop)
virtual void SetMapper (vtkMapper2D *mapper)
virtual vtkMapper2DGetMapper ()
virtual void SetLayerNumber (int)
virtual int GetLayerNumber ()
virtual vtkCoordinateGetPositionCoordinate ()
virtual void SetPosition (float x[2])
virtual void SetPosition (float x, float y)
virtual float * GetPosition ()
virtual vtkCoordinateGetPosition2Coordinate ()
virtual void SetPosition2 (float x[2])
virtual void SetPosition2 (float x, float y)
virtual float * GetPosition2 ()
void SetWidth (double w)
double GetWidth ()
void SetHeight (double h)
double GetHeight ()
virtual vtkCoordinateGetActualPositionCoordinate (void)
virtual vtkCoordinateGetActualPosition2Coordinate (void)
- Public Member Functions inherited from vtkProp
virtual void Pick ()
virtual unsigned long GetRedrawMTime ()
virtual double * GetBounds ()
virtual bool HasKeys (vtkInformation *requiredKeys)
virtual void BuildPaths (vtkAssemblyPaths *paths, vtkAssemblyPath *path)
virtual void GetActors (vtkPropCollection *)
virtual void GetVolumes (vtkPropCollection *)
virtual void SetVisibility (int)
virtual int GetVisibility ()
virtual void VisibilityOn ()
virtual void VisibilityOff ()
virtual void SetPickable (int)
virtual int GetPickable ()
virtual void PickableOn ()
virtual void PickableOff ()
virtual void SetDragable (int)
virtual int GetDragable ()
virtual void DragableOn ()
virtual void DragableOff ()
virtual void SetUseBounds (bool)
virtual bool GetUseBounds ()
virtual void UseBoundsOn ()
virtual void UseBoundsOff ()
virtual void InitPathTraversal ()
virtual vtkAssemblyPathGetNextPath ()
virtual int GetNumberOfPaths ()
virtual void PokeMatrix (vtkMatrix4x4 *vtkNotUsed(matrix))
virtual vtkMatrix4x4GetMatrix ()
virtual vtkInformationGetPropertyKeys ()
virtual void SetPropertyKeys (vtkInformation *keys)
virtual int RenderVolumetricGeometry (vtkViewport *)
virtual bool RenderFilteredOpaqueGeometry (vtkViewport *v, vtkInformation *requiredKeys)
virtual bool RenderFilteredTranslucentPolygonalGeometry (vtkViewport *v, vtkInformation *requiredKeys)
virtual bool RenderFilteredVolumetricGeometry (vtkViewport *v, vtkInformation *requiredKeys)
virtual bool RenderFilteredOverlay (vtkViewport *v, vtkInformation *requiredKeys)
virtual double GetEstimatedRenderTime (vtkViewport *)
virtual double GetEstimatedRenderTime ()
virtual void SetEstimatedRenderTime (double t)
virtual void RestoreEstimatedRenderTime ()
virtual void AddEstimatedRenderTime (double t, vtkViewport *vtkNotUsed(vp))
virtual void SetAllocatedRenderTime (double t, vtkViewport *vtkNotUsed(v))
virtual double GetAllocatedRenderTime ()
void SetRenderTimeMultiplier (double t)
virtual double GetRenderTimeMultiplier ()
virtual bool GetSupportsSelection ()
virtual int GetNumberOfConsumers ()
void AddConsumer (vtkObject *c)
void RemoveConsumer (vtkObject *c)
vtkObjectGetConsumer (int i)
int IsConsumer (vtkObject *c)
- Public Member Functions inherited from vtkObject
virtual void DebugOn ()
virtual void DebugOff ()
unsigned char GetDebug ()
void SetDebug (unsigned char debugFlag)
virtual void Modified ()
unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
vtkCommandGetCommand (unsigned long tag)
void RemoveObserver (vtkCommand *)
void RemoveObservers (unsigned long event, vtkCommand *)
void RemoveObservers (const char *event, vtkCommand *)
int HasObserver (unsigned long event, vtkCommand *)
int HasObserver (const char *event, vtkCommand *)
void RemoveObserver (unsigned long tag)
void RemoveObservers (unsigned long event)
void RemoveObservers (const char *event)
void RemoveAllObservers ()
int HasObserver (unsigned long event)
int HasObserver (const char *event)
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
int InvokeEvent (unsigned long event, void *callData)
int InvokeEvent (const char *event, void *callData)
int InvokeEvent (unsigned long event)
int InvokeEvent (const char *event)
- Public Member Functions inherited from vtkObjectBase
const char * GetClassName () const
virtual void Delete ()
virtual void FastDelete ()
void Print (ostream &os)
virtual void Register (vtkObjectBase *o)
virtual void UnRegister (vtkObjectBase *o)
void SetReferenceCount (int)
void PrintRevisions (ostream &os)
virtual void PrintHeader (ostream &os, vtkIndent indent)
virtual void PrintTrailer (ostream &os, vtkIndent indent)
int GetReferenceCount ()

Static Public Member Functions

static vtkPieChartActorNew ()

Protected Member Functions

 vtkPieChartActor ()
 ~vtkPieChartActor ()
- Protected Member Functions inherited from vtkActor2D
 vtkActor2D ()
 ~vtkActor2D ()
- Protected Member Functions inherited from vtkProp
 vtkProp ()
 ~vtkProp ()
- Protected Member Functions inherited from vtkObject
 vtkObject ()
virtual ~vtkObject ()
virtual void RegisterInternal (vtkObjectBase *, int check)
virtual void UnRegisterInternal (vtkObjectBase *, int check)
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL)
void InternalReleaseFocus ()
- Protected Member Functions inherited from vtkObjectBase
 vtkObjectBase ()
virtual ~vtkObjectBase ()
virtual void CollectRevisions (ostream &os)
virtual void ReportReferences (vtkGarbageCollector *)
 vtkObjectBase (const vtkObjectBase &)
void operator= (const vtkObjectBase &)
typedef vtkActor2D Superclass
virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
static int IsTypeOf (const char *type)
static vtkPieChartActorSafeDownCast (vtkObject *o)

Additional Inherited Members

- Public Types inherited from vtkActor2D
typedef vtkProp Superclass
- Protected Attributes inherited from vtkActor2D
vtkMapper2DMapper
int LayerNumber
vtkProperty2DProperty
vtkCoordinatePositionCoordinate
vtkCoordinatePosition2Coordinate
- Friends inherited from vtkObject

Detailed Description

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.

See Also
vtkParallelCoordinatesActor vtkXYPlotActor2D vtkSpiderPlotActor
Tests:
vtkPieChartActor (Tests)

Definition at line 51 of file vtkPieChartActor.h.

Member Typedef Documentation

Standard methods for type information and printing.

Definition at line 56 of file vtkPieChartActor.h.

Constructor & Destructor Documentation

vtkPieChartActor::vtkPieChartActor ( )
protected
vtkPieChartActor::~vtkPieChartActor ( )
protected

Member Function Documentation

virtual const char* vtkPieChartActor::GetClassName ( )
virtual

Standard methods for type information and printing.

Reimplemented from vtkActor2D.

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 ( vtkObject o)
static

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::SetInput ( vtkDataObject )
virtual

Set the input to the pie chart actor.

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 109 of file vtkPieChartActor.h.

double* vtkPieChartActor::GetPieceColor ( int  i)

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 )
inlinevirtual

Draw the pie plot.

Reimplemented from vtkActor2D.

Definition at line 140 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.


The documentation for this class was generated from the following file: