VTK  9.1.0
vtkFieldDataToAttributeDataFilter.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkFieldDataToAttributeDataFilter.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
64#ifndef vtkFieldDataToAttributeDataFilter_h
65#define vtkFieldDataToAttributeDataFilter_h
66
67#include "vtkDataSetAlgorithm.h"
68#include "vtkFiltersCoreModule.h" // For export macro
69
70#define VTK_DATA_OBJECT_FIELD 0
71#define VTK_POINT_DATA_FIELD 1
72#define VTK_CELL_DATA_FIELD 2
73
74#define VTK_CELL_DATA 0
75#define VTK_POINT_DATA 1
76
77class vtkDataArray;
79class vtkFieldData;
80
81class VTKFILTERSCORE_EXPORT vtkFieldDataToAttributeDataFilter : public vtkDataSetAlgorithm
82{
83public:
84 void PrintSelf(ostream& os, vtkIndent indent) override;
86
92
94
100 vtkSetMacro(InputField, int);
101 vtkGetMacro(InputField, int);
104 void SetInputFieldToCellDataField() { this->SetInputField(VTK_CELL_DATA_FIELD); }
106
108
111 vtkSetMacro(OutputAttributeData, int);
112 vtkGetMacro(OutputAttributeData, int);
113 void SetOutputAttributeDataToCellData() { this->SetOutputAttributeData(VTK_CELL_DATA); }
114 void SetOutputAttributeDataToPointData() { this->SetOutputAttributeData(VTK_POINT_DATA); }
116
118
126 int comp, const char* arrayName, int arrayComp, int min, int max, int normalize);
127 void SetScalarComponent(int comp, const char* arrayName, int arrayComp)
128 {
129 this->SetScalarComponent(comp, arrayName, arrayComp, -1, -1, this->DefaultNormalize);
130 }
131 const char* GetScalarComponentArrayName(int comp);
137
139
147 int comp, const char* arrayName, int arrayComp, int min, int max, int normalize);
148 void SetVectorComponent(int comp, const char* arrayName, int arrayComp)
149 {
150 this->SetVectorComponent(comp, arrayName, arrayComp, -1, -1, this->DefaultNormalize);
151 }
152 const char* GetVectorComponentArrayName(int comp);
158
160
168 int comp, const char* arrayName, int arrayComp, int min, int max, int normalize);
169 void SetNormalComponent(int comp, const char* arrayName, int arrayComp)
170 {
171 this->SetNormalComponent(comp, arrayName, arrayComp, -1, -1, this->DefaultNormalize);
172 }
173 const char* GetNormalComponentArrayName(int comp);
177 int