vtkPVPlotTime.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
11 #ifndef vtkPVPlotTime_h
12 #define vtkPVPlotTime_h
13 
14 #include "vtkPlot.h"
15 #include "vtkRemotingViewsModule.h" // needed for export macro
16 
18 {
19 public:
20  static vtkPVPlotTime* New();
21  vtkTypeMacro(vtkPVPlotTime, vtkPlot);
22  void PrintSelf(ostream& os, vtkIndent indent) override;
23 
24  enum
25  {
26  NONE = 0,
27  X_AXIS = 1,
28  Y_AXIS = 2
29  };
30 
32 
35  vtkSetClampMacro(TimeAxisMode, int, NONE, Y_AXIS);
36  vtkGetMacro(TimeAxisMode, int);
38 
40 
43  vtkSetMacro(Time, double);
44  vtkGetMacro(Time, double);
46 
50  bool Paint(vtkContext2D* painter) override;
51 
55  void GetBounds(double bounds[4]) override
56  {
57  bounds[0] = bounds[2] = 1.0;
58  bounds[1] = bounds[3] = -1.0;
59  }
60 
61 protected:
62  vtkPVPlotTime();
63  ~vtkPVPlotTime() override;
64 
65  double Time;
67 
68 private:
69  vtkPVPlotTime(const vtkPVPlotTime&) = delete;
70  void operator=(const vtkPVPlotTime&) = delete;
71 };
72 
73 #endif
#define VTKREMOTINGVIEWS_EXPORT
virtual bool Paint(vtkContext2D *painter)
const int NONE
void GetBounds(double bounds[4]) override
Get the bounds for this plot as (Xmin, Xmax, Ymin, Ymax).
Definition: vtkPVPlotTime.h:55
takes care of drawing a "time" marker in the plot.
Definition: vtkPVPlotTime.h:17
virtual void PrintSelf(ostream &os, vtkIndent indent)
static vtkObject * New()
void operator=(const vtkObjectBase &)