VTK  9.6.1
vtkTensorGlyph.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
74
75#ifndef vtkTensorGlyph_h
76#define vtkTensorGlyph_h
77
78#include "vtkFiltersCoreModule.h" // For export macro
80#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
81
82VTK_ABI_NAMESPACE_BEGIN
83class VTKFILTERSCORE_EXPORT VTK_MARSHALAUTO vtkTensorGlyph : public vtkPolyDataAlgorithm
84{
85public:
87
95 void PrintSelf(ostream& os, vtkIndent indent) override;
97
99
108
110
115 void SetSourceConnection(int id, vtkAlgorithmOutput* algOutput);
117 {
118 this->SetSourceConnection(0, algOutput);
119 }
120
121
123
126 vtkSetMacro(Scaling, vtkTypeBool);
127 vtkGetMacro(Scaling, vtkTypeBool);
128 vtkBooleanMacro(Scaling, vtkTypeBool);
130
132
136 vtkSetMacro(ScaleFactor, double);
137 vtkGetMacro(ScaleFactor, double);
139
141
146 vtkBooleanMacro(ThreeGlyphs, vtkTypeBool);
148
150
153 vtkSetMacro(Symmetric, vtkTypeBool);
154 vtkGetMacro(Symmetric, vtkTypeBool);
155 vtkBooleanMacro(Symmetric, vtkTypeBool);
157
159
163 vtkSetMacro(Length, double);
164 vtkGetMacro(Length, double);
166
168
175
177
184 vtkBooleanMacro(ColorGlyphs, vtkTypeBool);
186
187 enum
188 {
191 };
192
194
205 vtkGetMacro(ColorMode, int);
209
211
218 vtkBooleanMacro(ClampScaling, vtkTypeBool);
220
222
228 vtkSetMacro(MaxScaleFactor, double);
229 vtkGetMacro(MaxScaleFactor, double);
231
232protected:
234 ~vtkTensorGlyph() override;
235
238 int FillInputPortInformation(int port, vtkInformation* info) override;
239
240 vtkTypeBool Scaling; // Determine whether scaling of geometry is performed
241 double ScaleFactor; // Scale factor to use to scale geometry
242 vtkTypeBool ExtractEigenvalues; // Boolean controls eigenfunction extraction
243 vtkTypeBool ColorGlyphs; // Boolean controls coloring with input scalar data
244 int ColorMode; // The coloring mode to use for the glyphs.
245 vtkTypeBool ClampScaling; // Boolean controls whether scaling is clamped.
246 double MaxScaleFactor; // Maximum scale factor (ScaleFactor*eigenvalue)
247 vtkTypeBool ThreeGlyphs; // Boolean controls drawing 1 or 3 glyphs
248 vtkTypeBool Symmetric; // Boolean controls drawing a "mirror" of each glyph
249 double Length; // Distance, in x, from the origin to the end of the glyph
250private:
251 vtkTensorGlyph(const vtkTensorGlyph&) = delete;
252 void operator=(const vtkTensorGlyph&) = delete;
253};
254
255VTK_ABI_NAMESPACE_END
256#endif
Proxy object to connect input/output ports.
a simple class to control print indentation
Definition vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition vtkPolyData.h:72
void SetSourceData(vtkPolyData *source)
Specify the geometry to copy to each point.
void SetColorModeToScalars()
Set the color mode to be used for the glyphs.
int FillInputPortInformation(int port, vtkInformation *info) override
virtual void SetColorMode(int)
Set the color mode to be used for the glyphs.
void SetColorModeToEigenvalues()
Set the color mode to be used for the glyphs.
vtkTypeBool ThreeGlyphs
static vtkTensorGlyph * New()
Standard methods for instantiation, obtaining type information, and printing.Construct object with sc...
void SetSourceConnection(int id, vtkAlgorithmOutput *algOutput)
Specify a source object at a specified table location.
vtkTypeBool ClampScaling
vtkTypeBool ColorGlyphs
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkTypeBool Scaling
vtkTypeBool Symmetric
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instantiation, obtaining type information, and printing.Construct object with sc...
~vtkTensorGlyph() override
vtkPolyData * GetSource()
Specify the geometry to copy to each point.
void SetSourceConnection(vtkAlgorithmOutput *algOutput)
Specify a source object at a specified table location.
vtkTypeBool ExtractEigenvalues
int vtkTypeBool
Definition vtkABI.h:64
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
#define VTK_MARSHALAUTO