VTK  9.0.1
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 ----------------------------------------------------------------------------*/
53 #ifndef vtkKCoreLayout_h
54 #define vtkKCoreLayout_h
55 
56 #include "vtkGraphAlgorithm.h"
57 #include "vtkInfovisLayoutModule.h" // For export macro
58 
59 class VTKINFOVISLAYOUT_EXPORT vtkKCoreLayout : public vtkGraphAlgorithm
60 {
61 public:
62  static vtkKCoreLayout* New();
64  void PrintSelf(ostream& os, vtkIndent indent) override;
65 
68 
70  ~vtkKCoreLayout() override;
71 
73 
75 
79  vtkSetStringMacro(KCoreLabelArrayName);
81 
83 
88  vtkGetMacro(Polar, bool);
89  vtkSetMacro(Polar, bool);
90  vtkBooleanMacro(Polar, bool);
92 
94 
99  vtkGetMacro(Cartesian, bool);
100  vtkSetMacro(Cartesian, bool);
101  vtkBooleanMacro(Cartesian, bool);
103 
105 
110  vtkSetStringMacro(PolarCoordsRadiusArrayName);
111  vtkGetStringMacro(PolarCoordsRadiusArrayName);
113 
115 
120  vtkSetStringMacro(PolarCoordsAngleArrayName);
121  vtkGetStringMacro(PolarCoordsAngleArrayName);
123 
125 
130  vtkSetStringMacro(CartesianCoordsXArrayName);
131  vtkGetStringMacro(CartesianCoordsXArrayName);
133 
135 
140  vtkSetStringMacro(CartesianCoordsYArrayName);
141  vtkGetStringMacro(CartesianCoordsYArrayName);
143 
145 
149  vtkSetMacro(Epsilon, float);
150  vtkGetMacro(Epsilon, float);
152 
154 
158  vtkSetMacro(UnitRadius, float);
159  vtkGetMacro(UnitRadius, float);
161 
163 
164 protected:
166 
169 
172 
173  bool Cartesian;
174  bool Polar;
175 
176  float Epsilon;
177  float UnitRadius;
178 
179 private:
180  vtkKCoreLayout(const vtkKCoreLayout&) = delete;
181  void operator=(const vtkKCoreLayout&) = delete;
182 };
183 
184 #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:34
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:382
@ port
Definition: vtkX3D.h:453