TTK
Loading...
Searching...
No Matches
ttkGridLayout.h
Go to the documentation of this file.
1
20
21#pragma once
22
23// VTK Module
24#include <ttkGridLayoutModule.h>
25
26// TTK includes
27#include <ttkAlgorithm.h>
28
29class TTKGRIDLAYOUT_EXPORT ttkGridLayout : public ttkAlgorithm {
30
31private:
32 int ColAxis{1};
33 int RowAxis{0};
34
35 double ColGap{0};
36 double RowGap{0};
37
38 int NumberOfRows{0};
39
40public:
41 static ttkGridLayout *New();
43
44 vtkSetMacro(ColAxis, int);
45 vtkGetMacro(ColAxis, int);
46
47 vtkSetMacro(RowAxis, int);
48 vtkGetMacro(RowAxis, int);
49
50 vtkSetMacro(ColGap, double);
51 vtkGetMacro(ColGap, double);
52
53 vtkSetMacro(RowGap, double);
54 vtkGetMacro(RowGap, double);
55
56 vtkSetMacro(NumberOfRows, int);
57 vtkGetMacro(NumberOfRows, int);
58
59protected:
61 ~ttkGridLayout() override;
62
63 int CopyObject(vtkDataObject *output, vtkDataObject *input);
64 int TranslateObject(vtkDataObject *input,
65 const size_t &colAxis,
66 const size_t &rowAxis,
67 const double &dw,
68 const double &dh);
69
70 int FillInputPortInformation(int port, vtkInformation *info) override;
71 int FillOutputPortInformation(int port, vtkInformation *info) override;
72
73 int RequestData(vtkInformation *request,
74 vtkInformationVector **inputVector,
75 vtkInformationVector *outputVector) override;
76};
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 arranges vtkDataSets on a grid.
~ttkGridLayout() override
static ttkGridLayout * New()