VTK
vtkVertexDegree.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkVertexDegree.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 vtkVertexDegree_h
37 #define vtkVertexDegree_h
38 
39 #include "vtkInfovisCoreModule.h" // For export macro
40 #include "vtkGraphAlgorithm.h"
41 
42 class VTKINFOVISCORE_EXPORT vtkVertexDegree : public vtkGraphAlgorithm
43 {
44 public:
45  static vtkVertexDegree *New();
46 
48  void PrintSelf(ostream& os, vtkIndent indent);
49 
51 
55  vtkSetStringMacro(OutputArrayName);
57 
58 protected:
60  ~vtkVertexDegree();
61 
63 
64 private:
65 
66  char* OutputArrayName;
67 
68  vtkVertexDegree(const vtkVertexDegree&) VTK_DELETE_FUNCTION;
69  void operator=(const vtkVertexDegree&) VTK_DELETE_FUNCTION;
70 };
71 
72 #endif
73 
static vtkGraphAlgorithm * New()
Store vtkAlgorithm input/output information.
Adds an attribute array with the degree of each vertex.
Superclass for algorithms that produce only graph as output.
a simple class to control print indentation
Definition: vtkIndent.h:39
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
Store zero or more vtkInformation instances.