VTK
vtkPlotLine.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPlotLine.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 
25 #ifndef vtkPlotLine_h
26 #define vtkPlotLine_h
27 
28 #include "vtkChartsCoreModule.h" // For export macro
29 #include "vtkPlotPoints.h"
30 
31 class VTKCHARTSCORE_EXPORT vtkPlotLine : public vtkPlotPoints
32 {
33 public:
34  vtkTypeMacro(vtkPlotLine, vtkPlotPoints);
35  void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE;
36 
40  static vtkPlotLine *New();
41 
45  bool Paint(vtkContext2D *painter) VTK_OVERRIDE;
46 
53  bool PaintLegend(vtkContext2D *painter, const vtkRectf& rect,
54  int legendIndex) VTK_OVERRIDE;
55 
57 
64  vtkSetMacro(PolyLine,bool);
65  vtkGetMacro(PolyLine,bool);
66  vtkBooleanMacro(PolyLine,bool);
68 
69 protected:
70  vtkPlotLine();
71  ~vtkPlotLine() VTK_OVERRIDE;
72 
76  bool PolyLine;
77 
78 private:
79  vtkPlotLine(const vtkPlotLine &) VTK_DELETE_FUNCTION;
80  void operator=(const vtkPlotLine &) VTK_DELETE_FUNCTION;
81 
82 };
83 
84 #endif //vtkPlotLine_h
Class for drawing an points given two columns from a vtkTable.
Definition: vtkPlotPoints.h:50
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Class for drawing 2D primitives to a graphical context.
Definition: vtkContext2D.h:52
a simple class to control print indentation
Definition: vtkIndent.h:33
bool PaintLegend(vtkContext2D *painter, const vtkRectf &rect, int legendIndex) override
Paint legend event for the XY plot, called whenever the legend needs the plot items symbol/mark/line ...
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
static vtkPlotPoints * New()
Creates a 2D Chart object.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Class for drawing an XY line plot given two columns from a vtkTable.
Definition: vtkPlotLine.h:31
bool Paint(vtkContext2D *painter) override
Paint event for the XY plot, called whenever the chart needs to be drawn.