vtkTimeToTextConvertor.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkTimeToTextConvertor.h
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 =========================================================================*/
25 #ifndef vtkTimeToTextConvertor_h
26 #define vtkTimeToTextConvertor_h
27 
28 #include "vtkPVVTKExtensionsFiltersGeneralModule.h" //needed for exports
29 #include "vtkTableAlgorithm.h"
30 
32 {
33 public:
34  static vtkTimeToTextConvertor* New();
36  void PrintSelf(ostream& os, vtkIndent indent) override;
37 
39 
44  vtkSetStringMacro(Format);
45  vtkGetStringMacro(Format);
47 
49 
52  vtkSetMacro(Shift, double);
53  vtkGetMacro(Shift, double);
55 
57 
60  vtkSetMacro(Scale, double);
61  vtkGetMacro(Scale, double);
63 
64 protected:
66  ~vtkTimeToTextConvertor() override;
67 
68  int FillInputPortInformation(int port, vtkInformation* info) override;
69  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
70  vtkInformationVector* outputVector) override;
71 
72  int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
73  vtkInformationVector* outputVector) override;
74 
75  char* Format;
76  double Shift;
77  double Scale;
78 
79 private:
81  void operator=(const vtkTimeToTextConvertor&) = delete;
82 };
83 
84 #endif
static vtkTableAlgorithm * New()
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
virtual int FillInputPortInformation(int port, vtkInformation *info)
#define VTKPVVTKEXTENSIONSFILTERSGENERAL_EXPORT
This filter can be attached to any filter/source/reader that supports time.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
void operator=(const vtkObjectBase &)