VTK  9.3.20240419
vtkTableToSparseArray.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
4 
35 #ifndef vtkTableToSparseArray_h
36 #define vtkTableToSparseArray_h
37 
38 #include "vtkArrayDataAlgorithm.h"
39 #include "vtkInfovisCoreModule.h" // For export macro
40 
41 VTK_ABI_NAMESPACE_BEGIN
42 class vtkArrayExtents;
43 
44 class VTKINFOVISCORE_EXPORT vtkTableToSparseArray : public vtkArrayDataAlgorithm
45 {
46 public:
49  void PrintSelf(ostream& os, vtkIndent indent) override;
50 
52 
57  void AddCoordinateColumn(const char* name);
59 
61 
64  void SetValueColumn(const char* name);
65  const char* GetValueColumn();
67 
69 
73  void SetOutputExtents(const vtkArrayExtents& extents);
75 
76 protected:
79 
81 
83 
84 private:
86  void operator=(const vtkTableToSparseArray&) = delete;
87 
88  class implementation;
89  implementation* const Implementation;
90 };
91 
92 VTK_ABI_NAMESPACE_END
93 #endif
Superclass for algorithms that produce vtkArrayDatas as output.
Stores the number of dimensions and valid coordinate ranges along each dimension for vtkArray.
a simple class to control print indentation
Definition: vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
converts a vtkTable into a sparse array.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
const char * GetValueColumn()
Specify the input table column that will be mapped to values in the output array.
void AddCoordinateColumn(const char *name)
Specify the set of input table columns that will be mapped to coordinates in the output sparse array.
int FillInputPortInformation(int, vtkInformation *) override
Fill the input port information objects for this algorithm.
~vtkTableToSparseArray() override
static vtkTableToSparseArray * New()
void SetValueColumn(const char *name)
Specify the input table column that will be mapped to values in the output array.
void SetOutputExtents(const vtkArrayExtents &extents)
Explicitly specify the extents of the output array.
void ClearCoordinateColumns()
Specify the set of input table columns that will be mapped to coordinates in the output sparse array.
void ClearOutputExtents()
Explicitly specify the extents of the output array.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
@ name
Definition: vtkX3D.h:219