VTK  9.4.20241222
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
47VTK_ABI_NAMESPACE_BEGIN
48class VTKINFOVISLAYOUT_EXPORT vtkKCoreLayout : public vtkGraphAlgorithm
49{
50public:
53 void PrintSelf(ostream& os, vtkIndent indent) override;
54
57
59 ~vtkKCoreLayout() override;
60
61 int FillInputPortInformation(int port, vtkInformation* info) override;
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
153protected:
155
158
161
163 bool Polar;
164
165 float Epsilon;
167
168private:
169 vtkKCoreLayout(const vtkKCoreLayout&) = delete;
170 void operator=(const vtkKCoreLayout&) = delete;
171};
172
173VTK_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
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
static vtkKCoreLayout * New()
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.