VTK  9.3.20240327
vtkGraphToPolyData.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3 // SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
74 #ifndef vtkGraphToPolyData_h
75 #define vtkGraphToPolyData_h
76 
77 #include "vtkFiltersSourcesModule.h" // For export macro
78 #include "vtkPolyDataAlgorithm.h"
79 
80 VTK_ABI_NAMESPACE_BEGIN
81 class VTKFILTERSSOURCES_EXPORT vtkGraphToPolyData : public vtkPolyDataAlgorithm
82 {
83 public:
86  void PrintSelf(ostream& os, vtkIndent indent) override;
87 
89 
97  vtkSetMacro(EdgeGlyphOutput, bool);
98  vtkGetMacro(EdgeGlyphOutput, bool);
99  vtkBooleanMacro(EdgeGlyphOutput, bool);
101 
103 
110  vtkSetMacro(EdgeGlyphPosition, double);
111  vtkGetMacro(EdgeGlyphPosition, double);
113 
114 protected:
116  ~vtkGraphToPolyData() override = default;
117 
120  bool ArcEdges;
122 
127 
132 
133 private:
134  vtkGraphToPolyData(const vtkGraphToPolyData&) = delete;
135  void operator=(const vtkGraphToPolyData&) = delete;
136 };
137 
138 VTK_ABI_NAMESPACE_END
139 #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:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
int vtkIdType
Definition: vtkType.h:315