VTK  9.4.20241202
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
20
21//------------------------------------------------------------------------------
23{
24const std::string pointIds = "pointIds";
25const std::string pointData = "pointData";
26};
27
28//------------------------------------------------------------------------------
36{
37 vtkNew<vtkPolyData> SourceOutput;
38 int StartData = 0;
39 bool GenerateGhosts = false;
40
41public:
44
46 ~vtkStaticDataSource() override = default;
47
48 vtkSetMacro(StartData, int);
49
50 vtkSetMacro(GenerateGhosts, bool);
51
53
55 vtkInformation*, vtkInformationVector**, vtkInformationVector* outputVector) override;
56
57 // mark polydata points as modified
59};
60
61//------------------------------------------------------------------------------
67{
71
72public:
75
77 ~vtkStaticCompositeSource() override = default;
78
80 vtkInformation*, vtkInformationVector**, vtkInformationVector* outputVector) override;
81
86 void SetStartData(int start);
87
92};
93
94//------------------------------------------------------------------------------
100{
101public:
104
106 vtkInformationVector* outputVector) override;
107
112};
113
114VTK_ABI_NAMESPACE_END
115
116#endif
abstract superclass for composite (multi-block or AMR) datasets
Simple filter that will be our cache consummer.
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 ouptut data as composite dataset.
vtkDataObjectMeshCache is a class to store and reuse the mesh of a vtkDataSet, while forwarding data ...
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Allocate and hold a VTK object.
Definition vtkNew.h:167
Superclass for algorithms that produce vtkPartitionedDataSetCollectionAlgorithm.
Composite dataset that groups datasets as a collection.
Superclass for algorithms that produce output of the same type as input.
Superclass for algorithms that produce only polydata as output.
Simple source that create a composite (PartitionedDataSetCollection) of 2 polydata.
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
Simple source that create a polydata (triangle) with point data arrays:
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