|
|
(2 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
| <source lang="cpp">
| | == 2D API == |
| class Test : public vtkObject
| | |
| {
| | |
| public:
| |
| Test();
| |
| ~Test();
| |
| };
| |
| </source>
| |
|
| |
|
| <graphviz renderer='neato' caption='Chart Classes'> | | <graphviz renderer='neato' caption='Chart Classes'> |
Line 77: |
Line 72: |
| vtk2DActor -> vtkChart | | vtk2DActor -> vtkChart |
| vtk2DActor -> vtk2DPainter | | vtk2DActor -> vtk2DPainter |
| }
| |
| </graphviz>
| |
|
| |
| <graphviz renderer='neato' caption='2D API'>
| |
| digraph TWOD {
| |
| node [
| |
| fontsize = 10
| |
| fontname = Helvetica
| |
| shape = record
| |
| height = 0.1
| |
| ]
| |
|
| |
| edge [
| |
| fontsize = 10
| |
| fontname = Helvetica
| |
| ]
| |
|
| |
| // Classes
| |
| vtk2DPainter
| |
|
| |
| vtk2DPaintDevice
| |
| vtk2DGLPaintDevice
| |
| vtk2DQtPaintDevice
| |
| vtk2DCairoPaintDevice
| |
|
| |
| //
| |
| // Subclass relationships
| |
| //
| |
|
| |
| // A -> B means
| |
| // A is the superclass of B
| |
| // The notation is a bit counterintuitive but required to obtain
| |
| // the desired top-to-bottom layout
| |
| edge [
| |
| arrowtail = onormal
| |
| arrowhead = none
| |
| ]
| |
|
| |
| vtk2DPaintDevice -> vtk2DGLPaintDevice
| |
| vtk2DPaintDevice -> vtk2DQtPaintDevice
| |
| vtk2DPaintDevice -> vtk2DCairoPaintDevice
| |
|
| |
| //
| |
| // "owns the lifetime of"
| |
| //
| |
|
| |
| edge [
| |
| arrowtail = diamond
| |
| arrowhead = none
| |
| ]
| |
|
| |
| //
| |
| // "has a pointer to"
| |
| //
| |
|
| |
| edge [
| |
| arrowtail = odiamond
| |
| arrowhead = none
| |
| ]
| |
|
| |
| vtk2DPainter -> vtk2DPaintDevice
| |
| } | | } |
| </graphviz> | | </graphviz> |