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 -------------------------------------------------------------------------*/
45 #ifndef vtkStringToCategory_h
46 #define vtkStringToCategory_h
47 
48 #include "vtkInfovisCoreModule.h" // For export macro
49 #include "vtkDataObjectAlgorithm.h"
50 
51 class VTKINFOVISCORE_EXPORT vtkStringToCategory : public vtkDataObjectAlgorithm
52 {
53 public:
54  static vtkStringToCategory* New();
56  void PrintSelf(ostream& os, vtkIndent indent);
57 
59 
62  vtkSetStringMacro(CategoryArrayName);
63  vtkGetStringMacro(CategoryArrayName);
65 
69  virtual int ProcessRequest(vtkInformation* request,
70  vtkInformationVector** inputVector,
71  vtkInformationVector* outputVector);
72 
73 protected:
76 
80  virtual int RequestDataObject(vtkInformation* request,
81  vtkInformationVector** inputVector,
82  vtkInformationVector* outputVector);
83 
84  int RequestData(
88 
90 
92 
93 private:
94  vtkStringToCategory(const vtkStringToCategory&) VTK_DELETE_FUNCTION;
95  void operator=(const vtkStringToCategory&) VTK_DELETE_FUNCTION;
96 };
97 
98 #endif
99 
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:39
int ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
see vtkAlgorithm for details
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
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.