VTK  9.2.5
vtkGraphToPolyData.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGraphToPolyData.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 -------------------------------------------------------------------------*/
90 #ifndef vtkGraphToPolyData_h
91 #define vtkGraphToPolyData_h
92 
93 #include "vtkFiltersSourcesModule.h" // For export macro
94 #include "vtkPolyDataAlgorithm.h"
95 
96 class VTKFILTERSSOURCES_EXPORT vtkGraphToPolyData : public vtkPolyDataAlgorithm
97 {
98 public:
101  void PrintSelf(ostream& os, vtkIndent indent) override;
102 
104 
112  vtkSetMacro(EdgeGlyphOutput, bool);
113  vtkGetMacro(EdgeGlyphOutput, bool);
114  vtkBooleanMacro(EdgeGlyphOutput, bool);
116 
118 
125  vtkSetMacro(EdgeGlyphPosition, double);
126  vtkGetMacro(EdgeGlyphPosition, double);
128 
129 protected:
131  ~vtkGraphToPolyData() override = default;
132 
135  bool ArcEdges;
137 
142 
147 
148 private:
149  vtkGraphToPolyData(const vtkGraphToPolyData&) = delete;
150  void operator=(const vtkGraphToPolyData&) = delete;
151 };
152 
153 #endif
convert a vtkGraph to vtkPolyData
vtkIdType NumberOfArcSubdivisions
int FillInputPortInformation(int port, vtkInformation *info) override
Set the input type of the algorithm to vtkGraph.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Convert the vtkGraph into vtkPolyData.
static vtkGraphToPolyData * New()
~vtkGraphToPolyData() override=default
a simple class to control print indentation
Definition: vtkIndent.h:119
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453
int vtkIdType
Definition: vtkType.h:332