VTK  9.2.6
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 
62 class VTKINFOVISLAYOUT_EXPORT vtkKCoreLayout : public vtkGraphAlgorithm
63 {
64 public:
65  static vtkKCoreLayout* New();
67  void PrintSelf(ostream& os, vtkIndent indent) override;
68 
70  void SetGraphConnection(vtkAlgorithmOutput*);
71 
73  ~vtkKCoreLayout() override;
74 
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 
167 protected:
169 
172 
175 
176  bool Cartesian;
177  bool Polar;
178 
179  float Epsilon;
180  float UnitRadius;
181 
182 private:
183  vtkKCoreLayout(const vtkKCoreLayout&) = delete;
184  void operator=(const vtkKCoreLayout&) = delete;
185 };
186 
187 #endif
static vtkGraphAlgorithm * New()
Produces a layout for a graph labeled with K-Core information.
char * CartesianCoordsYArrayName
Store vtkAlgorithm input/output information.
char * KCoreLabelArrayName
char * PolarCoordsRadiusArrayName
Superclass for algorithms that produce only graph as output.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
Proxy object to connect input/output ports.
a simple class to control print indentation
Definition: vtkIndent.h:39
char * CartesianCoordsXArrayName
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
Store zero or more vtkInformation instances.
char * PolarCoordsAngleArrayName