VTK
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 
22 class VTKFILTERSHYBRID_EXPORT vtkForceTime : public vtkPassInputTypeAlgorithm
23 {
24 public :
25  static vtkForceTime* New();
27  void PrintSelf(ostream& os, vtkIndent indent);
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 
40 protected:
41  vtkForceTime();
42  virtual ~vtkForceTime();
43 
50 
51  virtual int RequestData(vtkInformation*,
54 
55 private:
56  vtkForceTime(const vtkForceTime&) VTK_DELETE_FUNCTION;
57  void operator=(const vtkForceTime&) VTK_DELETE_FUNCTION;
58 
59  double ForcedTime;
60  bool IgnorePipelineTime;
61  double PipelineTime;
62  bool PipelineTimeFlag;
63  vtkDataObject* Cache;
64 };
65 
66 #endif //vtkForceTime_h
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks for Information.
Superclass for algorithms that produce output of the same type as input.
Store vtkAlgorithm input/output information.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when each filter in the pipeline decides what portion of its inp...
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Store zero or more vtkInformation instances.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
general representation of visualization data
Definition: vtkDataObject.h:64
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
static vtkPassInputTypeAlgorithm * New()