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 -------------------------------------------------------------------------*/
33 #ifndef vtkPBGLVertexColoring_h
34 #define vtkPBGLVertexColoring_h
35 
36 #include "vtkInfovisParallelModule.h" // For export macro
37 #include "vtkStdString.h" // For string type
38 #include "vtkVariant.h" // For variant type
39 
40 #include "vtkGraphAlgorithm.h"
41 
42 class vtkSelection;
43 
44 #if !defined(VTK_LEGACY_REMOVE)
45 class VTKINFOVISPARALLEL_EXPORT vtkPBGLVertexColoring : public vtkGraphAlgorithm
46 {
47 public:
48  static vtkPBGLVertexColoring *New();
50  void PrintSelf(ostream& os, vtkIndent indent);
51 
53 
58  vtkSetMacro(BlockSize,vtkIdType);
60 
62 
65  vtkGetMacro(BlockSize,vtkIdType);
67 
69 
74  vtkSetStringMacro(ColorArrayName);
76 
77 protected:
80 
81  virtual int RequestData(
85 
86  virtual int FillInputPortInformation(
87  int port, vtkInformation* info);
88 
89  virtual int FillOutputPortInformation(
90  int port, vtkInformation* info);
91 
92 private:
93 
94  vtkIdType BlockSize;
95  char* ColorArrayName;
96 
97  vtkPBGLVertexColoring(const vtkPBGLVertexColoring&) VTK_DELETE_FUNCTION;
98  void operator=(const vtkPBGLVertexColoring&) VTK_DELETE_FUNCTION;
99 };
100 
101 #endif //VTK_LEGACY_REMOVE
102 #endif
static vtkGraphAlgorithm * New()
Store vtkAlgorithm input/output information.
A node in a selection tree.
Definition: vtkSelection.h:37
int vtkIdType
Definition: vtkType.h:345
Superclass for algorithms that produce only graph as output.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
a simple class to control print indentation
Definition: vtkIndent.h:33
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
Store zero or more vtkInformation instances.
Compute a vertex coloring for a distributed, undirected vtkGraph, where each vertex has a color disti...