VTK  9.2.5
vtkKCoreLayout.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkKCoreLayout.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 (c) Sandia Corporation
17 See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
18----------------------------------------------------------------------------*/
56#ifndef vtkKCoreLayout_h
57#define vtkKCoreLayout_h
58
59#include "vtkGraphAlgorithm.h"
60#include "vtkInfovisLayoutModule.h" // For export macro
61
62class VTKINFOVISLAYOUT_EXPORT vtkKCoreLayout : public vtkGraphAlgorithm
63{
64public:
67 void PrintSelf(ostream& os, vtkIndent indent) override;
68
71
73 ~vtkKCoreLayout() override;
74
75 int FillInputPortInformation(int port, vtkInformation* info) override;
76
78
82 vtkSetStringMacro(KCoreLabelArrayName);
84
86
91 vtkGetMacro(Polar, bool);
92 vtkSetMacro(Polar, bool);
93 vtkBooleanMacro(Polar, bool);
95
97
102 vtkGetMacro(Cartesian, bool);
103 vtkSetMacro(Cartesian, bool);
104 vtkBooleanMacro(Cartesian, bool);
106
108
113 vtkSetStringMacro(PolarCoordsRadiusArrayName);
114 vtkGetStringMacro(PolarCoordsRadiusArrayName);
116
118
123 vtkSetStringMacro(PolarCoordsAngleArrayName);
124 vtkGetStringMacro(PolarCoordsAngleArrayName);
126
128
133 vtkSetStringMacro(CartesianCoordsXArrayName);
134 vtkGetStringMacro(CartesianCoordsXArrayName);
136
138
143 vtkSetStringMacro(CartesianCoordsYArrayName);
144 vtkGetStringMacro(CartesianCoordsYArrayName);
146
148
152 vtkSetMacro(Epsilon, float);
153 vtkGetMacro(Epsilon, float);
155
157
161 vtkSetMacro(UnitRadius, float);
162 vtkGetMacro(UnitRadius, float);
164
166
167protected:
169
172
175
177 bool Polar;
178
179 float Epsilon;
181
182private:
183 vtkKCoreLayout(const vtkKCoreLayout&) = delete;
184 void operator=(const vtkKCoreLayout&) = delete;
185};
186
187#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:40
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.