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:
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 
82  int port, vtkInformation* info);
83 
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
vtkStdString.h
vtkGraphAlgorithm
Superclass for algorithms that produce only graph as output.
Definition: vtkGraphAlgorithm.h:54
vtkVariant.h
vtkIdType
int vtkIdType
Definition: vtkType.h:275
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkPBGLVertexColoring::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkSelection
A node in a selection tree. Used to store selection results.
Definition: vtkSelection.h:45
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkPBGLVertexColoring::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
vtkGraphAlgorithm.h
vtkPBGLVertexColoring::~vtkPBGLVertexColoring
~vtkPBGLVertexColoring()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSetStringMacro
#define vtkSetStringMacro(name)
Definition: vtkSetGet.h:104
vtkPBGLVertexColoring::FillOutputPortInformation
virtual int FillOutputPortInformation(int port, vtkInformation *info)
vtkPBGLVertexColoring::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkPBGLVertexColoring::New
static vtkPBGLVertexColoring * New()
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkPBGLVertexColoring::vtkPBGLVertexColoring
vtkPBGLVertexColoring()
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkPBGLVertexColoring
Compute a vertex coloring for a distributed, undirected vtkGraph, where each vertex has a color disti...
Definition: vtkPBGLVertexColoring.h:48