VTK  9.7.1
vtkForceStaticMesh.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-FileCopyrightText: Copyright (c) Kitware SAS
3 // SPDX-License-Identifier: BSD-3-Clause
4 
5 #ifndef vtkForceStaticMesh_h
6 #define vtkForceStaticMesh_h
7 
8 #include "vtkFiltersTemporalModule.h" // Export macro
9 #include "vtkPassThrough.h"
10 #include "vtkSmartPointer.h" // For internal field
11 
12 VTK_ABI_NAMESPACE_BEGIN
13 class vtkDataSet;
15 
29 class VTKFILTERSTEMPORAL_EXPORT vtkForceStaticMesh : public vtkPassThrough
30 {
31 public:
32  static vtkForceStaticMesh* New();
34  void PrintSelf(ostream& os, vtkIndent indent) override;
35 
37 
41  vtkSetMacro(ForceCacheComputation, bool);
42  vtkGetMacro(ForceCacheComputation, bool);
43  vtkBooleanMacro(ForceCacheComputation, bool);
45 
46 protected:
47  vtkForceStaticMesh() = default;
48  ~vtkForceStaticMesh() override = default;
49 
52 
53 private:
54  vtkForceStaticMesh(const vtkForceStaticMesh&) = delete;
55  void operator=(const vtkForceStaticMesh&) = delete;
56 
57  // Utility
58 
60 
66  bool IsValidCache(vtkDataSet* input);
67  bool IsValidCache(vtkCompositeDataSet* input);
69 
71 
74  void InputToCache(vtkDataSet* input);
75  void InputToCache(vtkCompositeDataSet* input);
77 
78  // Fields
79  bool ForceCacheComputation = false;
80  bool CacheInitialized = false;
82 };
83 
84 VTK_ABI_NAMESPACE_END
85 #endif
Takes in input as a cache the first time it is executed then use it as a static mesh.
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:56
Pass input input data through to the output.
int FillInputPortInformation(int port, vtkInformation *info) override
Specify the first input port as optional.
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.
abstract superclass for composite (multi-block or AMR) datasets
a simple class to control print indentation
Definition: vtkIndent.h:28
static vtkPassThrough * New()
Store zero or more vtkInformation instances.