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) override;
65 
67  void SetGraphConnection(vtkAlgorithmOutput*);
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 
162 
164 
165 protected:
167 
170 
173 
174  bool Cartesian;
175  bool Polar;
176 
177  float Epsilon;
178  float UnitRadius;
179 
180 private:
181  vtkKCoreLayout(const vtkKCoreLayout&) = delete;
182  void operator=(const vtkKCoreLayout&) = delete;
183 };
184 
185 #endif
vtkKCoreLayout::CartesianCoordsYArrayName
char * CartesianCoordsYArrayName
Definition: vtkKCoreLayout.h:172
vtkGraphAlgorithm
Superclass for algorithms that produce only graph as output.
Definition: vtkGraphAlgorithm.h:51
vtkKCoreLayout::Epsilon
float Epsilon
Definition: vtkKCoreLayout.h:177
vtkKCoreLayout::Cartesian
bool Cartesian
Definition: vtkKCoreLayout.h:174
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkKCoreLayout::PolarCoordsRadiusArrayName
char * PolarCoordsRadiusArrayName
Definition: vtkKCoreLayout.h:168
vtkGraphAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkX3D::port
Definition: vtkX3D.h:447
vtkGraphAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkGraphAlgorithm.h
vtkKCoreLayout
Produces a layout for a graph labeled with K-Core information.
Definition: vtkKCoreLayout.h:59
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkKCoreLayout::PolarCoordsAngleArrayName
char * PolarCoordsAngleArrayName
Definition: vtkKCoreLayout.h:169
vtkKCoreLayout::Polar
bool Polar
Definition: vtkKCoreLayout.h:175
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:80
vtkX3D::info
Definition: vtkX3D.h:376
vtkGraphAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkKCoreLayout::CartesianCoordsXArrayName
char * CartesianCoordsXArrayName
Definition: vtkKCoreLayout.h:171
vtkAlgorithmOutput
Proxy object to connect input/output ports.
Definition: vtkAlgorithmOutput.h:36
vtkKCoreLayout::UnitRadius
float UnitRadius
Definition: vtkKCoreLayout.h:178
vtkGraphAlgorithm::New
static vtkGraphAlgorithm * New()
vtkKCoreLayout::KCoreLabelArrayName
char * KCoreLabelArrayName
Definition: vtkKCoreLayout.h:166