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
46#include "vtkInfovisCoreModule.h" // For export macro
47
48class VTKINFOVISCORE_EXPORT vtkStringToCategory : public vtkDataObjectAlgorithm
49{
50public:
53 void PrintSelf(ostream& os, vtkIndent indent) override;
54
56
59 vtkSetStringMacro(CategoryArrayName);
60 vtkGetStringMacro(CategoryArrayName);
62
67 vtkInformationVector* outputVector) override;
68
69protected:
72
77 vtkInformationVector* outputVector) override;
78
80
81 int FillOutputPortInformation(int port, vtkInformation* info) override;
82
84
85private:
87 void operator=(const vtkStringToCategory&) = delete;
88};
89
90#endif
Superclass for algorithms that produce only data object as output.
a simple class to control print indentation
Definition vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Creates a category array from a string array.
~vtkStringToCategory() override
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
vtkTypeBool ProcessRequest(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is required to capture REQUEST_DATA_OBJECT requests.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Creates the same output type as the input type.
static vtkStringToCategory * New()
int vtkTypeBool
Definition vtkABI.h:69