VTK
/Users/kitware/Dashboards/MyTests/VTK_BLD_Release_docs/Utilities/Doxygen/dox/Infovis/Parallel/vtkPBGLVertexColoring.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkPBGLVertexColoring.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 -------------------------------------------------------------------------*/
00035 #ifndef vtkPBGLVertexColoring_h
00036 #define vtkPBGLVertexColoring_h
00037 
00038 #include "vtkInfovisParallelModule.h" // For export macro
00039 #include "vtkStdString.h" // For string type
00040 #include "vtkVariant.h" // For variant type
00041 
00042 #include "vtkGraphAlgorithm.h"
00043 
00044 class vtkSelection;
00045 
00046 #if !defined(VTK_LEGACY_REMOVE)
00047 class VTKINFOVISPARALLEL_EXPORT vtkPBGLVertexColoring : public vtkGraphAlgorithm
00048 {
00049 public:
00050   static vtkPBGLVertexColoring *New();
00051   vtkTypeMacro(vtkPBGLVertexColoring, vtkGraphAlgorithm);
00052   void PrintSelf(ostream& os, vtkIndent indent);
00053 
00055 
00057   vtkSetMacro(BlockSize,vtkIdType);
00059 
00061 
00062   vtkGetMacro(BlockSize,vtkIdType);
00064 
00066 
00069   vtkSetStringMacro(ColorArrayName);
00071 
00072 protected:
00073   vtkPBGLVertexColoring();
00074   ~vtkPBGLVertexColoring();
00075 
00076   virtual int RequestData(
00077     vtkInformation *,
00078     vtkInformationVector **,
00079     vtkInformationVector *);
00080 
00081   virtual int FillInputPortInformation(
00082     int port, vtkInformation* info);
00083 
00084   virtual int FillOutputPortInformation(
00085     int port, vtkInformation* info);
00086 
00087 private:
00088 
00089   vtkIdType BlockSize;
00090   char* ColorArrayName;
00091 
00092   vtkPBGLVertexColoring(const vtkPBGLVertexColoring&);  // Not implemented.
00093   void operator=(const vtkPBGLVertexColoring&);  // Not implemented.
00094 };
00095 
00096 #endif //VTK_LEGACY_REMOVE
00097 #endif