VTK  9.3.1
vtkStringToCategory.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
26 #ifndef vtkStringToCategory_h
27 #define vtkStringToCategory_h
28 
29 #include "vtkDataObjectAlgorithm.h"
30 #include "vtkInfovisCoreModule.h" // For export macro
31 
32 VTK_ABI_NAMESPACE_BEGIN
33 class VTKINFOVISCORE_EXPORT vtkStringToCategory : public vtkDataObjectAlgorithm
34 {
35 public:
36  static vtkStringToCategory* New();
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
41 
44  vtkSetStringMacro(CategoryArrayName);
45  vtkGetStringMacro(CategoryArrayName);
47 
52  vtkInformationVector* outputVector) override;
53 
54 protected:
56  ~vtkStringToCategory() override;
57 
61  int RequestDataObject(vtkInformation* request, vtkInformationVector** inputVector,
62  vtkInformationVector* outputVector) override;
63 
65 
67 
69 
70 private:
72  void operator=(const vtkStringToCategory&) = delete;
73 };
74 
75 VTK_ABI_NAMESPACE_END
76 #endif
virtual int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Store vtkAlgorithm input/output information.
static vtkDataObjectAlgorithm * New()
vtkTypeBool ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
see vtkAlgorithm for details
Creates a category array from a string array.
int vtkTypeBool
Definition: vtkABI.h:64
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
a simple class to control print indentation
Definition: vtkIndent.h:28
Superclass for algorithms that produce only data object as output.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.