VTK  9.1.0
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 -------------------------------------------------------------------------*/
84 #ifndef vtkGraphToPolyData_h
85 #define vtkGraphToPolyData_h
86 
87 #include "vtkFiltersSourcesModule.h" // For export macro
88 #include "vtkPolyDataAlgorithm.h"
89 
90 class VTKFILTERSSOURCES_EXPORT vtkGraphToPolyData : public vtkPolyDataAlgorithm
91 {
92 public:
95  void PrintSelf(ostream& os, vtkIndent indent) override;
96 
98 
106  vtkSetMacro(EdgeGlyphOutput, bool);
107  vtkGetMacro(EdgeGlyphOutput, bool);
108  vtkBooleanMacro(EdgeGlyphOutput, bool);
110 
112 
119  vtkSetMacro(EdgeGlyphPosition, double);
120  vtkGetMacro(EdgeGlyphPosition, double);
122 
123 protected:
125  ~vtkGraphToPolyData() override = default;
126 
129  bool ArcEdges;
131 
136 
141 
142 private:
143  vtkGraphToPolyData(const vtkGraphToPolyData&) = delete;
144  void operator=(const vtkGraphToPolyData&) = delete;
145 };
146 
147 #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:113
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