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
vtkStdString.h
vtkGraphAlgorithm
Superclass for algorithms that produce only graph as output.
Definition: vtkGraphAlgorithm.h:54
vtkVariant.h
vtkIdType
int vtkIdType
Definition: vtkType.h:287
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkSelection
A node in a selection tree. Used to store selection results.
Definition: vtkSelection.h:43
vtkGraphAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkGraphAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkGraphAlgorithm.h
vtkGraphAlgorithm::FillOutputPortInformation
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkGraphAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkPBGLVertexColoring
Compute a vertex coloring for a distributed, undirected vtkGraph, where each vertex has a color disti...
Definition: vtkPBGLVertexColoring.h:48
vtkGraphAlgorithm::New
static vtkGraphAlgorithm * New()