vtkPVPlotTime.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: $RCSfile$
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html 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 =========================================================================*/
23 #ifndef vtkPVPlotTime_h
24 #define vtkPVPlotTime_h
25 
26 #include "vtkPlot.h"
27 #include "vtkRemotingViewsModule.h" // needed for export macro
28 
30 {
31 public:
32  static vtkPVPlotTime* New();
33  vtkTypeMacro(vtkPVPlotTime, vtkPlot);
34  void PrintSelf(ostream& os, vtkIndent indent) override;
35 
36  enum
37  {
38  NONE = 0,
39  X_AXIS = 1,
40  Y_AXIS = 2
41  };
42 
44 
47  vtkSetClampMacro(TimeAxisMode, int, NONE, Y_AXIS);
48  vtkGetMacro(TimeAxisMode, int);
50 
52 
55  vtkSetMacro(Time, double);
56  vtkGetMacro(Time, double);
58 
62  bool Paint(vtkContext2D* painter) override;
63 
67  void GetBounds(double bounds[4]) override
68  {
69  bounds[0] = bounds[2] = 1.0;
70  bounds[1] = bounds[3] = -1.0;
71  }
72 
73 protected:
74  vtkPVPlotTime();
75  ~vtkPVPlotTime() override;
76 
77  double Time;
79 
80 private:
81  vtkPVPlotTime(const vtkPVPlotTime&) = delete;
82  void operator=(const vtkPVPlotTime&) = delete;
83 };
84 
85 #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:67
takes care of drawing a "time" marker in the plot.
Definition: vtkPVPlotTime.h:29
virtual void PrintSelf(ostream &os, vtkIndent indent)
static vtkObject * New()
void operator=(const vtkObjectBase &)