VTK  9.4.20250310
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
12VTK_ABI_NAMESPACE_BEGIN
13class vtkDataSet;
15
29class VTKFILTERSTEMPORAL_EXPORT vtkForceStaticMesh : public vtkPassThrough
30{
31public:
34 void PrintSelf(ostream& os, vtkIndent indent) override;
35
37
41 vtkSetMacro(ForceCacheComputation, bool);
42 vtkGetMacro(ForceCacheComputation, bool);
43 vtkBooleanMacro(ForceCacheComputation, bool);
45
46protected:
47 vtkForceStaticMesh() = default;
48 ~vtkForceStaticMesh() override = default;
49
50 int FillInputPortInformation(int port, vtkInformation* info) override;
52
53private:
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
84VTK_ABI_NAMESPACE_END
85#endif
abstract superclass for composite (multi-block or AMR) datasets
abstract class to specify dataset behavior
Definition vtkDataSet.h:165
Takes in input as a cache the first time it is executed then use it as a static mesh.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
static vtkForceStaticMesh * New()
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.
vtkForceStaticMesh()=default
~vtkForceStaticMesh() override=default
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Pass input input data through to the output.
Hold a reference to a vtkObjectBase instance.