TTK
Loading...
Searching...
No Matches
ttkBlockAggregator.h
Go to the documentation of this file.
1
38
39#pragma once
40
41// VTK Module
42#include <ttkBlockAggregatorModule.h>
43
44// VTK Includes
45#include <ttkAlgorithm.h>
46#include <vtkSmartPointer.h>
47
48class vtkMultiBlockDataSet;
49
50class TTKBLOCKAGGREGATOR_EXPORT ttkBlockAggregator : public ttkAlgorithm {
51private:
52 bool ForceReset{false};
53 bool FlattenInput{true};
54 vtkSmartPointer<vtkMultiBlockDataSet> AggregatedMultiBlockDataSet;
55
56public:
57 vtkSetMacro(ForceReset, bool);
58 vtkGetMacro(ForceReset, bool);
59 vtkSetMacro(FlattenInput, bool);
60 vtkGetMacro(FlattenInput, bool);
61
64
65 int Reset();
66
67protected:
70
71 int FillInputPortInformation(int port, vtkInformation *info) override;
72 int FillOutputPortInformation(int port, vtkInformation *info) override;
73 int RequestData(vtkInformation *request,
74 vtkInformationVector **inputVector,
75 vtkInformationVector *outputVector) override;
76 int AggregateBlock(vtkDataObject *dataObject);
77};
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