VTK
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 -------------------------------------------------------------------------*/
39 #ifndef vtkStringToCategory_h
40 #define vtkStringToCategory_h
41 
42 #include "vtkInfovisCoreModule.h" // For export macro
43 #include "vtkDataObjectAlgorithm.h"
44 
45 class VTKINFOVISCORE_EXPORT vtkStringToCategory : public vtkDataObjectAlgorithm
46 {
47 public:
48  static vtkStringToCategory* New();
50  void PrintSelf(ostream& os, vtkIndent indent) override;
51 
53 
56  vtkSetStringMacro(CategoryArrayName);
57  vtkGetStringMacro(CategoryArrayName);
59 
63  int ProcessRequest(vtkInformation* request,
64  vtkInformationVector** inputVector,
65  vtkInformationVector* outputVector) override;
66 
67 protected:
69  ~vtkStringToCategory() override;
70 
74  int RequestDataObject(vtkInformation* request,
75  vtkInformationVector** inputVector,
76  vtkInformationVector* outputVector) override;
77 
78  int RequestData(
81  vtkInformationVector*) override;
82 
84 
86 
87 private:
89  void operator=(const vtkStringToCategory&) = delete;
90 };
91 
92 #endif
93 
virtual int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Store vtkAlgorithm input/output information.
static vtkDataObjectAlgorithm * New()
Creates a category array from a string array.
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:33
int ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
see vtkAlgorithm for details
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.