VTK  9.2.6
vtkStringToCategory.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkStringToCategory.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 =========================================================================*/
15 /*-------------------------------------------------------------------------
16  Copyright 2008 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
42 #ifndef vtkStringToCategory_h
43 #define vtkStringToCategory_h
44 
45 #include "vtkDataObjectAlgorithm.h"
46 #include "vtkInfovisCoreModule.h" // For export macro
47 
48 class VTKINFOVISCORE_EXPORT vtkStringToCategory : public vtkDataObjectAlgorithm
49 {
50 public:
51  static vtkStringToCategory* New();
53  void PrintSelf(ostream& os, vtkIndent indent) override;
54 
56 
59  vtkSetStringMacro(CategoryArrayName);
60  vtkGetStringMacro(CategoryArrayName);
62 
67  vtkInformationVector* outputVector) override;
68 
69 protected:
71  ~vtkStringToCategory() override;
72 
76  int RequestDataObject(vtkInformation* request, vtkInformationVector** inputVector,
77  vtkInformationVector* outputVector) override;
78 
80 
82 
84 
85 private:
87  void operator=(const vtkStringToCategory&) = delete;
88 };
89 
90 #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:69
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:39
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.