Remoting
Views
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
17
class
VTKREMOTINGVIEWS_EXPORT
vtkPVPlotTime
:
public
vtkPlot
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
;
66
int
TimeAxisMode
;
67
68
private
:
69
vtkPVPlotTime
(
const
vtkPVPlotTime
&) =
delete
;
70
void
operator=
(
const
vtkPVPlotTime
&) =
delete
;
71
};
72
73
#endif
vtkPVPlotTime::TimeAxisMode
int TimeAxisMode
Definition:
vtkPVPlotTime.h:66
VTKREMOTINGVIEWS_EXPORT
#define VTKREMOTINGVIEWS_EXPORT
Definition:
vtkRemotingViewsModule.h:15
vtkAbstractContextItem::Paint
virtual bool Paint(vtkContext2D *painter)
vtkPVPlotTime::Time
double Time
Definition:
vtkPVPlotTime.h:65
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:55
vtkPVPlotTime
takes care of drawing a "time" marker in the plot.
Definition:
vtkPVPlotTime.h:17
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 Tue Oct 1 2024