/usr/include/paraview/vtkPVPlotTime.h is in paraview-dev 5.0.1+dfsg1-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | /*=========================================================================
Program: ParaView
Module: $RCSfile$
Copyright (c) Kitware, Inc.
All rights reserved.
See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
// .NAME vtkPVPlotTime - takes care of drawing a "time" marker in the plot.
// .SECTION Description
// vtkPVPlotTime is used to add a "current-time" marker to the plot when on of
// the axes in the plots is time. Currently only X-axis as time is supported.
#ifndef vtkPVPlotTime_h
#define vtkPVPlotTime_h
#include "vtkPlot.h"
#include "vtkPVVTKExtensionsRenderingModule.h" // needed for export macro
class VTKPVVTKEXTENSIONSRENDERING_EXPORT vtkPVPlotTime : public vtkPlot
{
public:
static vtkPVPlotTime* New();
vtkTypeMacro(vtkPVPlotTime, vtkPlot);
void PrintSelf(ostream& os, vtkIndent indent);
enum
{
NONE=0,
X_AXIS=1,
Y_AXIS=2
};
// Description:
// Set the Time axis mode.
vtkSetClampMacro(TimeAxisMode, int, NONE, Y_AXIS);
vtkGetMacro(TimeAxisMode, int);
// Description:
// Set time value.
vtkSetMacro(Time, double);
vtkGetMacro(Time, double);
// Description:
// Paint event for the axis, called whenever the axis needs to be drawn
virtual bool Paint(vtkContext2D *painter);
// Description:
// Get the bounds for this plot as (Xmin, Xmax, Ymin, Ymax).
virtual void GetBounds(double bounds[4])
{ bounds[0] = bounds[2] = 1.0; bounds[1] = bounds[3] = -1.0;}
//BTX
protected:
vtkPVPlotTime();
~vtkPVPlotTime();
double Time;
int TimeAxisMode;
private:
vtkPVPlotTime(const vtkPVPlotTime&); // Not implemented
void operator=(const vtkPVPlotTime&); // Not implemented
//ETX
};
#endif
|