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 -------------------------------------------------------------------------*/
36 #ifndef vtkPBGLVertexColoring_h
37 #define vtkPBGLVertexColoring_h
38 
39 #include "vtkInfovisParallelModule.h" // For export macro
40 #include "vtkStdString.h" // For string type
41 #include "vtkVariant.h" // For variant type
42 
43 #include "vtkGraphAlgorithm.h"
44 
45 class vtkSelection;
46 
47 #if !defined(VTK_LEGACY_REMOVE)
48 class VTKINFOVISPARALLEL_EXPORT vtkPBGLVertexColoring : public vtkGraphAlgorithm
49 {
50 public:
51  static vtkPBGLVertexColoring *New();
53  void PrintSelf(ostream& os, vtkIndent indent);
54 
56 
61  vtkSetMacro(BlockSize,vtkIdType);
63 
65 
68  vtkGetMacro(BlockSize,vtkIdType);
70 
72 
77  vtkSetStringMacro(ColorArrayName);
79 
80 protected:
83 
84  virtual int RequestData(
88 
89  virtual int FillInputPortInformation(
90  int port, vtkInformation* info);
91 
92  virtual int FillOutputPortInformation(
93  int port, vtkInformation* info);
94 
95 private:
96 
97  vtkIdType BlockSize;
98  char* ColorArrayName;
99 
100  vtkPBGLVertexColoring(const vtkPBGLVertexColoring&) VTK_DELETE_FUNCTION;
101  void operator=(const vtkPBGLVertexColoring&) VTK_DELETE_FUNCTION;
102 };
103 
104 #endif //VTK_LEGACY_REMOVE
105 #endif
static vtkGraphAlgorithm * New()
Store vtkAlgorithm input/output information.
A node in a selection tree.
Definition: vtkSelection.h:43
int vtkIdType
Definition: vtkType.h:287
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:39
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...