VTK/Charts/ChartAPI

From KitwarePublic
< VTK‎ | Charts
Revision as of 20:08, 21 October 2009 by Marcus.hanwell (talk | contribs)
Jump to navigationJump to search

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