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 -------------------------------------------------------------------------*/ 00040 #ifndef __vtkStringToCategory_h 00041 #define __vtkStringToCategory_h 00042 00043 #include "vtkDataObjectAlgorithm.h" 00044 00045 class VTK_INFOVIS_EXPORT vtkStringToCategory : public vtkDataObjectAlgorithm 00046 { 00047 public: 00048 static vtkStringToCategory* New(); 00049 vtkTypeMacro(vtkStringToCategory,vtkDataObjectAlgorithm); 00050 void PrintSelf(ostream& os, vtkIndent indent); 00051 00053 00054 vtkSetStringMacro(CategoryArrayName); 00055 vtkGetStringMacro(CategoryArrayName); 00057 00059 00060 virtual int ProcessRequest(vtkInformation* request, 00061 vtkInformationVector** inputVector, 00062 vtkInformationVector* outputVector); 00064 00065 protected: 00066 vtkStringToCategory(); 00067 ~vtkStringToCategory(); 00068 00070 00071 virtual int RequestDataObject(vtkInformation* request, 00072 vtkInformationVector** inputVector, 00073 vtkInformationVector* outputVector); 00075 00076 int RequestData( 00077 vtkInformation*, 00078 vtkInformationVector**, 00079 vtkInformationVector*); 00080 00081 char *CategoryArrayName; 00082 00083 private: 00084 vtkStringToCategory(const vtkStringToCategory&); // Not implemented 00085 void operator=(const vtkStringToCategory&); // Not implemented 00086 }; 00087 00088 #endif 00089