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:
56  void PrintSelf(ostream& os, vtkIndent indent) override;
57 
59 
62  vtkSetStringMacro(CategoryArrayName);
63  vtkGetStringMacro(CategoryArrayName);
65 
70  vtkInformationVector** inputVector,
71  vtkInformationVector* outputVector) override;
72 
73 protected:
76 
81  vtkInformationVector** inputVector,
82  vtkInformationVector* outputVector) override;
83 
87  vtkInformationVector*) override;
88 
90 
92 
93 private:
95  void operator=(const vtkStringToCategory&) = delete;
96 };
97 
98 #endif
99 
vtkStringToCategory::FillOutputPortInformation
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
vtkStringToCategory::ProcessRequest
int ProcessRequest(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is required to capture REQUEST_DATA_OBJECT requests.
vtkStringToCategory::CategoryArrayName
char * CategoryArrayName
Definition: vtkStringToCategory.h:91
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkStringToCategory::New
static vtkStringToCategory * New()
vtkDataObjectAlgorithm
Superclass for algorithms that produce only data object as output.
Definition: vtkDataObjectAlgorithm.h:44
vtkStringToCategory::vtkStringToCategory
vtkStringToCategory()
vtkStringToCategory::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkStringToCategory::~vtkStringToCategory
~vtkStringToCategory() override
vtkStringToCategory::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkDataObjectAlgorithm.h
vtkStringToCategory
Creates a category array from a string array.
Definition: vtkStringToCategory.h:52
vtkStringToCategory::RequestDataObject
int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Creates the same output type as the input type.