VTK  9.3.20240327
vtkKCoreLayout.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-FileCopyrightText: Copyright (c) Sandia Corporation
3 // SPDX-License-Identifier: BSD-3-Clause
41 #ifndef vtkKCoreLayout_h
42 #define vtkKCoreLayout_h
43 
44 #include "vtkGraphAlgorithm.h"
45 #include "vtkInfovisLayoutModule.h" // For export macro
46 
47 VTK_ABI_NAMESPACE_BEGIN
48 class VTKINFOVISLAYOUT_EXPORT vtkKCoreLayout : public vtkGraphAlgorithm
49 {
50 public:
51  static vtkKCoreLayout* New();
53  void PrintSelf(ostream& os, vtkIndent indent) override;
54 
57 
59  ~vtkKCoreLayout() override;
60 
62 
64 
68  vtkSetStringMacro(KCoreLabelArrayName);
70 
72 
77  vtkGetMacro(Polar, bool);
78  vtkSetMacro(Polar, bool);
79  vtkBooleanMacro(Polar, bool);
81 
83 
88  vtkGetMacro(Cartesian, bool);
89  vtkSetMacro(Cartesian, bool);
90  vtkBooleanMacro(Cartesian, bool);
92 
94 
99  vtkSetStringMacro(PolarCoordsRadiusArrayName);
100  vtkGetStringMacro(PolarCoordsRadiusArrayName);
102 
104 
109  vtkSetStringMacro(PolarCoordsAngleArrayName);
110  vtkGetStringMacro(PolarCoordsAngleArrayName);
112 
114 
119  vtkSetStringMacro(CartesianCoordsXArrayName);
120  vtkGetStringMacro(CartesianCoordsXArrayName);
122 
124 
129  vtkSetStringMacro(CartesianCoordsYArrayName);
130  vtkGetStringMacro(CartesianCoordsYArrayName);
132 
134 
138  vtkSetMacro(Epsilon, float);
139  vtkGetMacro(Epsilon, float);
141 
143 
147  vtkSetMacro(UnitRadius, float);
148  vtkGetMacro(UnitRadius, float);
150 
152 
153 protected:
155 
158 
161 
162  bool Cartesian;
163  bool Polar;
164 
165  float Epsilon;
166  float UnitRadius;
167 
168 private:
169  vtkKCoreLayout(const vtkKCoreLayout&) = delete;
170  void operator=(const vtkKCoreLayout&) = delete;
171 };
172 
173 VTK_ABI_NAMESPACE_END
174 #endif
Proxy object to connect input/output ports.
Superclass for algorithms that produce only graph as output.
a simple class to control print indentation
Definition: vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Produces a layout for a graph labeled with K-Core information.
char * CartesianCoordsXArrayName
char * KCoreLabelArrayName
static vtkKCoreLayout * New()
char * PolarCoordsAngleArrayName
void SetGraphConnection(vtkAlgorithmOutput *)
Convenience function provided for setting the graph input.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
char * PolarCoordsRadiusArrayName
~vtkKCoreLayout() override
char * CartesianCoordsYArrayName
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447