Remoting
Views
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
29
class
VTKREMOTINGVIEWS_EXPORT
vtkPVPlotTime
:
public
vtkPlot
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
;
78
int
TimeAxisMode
;
79
80
private
:
81
vtkPVPlotTime
(
const
vtkPVPlotTime
&) =
delete
;
82
void
operator=
(
const
vtkPVPlotTime
&) =
delete
;
83
};
84
85
#endif
vtkPVPlotTime::TimeAxisMode
int TimeAxisMode
Definition:
vtkPVPlotTime.h:78
VTKREMOTINGVIEWS_EXPORT
#define VTKREMOTINGVIEWS_EXPORT
Definition:
vtkRemotingViewsModule.h:15
vtkAbstractContextItem::Paint
virtual bool Paint(vtkContext2D *painter)
vtkPVPlotTime::Time
double Time
Definition:
vtkPVPlotTime.h:77
vtkContext2D
NONE
const int NONE
Definition:
VPICDefinition.h:34
vtkIndent
vtkPVPlotTime::GetBounds
void GetBounds(double bounds[4]) override
Get the bounds for this plot as (Xmin, Xmax, Ymin, Ymax).
Definition:
vtkPVPlotTime.h:67
vtkPVPlotTime
takes care of drawing a "time" marker in the plot.
Definition:
vtkPVPlotTime.h:29
vtkPlot
vtkRemotingViewsModule.h
vtkPlot::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkPlot.h
vtkObject::New
static vtkObject * New()
vtkObjectBase::operator=
void operator=(const vtkObjectBase &)
Generated by
1.8.13 on Wed Jan 27 2021