vtkChartWarning.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
3 // SPDX-License-Identifier: BSD-3-Clause
4 
14 #ifndef vtkChartWarning_h
15 #define vtkChartWarning_h
16 
17 #include "vtkBlockItem.h"
18 #include "vtkRemotingViewsModule.h" // For export macro
19 
20 class vtkChart;
21 
23 {
24 public:
25  static vtkChartWarning* New();
26  vtkTypeMacro(vtkChartWarning, vtkBlockItem);
27  void PrintSelf(ostream& os, vtkIndent indent) override;
28 
32  bool Paint(vtkContext2D* painter) override;
33 
37  bool Hit(const vtkContextMouseEvent& mouse) override;
38 
39  vtkSetMacro(TextPad, double);
40  vtkGetMacro(TextPad, double);
41 
42 protected:
44  ~vtkChartWarning() override;
45 
46  bool ArePlotsImproperlyScaled(vtkChart*);
47 
48  double TextPad;
49 
50 private:
51  vtkChartWarning(const vtkChartWarning&) = delete;
52  void operator=(const vtkChartWarning&) = delete;
53 };
54 
55 #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)