ParaView
vtkChartWarning.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkChartWarning.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 vtkChartWarning_h
26 #define vtkChartWarning_h
27 
28 #include "vtkBlockItem.h"
29 #include "vtkPVClientServerCoreRenderingModule.h" // For export macro
30 
31 class vtkChart;
32 
33 class VTKPVCLIENTSERVERCORERENDERING_EXPORT vtkChartWarning : public vtkBlockItem
34 {
35 public:
36  static vtkChartWarning* New();
37  vtkTypeMacro(vtkChartWarning, vtkBlockItem);
38  virtual void PrintSelf(ostream& os, vtkIndent indent);
39 
43  virtual bool Paint(vtkContext2D* painter);
44 
48  virtual bool Hit(const vtkContextMouseEvent& mouse);
49 
50  vtkSetMacro(TextPad, double);
51  vtkGetMacro(TextPad, double);
52 
53 protected:
55  ~vtkChartWarning();
56 
57  bool ArePlotsImproperlyScaled(vtkChart*);
58 
59  double TextPad;
60 
61 private:
62  vtkChartWarning(const vtkChartWarning&) VTK_DELETE_FUNCTION;
63  void operator=(const vtkChartWarning&) VTK_DELETE_FUNCTION;
64 };
65 
66 #endif // vtkChartWarning_h
a vtkContextItem that draws a block (optional label).