VTK  9.2.6
vtkTensorGlyph.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkTensorGlyph.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=========================================================================*/
83
84#ifndef vtkTensorGlyph_h
85#define vtkTensorGlyph_h
86
87#include "vtkFiltersCoreModule.h" // For export macro
89
90class VTKFILTERSCORE_EXPORT vtkTensorGlyph : public vtkPolyDataAlgorithm
91{
92public:
94
102 void PrintSelf(ostream& os, vtkIndent indent) override;
104
106
115
117
122 void SetSourceConnection(int id, vtkAlgorithmOutput* algOutput);
124 {
125 this->SetSourceConnection(0, algOutput);
126 }
127
128
130
133 vtkSetMacro(Scaling, vtkTypeBool);
134 vtkGetMacro(Scaling, vtkTypeBool);
135 vtkBooleanMacro(Scaling, vtkTypeBool);
137
139
143 vtkSetMacro(ScaleFactor, double);
144 vtkGetMacro(ScaleFactor, double);
146
148
153 vtkBooleanMacro(ThreeGlyphs, vtkTypeBool);
155
157
160 vtkSetMacro(Symmetric, vtkTypeBool);
161 vtkGetMacro(Symmetric, vtkTypeBool);
162 vtkBooleanMacro(Symmetric, vtkTypeBool);
164
166
170 vtkSetMacro(Length, double);
171 vtkGetMacro(Length, double);
173
175
182
184
191 vtkBooleanMacro(ColorGlyphs, vtkTypeBool);
193
194 enum
195 {
198 };
199
201
212 vtkGetMacro(ColorMode, int);
216
218
225 vtkBooleanMacro(ClampScaling, vtkTypeBool);
227
229
235 vtkSetMacro(MaxScaleFactor, double);
236 vtkGetMacro(MaxScaleFactor, double);
238
239protected:
241 ~vtkTensorGlyph() override;
242
245 int FillInputPortInformation(int port, vtkInformation* info) override;
246
247 vtkTypeBool Scaling; // Determine whether scaling of geometry is performed
248 double ScaleFactor; // Scale factor to use to scale geometry
249 vtkTypeBool ExtractEigenvalues; // Boolean controls eigenfunction extraction
250 vtkTypeBool ColorGlyphs; // Boolean controls coloring with input scalar data
251 int ColorMode; // The coloring mode to use for the glyphs.
252 vtkTypeBool ClampScaling; // Boolean controls whether scaling is clamped.
253 double MaxScaleFactor; // Maximum scale factor (ScaleFactor*eigenvalue)
254 vtkTypeBool ThreeGlyphs; // Boolean controls drawing 1 or 3 glyphs
255 vtkTypeBool Symmetric; // Boolean controls drawing a "mirror" of each glyph
256 double Length; // Distance, in x, from the origin to the end of the glyph
257private:
258 vtkTensorGlyph(const vtkTensorGlyph&) = delete;
259 void operator=(const vtkTensorGlyph&) = delete;
260};
261
262#endif
Proxy object to connect input/output ports.
a simple class to control print indentation
Definition vtkIndent.h:34
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition vtkPolyData.h:85
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
Fill the input port information objects for this algorithm.
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:69
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)