VTK
vtkPBGLVertexColoring.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPBGLVertexColoring.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 -------------------------------------------------------------------------*/
35 #ifndef vtkPBGLVertexColoring_h
36 #define vtkPBGLVertexColoring_h
37 
38 #include "vtkInfovisParallelModule.h" // For export macro
39 #include "vtkStdString.h" // For string type
40 #include "vtkVariant.h" // For variant type
41 
42 #include "vtkGraphAlgorithm.h"
43 
44 class vtkSelection;
45 
46 #if !defined(VTK_LEGACY_REMOVE)
47 class VTKINFOVISPARALLEL_EXPORT vtkPBGLVertexColoring : public vtkGraphAlgorithm
48 {
49 public:
50  static vtkPBGLVertexColoring *New();
52  void PrintSelf(ostream& os, vtkIndent indent);
53 
55 
57  vtkSetMacro(BlockSize,vtkIdType);
59 
61 
62  vtkGetMacro(BlockSize,vtkIdType);
64 
66 
69  vtkSetStringMacro(ColorArrayName);
71 
72 protected:
75 
76  virtual int RequestData(
80 
81  virtual int FillInputPortInformation(
82  int port, vtkInformation* info);
83 
84  virtual int FillOutputPortInformation(
85  int port, vtkInformation* info);
86 
87 private:
88 
89  vtkIdType BlockSize;
90  char* ColorArrayName;
91 
92  vtkPBGLVertexColoring(const vtkPBGLVertexColoring&); // Not implemented.
93  void operator=(const vtkPBGLVertexColoring&); // Not implemented.
94 };
95 
96 #endif //VTK_LEGACY_REMOVE
97 #endif
static vtkGraphAlgorithm * New()
Store vtkAlgorithm input/output information.
A node in a selection tree. Used to store selection results.
Definition: vtkSelection.h:44
int vtkIdType
Definition: vtkType.h:275
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Superclass for algorithms that produce only graph as output.
a simple class to control print indentation
Definition: vtkIndent.h:38
void PrintSelf(ostream &os, vtkIndent indent)
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Store zero or more vtkInformation instances.
virtual int FillInputPortInformation(int port, vtkInformation *info)
Compute a vertex coloring for a distributed, undirected vtkGraph, where each vertex has a color disti...