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 "vtkRemotingViewsModule.h" // For export macro
30 
31 class vtkChart;
32 
34 {
35 public:
36  static vtkChartWarning* New();
37  vtkTypeMacro(vtkChartWarning, vtkBlockItem);
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
43  bool Paint(vtkContext2D* painter) override;
44 
48  bool Hit(const vtkContextMouseEvent& mouse) override;
49 
50  vtkSetMacro(TextPad, double);
51  vtkGetMacro(TextPad, double);
52 
53 protected:
55  ~vtkChartWarning() override;
56 
57  bool ArePlotsImproperlyScaled(vtkChart*);
58 
59  double TextPad;
60 
61 private:
62  vtkChartWarning(const vtkChartWarning&) = delete;
63  void operator=(const vtkChartWarning&) = delete;
64 };
65 
66 #endif // vtkChartWarning_h
virtual bool Hit(const vtkContextMouseEvent &mouse)
a vtkContextItem that draws a block (optional label).
#define VTKREMOTINGVIEWS_EXPORT
virtual bool Paint(vtkContext2D *painter)
static vtkBlockItem * New()
void operator=(const vtkObjectBase &)
virtual void PrintSelf(ostream &os, vtkIndent indent)