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 -------------------------------------------------------------------------*/
44 #ifndef vtkStringToCategory_h
45 #define vtkStringToCategory_h
46 
47 #include "vtkInfovisCoreModule.h" // For export macro
48 #include "vtkDataObjectAlgorithm.h"
49 
51 {
52 public:
53  static vtkStringToCategory* New();
55  void PrintSelf(ostream& os, vtkIndent indent);
56 
58 
59  vtkSetStringMacro(CategoryArrayName);
60  vtkGetStringMacro(CategoryArrayName);
62 
64 
65  virtual int ProcessRequest(vtkInformation* request,
66  vtkInformationVector** inputVector,
67  vtkInformationVector* outputVector);
69 
70 protected:
73 
75 
76  virtual int RequestDataObject(vtkInformation* request,
77  vtkInformationVector** inputVector,
78  vtkInformationVector* outputVector);
80 
81  int RequestData(
85 
87 
89 
90 private:
91  vtkStringToCategory(const vtkStringToCategory&); // Not implemented
92  void operator=(const vtkStringToCategory&); // Not implemented
93 };
94 
95 #endif
96 
virtual int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Store vtkAlgorithm input/output information.
static vtkDataObjectAlgorithm * New()
Creates a category array from a string array.
void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKINFOVISCORE_EXPORT
Superclass for algorithms that produce only data object as output.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual int ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Store zero or more vtkInformation instances.
virtual int FillOutputPortInformation(int port, vtkInformation *info)