VTK
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 "vtkInfovisLayoutModule.h" // For export macro
57 #include "vtkGraphAlgorithm.h"
58 
59 class VTKINFOVISLAYOUT_EXPORT vtkKCoreLayout : public vtkGraphAlgorithm
60 {
61 public:
62  static vtkKCoreLayout* New();
64  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
65 
67  void SetGraphConnection(vtkAlgorithmOutput*);
68 
70  ~vtkKCoreLayout() VTK_OVERRIDE;
71 
72  int FillInputPortInformation(int port, vtkInformation* info) VTK_OVERRIDE;
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 
162 
163  int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) VTK_OVERRIDE;
164 
165 protected:
166  char * KCoreLabelArrayName;
167 
168  char * PolarCoordsRadiusArrayName;
169  char * PolarCoordsAngleArrayName;
170 
171  char * CartesianCoordsXArrayName;
172  char * CartesianCoordsYArrayName;
173 
174  bool Cartesian;
175  bool Polar;
176 
177  float Epsilon;
178  float UnitRadius;
179 
180 private:
181  vtkKCoreLayout(const vtkKCoreLayout&) VTK_DELETE_FUNCTION;
182  void operator=(const vtkKCoreLayout&) VTK_DELETE_FUNCTION;
183 };
184 
185 #endif
static vtkGraphAlgorithm * New()
Produces a layout for a graph labeled with K-Core information.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only graph as output.
Proxy object to connect input/output ports.
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Store zero or more vtkInformation instances.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.