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
50
51class VTKINFOVISCORE_EXPORT vtkStringToCategory : public vtkDataObjectAlgorithm
52{
53public:
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
73protected:
76
80 virtual int RequestDataObject(vtkInformation* request,
81 vtkInformationVector** inputVector,
82 vtkInformationVector* outputVector);
83
88
90
92
93private:
94 vtkStringToCategory(const vtkStringToCategory&) VTK_DELETE_FUNCTION;
95 void operator=(const vtkStringToCategory&) VTK_DELETE_FUNCTION;
96};
97
98#endif
99
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.
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is required to capture REQUEST_DATA_OBJECT requests.
virtual int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Creates the same output type as the input type.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
static vtkStringToCategory * New()
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.