VTK: Infovis/Core/vtkDataObjectToTable.h Source File

| VTK 9.3.1

vtkDataObjectToTable.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3 // SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
13 #ifndef vtkDataObjectToTable_h
14 #define vtkDataObjectToTable_h
15
16 #include "vtkDeprecation.h" // For deprecation macros
17 #include "vtkInfovisCoreModule.h" // For export macro
18 #include "vtkTableAlgorithm.h"
19
20 VTK_ABI_NAMESPACE_BEGIN
21 class VTK_DEPRECATED_IN_9_3_0("Use vtkAttributeDataToTableFilter instead of vtkDataObjectToTable.")
22 VTKINFOVISCORE_EXPORT vtkDataObjectToTable : public vtkTableAlgorithm
23 {
24 public:
25 static vtkDataObjectToTable* New();
26 vtkTypeMacro(vtkDataObjectToTable, vtkTableAlgorithm);
27 void PrintSelf(ostream& os, vtkIndent indent) override;
28
29 enum
30 {
31 FIELD_DATA = 0,
32 POINT_DATA = 1,
33 CELL_DATA = 2,
34 VERTEX_DATA = 3,
35 EDGE_DATA = 4
36 };
37
39
43 vtkGetMacro(FieldType, int);
44 vtkSetClampMacro(FieldType, int, 0, 4);
46
47 protected:
48 vtkDataObjectToTable();
49 ~vtkDataObjectToTable() override;
50
51 int FillInputPortInformation(int port, vtkInformation* info) override;
52
53 int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
54
55 int FieldType;
56
57 private:
58 vtkDataObjectToTable(const vtkDataObjectToTable&) = delete;
59 void operator=(const vtkDataObjectToTable&) = delete;
60 };
61
62 VTK_ABI_NAMESPACE_END
63 #endif
vtkAttributeDataToTableFilter
this filter produces a vtkTable from the chosen attribute in the input data object.
Definition: vtkAttributeDataToTableFilter.h:33
vtkDataObjectToTable
extract field data as a table
Definition: vtkDataObjectToTable.h:23
vtkDataObjectToTable::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkDataObjectToTable::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkDataObjectToTable::New
static vtkDataObjectToTable * New()
vtkDataObjectToTable::vtkDataObjectToTable
vtkDataObjectToTable()
vtkDataObjectToTable::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkDataObjectToTable::FieldType
int FieldType
Definition: vtkDataObjectToTable.h:55
vtkDataObjectToTable::~vtkDataObjectToTable
~vtkDataObjectToTable() override
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:40
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkTableAlgorithm
Superclass for algorithms that produce only vtkTables as output.
Definition: vtkTableAlgorithm.h:37
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkDeprecation.h
VTK_DEPRECATED_IN_9_3_0
#define VTK_DEPRECATED_IN_9_3_0(reason)
Definition: vtkDeprecation.h:99
vtkTableAlgorithm.h