VTK
dox/Infovis/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 "vtkDataObjectAlgorithm.h"
00048 
00049 class VTK_INFOVIS_EXPORT vtkStringToCategory : public vtkDataObjectAlgorithm
00050 {
00051 public:
00052   static vtkStringToCategory* New();
00053   vtkTypeMacro(vtkStringToCategory,vtkDataObjectAlgorithm);
00054   void PrintSelf(ostream& os, vtkIndent indent);
00055 
00057 
00058   vtkSetStringMacro(CategoryArrayName);
00059   vtkGetStringMacro(CategoryArrayName);
00061 
00063 
00064   virtual int ProcessRequest(vtkInformation* request,
00065                              vtkInformationVector** inputVector,
00066                              vtkInformationVector* outputVector);
00068 
00069 protected:
00070   vtkStringToCategory();
00071   ~vtkStringToCategory();
00072 
00074 
00075   virtual int RequestDataObject(vtkInformation* request,
00076                                 vtkInformationVector** inputVector,
00077                                 vtkInformationVector* outputVector);
00079 
00080   int RequestData(
00081     vtkInformation*,
00082     vtkInformationVector**,
00083     vtkInformationVector*);
00084 
00085   virtual int FillOutputPortInformation(int port, vtkInformation* info);
00086 
00087   char *CategoryArrayName;
00088 
00089 private:
00090   vtkStringToCategory(const vtkStringToCategory&); // Not implemented
00091   void operator=(const vtkStringToCategory&);   // Not implemented
00092 };
00093 
00094 #endif
00095