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 class VTKINFOVISPARALLEL_EXPORT vtkPBGLVertexColoring : public vtkGraphAlgorithm
45 {
46 public:
47  static vtkPBGLVertexColoring *New();
49  void PrintSelf(ostream& os, vtkIndent indent);
50 
52 
54  vtkSetMacro(BlockSize,vtkIdType);
56 
58 
59  vtkGetMacro(BlockSize,vtkIdType);
61 
63 
66  vtkSetStringMacro(ColorArrayName);
68 
69 protected:
72 
73  virtual int RequestData(
77 
78  virtual int FillInputPortInformation(
79  int port, vtkInformation* info);
80 
81  virtual int FillOutputPortInformation(
82  int port, vtkInformation* info);
83 
84 private:
85 
86  vtkIdType BlockSize;
87  char* ColorArrayName;
88 
89  vtkPBGLVertexColoring(const vtkPBGLVertexColoring&); // Not implemented.
90  void operator=(const vtkPBGLVertexColoring&); // Not implemented.
91 };
92 
93 #endif
static vtkGraphAlgorithm * New()
Store vtkAlgorithm input/output information.
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:83
A node in a selection tree. Used to store selection results.
Definition: vtkSelection.h:44
int vtkIdType
Definition: vtkType.h:268
virtual int FillOutputPortInformation(int port, vtkInformation *info)
#define vtkSetStringMacro(name)
Definition: vtkSetGet.h:94
Superclass for algorithms that produce only graph as output.
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:619
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...
#define vtkSetMacro(name, type)
Definition: vtkSetGet.h:69