VTK  9.6.20260516
MeshCacheMockAlgorithms.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
3
4#ifndef MeshCacheMockAlgorithms_h
5#define MeshCacheMockAlgorithms_h
6
7#include "vtkNew.h"
11#include "vtkSetGet.h"
12
13#include <array>
14
15VTK_ABI_NAMESPACE_BEGIN
16
19
20//------------------------------------------------------------------------------
22{
23const std::string pointIds = "pointIds";
24const std::string pointData = "pointData";
25};
26
27//------------------------------------------------------------------------------
35{
36 vtkNew<vtkPolyData> SourceOutput;
37 int StartData = 0;
38 bool GenerateGhosts = false;
39
40public:
43
45 ~vtkStaticDataSource() override = default;
46
47 vtkSetMacro(StartData, int);
48
49 vtkSetMacro(GenerateGhosts, bool);
50
52
54 vtkInformation*, vtkInformationVector**, vtkInformationVector* outputVector) override;
55
56 // mark polydata points as modified
58};
59
60//------------------------------------------------------------------------------
92
93//------------------------------------------------------------------------------
112
113VTK_ABI_NAMESPACE_END
114
115#endif
abstract superclass for composite (multi-block or AMR) datasets
Simple filter that will be our cache consumer.
static vtkConsumerDataFilter * New()
int RequestData(vtkInformation *, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
vtkCompositeDataSet * GetCompositeOutput()
Get output data as composite dataset.
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Allocate and hold a VTK object.
Definition vtkNew.h:168
Composite dataset that groups datasets as a collection.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *outputVector) override
Methods for subclasses to override to handle different pipeline requests.
static vtkStaticCompositeSource * New()
void SetStartData(int start)
Forward to internal vtkStaticDataSource.
void MarkMeshModified()
Forward to internal vtkStaticDataSource to mark points as modified.
~vtkStaticCompositeSource() override=default
static vtkStaticDataSource * New()
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *outputVector) override
This is called by the superclass.
~vtkStaticDataSource() override=default
const std::string pointIds
const std::string pointData