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 ----------------------------------------------------------------------------*/
58 #ifndef vtkKCoreLayout_h
59 #define vtkKCoreLayout_h
60 
61 #include "vtkInfovisLayoutModule.h" // For export macro
62 #include "vtkGraphAlgorithm.h"
63 
65 {
66 public:
67  static vtkKCoreLayout* New();
69  void PrintSelf(ostream& os, vtkIndent indent);
70 
72  void SetGraphConnection(vtkAlgorithmOutput*);
73 
75  ~vtkKCoreLayout();
76 
78 
80 
82  vtkSetStringMacro(KCoreLabelArrayName);
84 
86 
88  vtkGetMacro( Polar, bool );
89  vtkSetMacro( Polar, bool );
90  vtkBooleanMacro( Polar, bool );
92 
94 
97  vtkGetMacro( Cartesian, bool );
98  vtkSetMacro( Cartesian, bool );
99  vtkBooleanMacro( Cartesian, bool );
101 
103 
105  vtkSetStringMacro(PolarCoordsRadiusArrayName);
106  vtkGetStringMacro(PolarCoordsRadiusArrayName);
108 
110 
113  vtkSetStringMacro(PolarCoordsAngleArrayName);
114  vtkGetStringMacro(PolarCoordsAngleArrayName);
116 
118 
120  vtkSetStringMacro(CartesianCoordsXArrayName);
121  vtkGetStringMacro(CartesianCoordsXArrayName);
123 
125 
127  vtkSetStringMacro(CartesianCoordsYArrayName);
128  vtkGetStringMacro(CartesianCoordsYArrayName);
130 
132 
133  vtkSetMacro( Epsilon, float );
134  vtkGetMacro( Epsilon, float );
136 
138 
139  vtkSetMacro( UnitRadius, float );
140  vtkGetMacro( UnitRadius, float );
142 
143 
145 
146 protected:
148 
151 
154 
155  bool Cartesian;
156  bool Polar;
157 
158  float Epsilon;
159  float UnitRadius;
160 
161 private:
162  vtkKCoreLayout(const vtkKCoreLayout&); // Not implemented
163  void operator=(const vtkKCoreLayout&); // Not implemented
164 };
165 
166 #endif
static vtkGraphAlgorithm * New()
Produces a layout for a graph labeled with K-Core information.
char * CartesianCoordsYArrayName
Store vtkAlgorithm input/output information.
char * KCoreLabelArrayName
#define VTKINFOVISLAYOUT_EXPORT
char * PolarCoordsRadiusArrayName
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:38
void PrintSelf(ostream &os, vtkIndent indent)
char * CartesianCoordsXArrayName
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Store zero or more vtkInformation instances.
char * PolarCoordsAngleArrayName
virtual int FillInputPortInformation(int port, vtkInformation *info)