VTK/Charts/ChartAPI: Difference between revisions

From KitwarePublic
< VTK‎ | Charts
Jump to navigationJump to search
(Added some notes about the proposed chart API)
 
m (Corrections...)
Line 20: Line 20:


   // Classes
   // Classes
   vtk2Prop
   vtkProp
   vtk2DPainter
   vtk2DPainter


Line 74: Line 74:
   vtkChartXY -> vtkLegend
   vtkChartXY -> vtkLegend


   vtk2DActor -> vtkChart
   vtkChart -> vtk2DPainter
  vtk2DActor -> vtk2DPainter
}
}
</graphviz>
</graphviz>

Revision as of 17:43, 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