VTK  9.1.0
vtkForceTime.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkForceTime.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm 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=========================================================================*/
15
16#ifndef vtkForceTime_h
17#define vtkForceTime_h
18
19#include "vtkFiltersHybridModule.h" // For export macro
21
22class VTKFILTERSHYBRID_EXPORT vtkForceTime : public vtkPassInputTypeAlgorithm
23{
24public:
25 static vtkForceTime* New();
27 void PrintSelf(ostream& os, vtkIndent indent) override;
28
29 // Description:
30 // Replace the pipeline time by this one.
31 vtkSetMacro(ForcedTime, double);
32 vtkGetMacro(ForcedTime, double);
33
34 // Description:
35 // Use the ForcedTime. If disabled, use usual pipeline time.
36 vtkSetMacro(IgnorePipelineTime, bool);
37 vtkGetMacro(IgnorePipelineTime, bool);
38 vtkBooleanMacro(IgnorePipelineTime, bool);
39
40protected:
42 ~vtkForceTime() override;
43
46
48
49private:
50 vtkForceTime(const vtkForceTime&) = delete;
51 void operator=(const vtkForceTime&) = delete;
52
53 double ForcedTime;
54 bool IgnorePipelineTime;
55 double PipelineTime;
56 bool PipelineTimeFlag;
57 vtkDataObject* Cache;
58};
59
60#endif // vtkForceTime_h
general representation of visualization data
static vtkForceTime * New()
~vtkForceTime() override
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when each filter in the pipeline decides what portion of its inp...
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks for Information.
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce output of the same type as input.