TTK
Loading...
Searching...
No Matches
ttkBlockAggregator.h
Go to the documentation of this file.
1
32
33#pragma once
34
35// VTK Module
36#include <ttkBlockAggregatorModule.h>
37
38// VTK Includes
39#include <ttkAlgorithm.h>
40#include <vtkSmartPointer.h>
41
42class vtkMultiBlockDataSet;
43
44class TTKBLOCKAGGREGATOR_EXPORT ttkBlockAggregator : public ttkAlgorithm {
45private:
46 bool ForceReset{false};
47 bool FlattenInput{true};
48 vtkSmartPointer<vtkMultiBlockDataSet> AggregatedMultiBlockDataSet;
49
50public:
51 vtkSetMacro(ForceReset, bool);
52 vtkGetMacro(ForceReset, bool);
53 vtkSetMacro(FlattenInput, bool);
54 vtkGetMacro(FlattenInput, bool);
55
58
59 int Reset();
60
61protected:
64
65 int FillInputPortInformation(int port, vtkInformation *info) override;
66 int FillOutputPortInformation(int port, vtkInformation *info) override;
67 int RequestData(vtkInformation *request,
68 vtkInformationVector **inputVector,
69 vtkInformationVector *outputVector) override;
70 int AggregateBlock(vtkDataObject *dataObject);
71};
Baseclass of all VTK filters that wrap ttk modules.
virtual int RequestData(vtkInformation *ttkNotUsed(request), vtkInformationVector **ttkNotUsed(inputVectors), vtkInformationVector *ttkNotUsed(outputVector))
int FillInputPortInformation(int ttkNotUsed(port), vtkInformation *ttkNotUsed(info)) override
int FillOutputPortInformation(int ttkNotUsed(port), vtkInformation *ttkNotUsed(info)) override
TTK VTK-filter that appends every input vtkDataObject as a block to an output vtkMultiBlockDataSet.
static ttkBlockAggregator * New()
~ttkBlockAggregator() override