VTK/Charts/ChartAPI: Difference between revisions

From KitwarePublic
< VTK‎ | Charts
Jump to navigationJump to search
m (Corrections...)
mNo edit summary
Line 69: Line 69:
]
]


   vtkChartXY -> vtkPlot
   vtkChartXY -> vtkPlot [headlabel="n" taillabel="1"]
   vtkChartXY -> vtkPlotGrid
   vtkChartXY -> vtkPlotGrid
   vtkChartXY -> vtkAxis
   vtkChartXY -> vtkAxis

Revision as of 18:22, 21 October 2009

The diagram below shows the basic relationship between the different classes that make up a chart. For clarity only the composition of a vtkChartXY is shown, but all charts have multiple components used to draw their parts. Each component class that has something rendered to the screen has a function with the following prototype,

<source lang="cpp">bool Paint(vtk2DPainter *painter);</source>

These member functions are called by the chart's RenderOverlay function. The chart manages the order in which the Paint functions are called, and so the grid would be drawn over by the plots, and they in turn would be drawn over by the axes and text.

Chart Classes