VTK
dox/Infovis/Core/vtkStringToCategory.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkStringToCategory.h
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00015 /*-------------------------------------------------------------------------
00016   Copyright 2008 Sandia Corporation.
00017   Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
00018   the U.S. Government retains certain rights in this software.
00019 -------------------------------------------------------------------------*/
00044 #ifndef __vtkStringToCategory_h
00045 #define __vtkStringToCategory_h
00046 
00047 #include "vtkInfovisCoreModule.h" // For export macro
00048 #include "vtkDataObjectAlgorithm.h"
00049 
00050 class VTKINFOVISCORE_EXPORT vtkStringToCategory : public vtkDataObjectAlgorithm
00051 {
00052 public:
00053   static vtkStringToCategory* New();
00054   vtkTypeMacro(vtkStringToCategory,vtkDataObjectAlgorithm);
00055   void PrintSelf(ostream& os, vtkIndent indent);
00056 
00058 
00059   vtkSetStringMacro(CategoryArrayName);
00060   vtkGetStringMacro(CategoryArrayName);
00062 
00064 
00065   virtual int ProcessRequest(vtkInformation* request,
00066                              vtkInformationVector** inputVector,
00067                              vtkInformationVector* outputVector);
00069 
00070 protected:
00071   vtkStringToCategory();
00072   ~vtkStringToCategory();
00073 
00075 
00076   virtual int RequestDataObject(vtkInformation* request,
00077                                 vtkInformationVector** inputVector,
00078                                 vtkInformationVector* outputVector);
00080 
00081   int RequestData(
00082     vtkInformation*,
00083     vtkInformationVector**,
00084     vtkInformationVector*);
00085 
00086   virtual int FillOutputPortInformation(int port, vtkInformation* info);
00087 
00088   char *CategoryArrayName;
00089 
00090 private:
00091   vtkStringToCategory(const vtkStringToCategory&); // Not implemented
00092   void operator=(const vtkStringToCategory&);   // Not implemented
00093 };
00094 
00095 #endif
00096