81 #ifndef __vtkTensorGlyph_h
82 #define __vtkTensorGlyph_h
84 #include "vtkFiltersCoreModule.h"
85 #include "vtkPolyDataAlgorithm.h"
91 void PrintSelf(ostream& os, vtkIndent indent);
101 void SetSourceData(vtkPolyData *
source);
102 vtkPolyData *GetSource();
109 void SetSourceConnection(
int id, vtkAlgorithmOutput* algOutput);
112 this->SetSourceConnection(0, algOutput);
118 vtkSetMacro(Scaling,
int);
119 vtkGetMacro(Scaling,
int);
120 vtkBooleanMacro(Scaling,
int);
126 vtkSetMacro(ScaleFactor,
double);
127 vtkGetMacro(ScaleFactor,
double);
132 vtkSetMacro(ThreeGlyphs,
int);
133 vtkGetMacro(ThreeGlyphs,
int);
134 vtkBooleanMacro(ThreeGlyphs,
int);
139 vtkSetMacro(Symmetric,
int);
140 vtkGetMacro(Symmetric,
int);
141 vtkBooleanMacro(Symmetric,
int);
147 vtkSetMacro(Length,
double);
148 vtkGetMacro(Length,
double);
153 vtkSetMacro(ExtractEigenvalues,
int);
154 vtkBooleanMacro(ExtractEigenvalues,
int);
155 vtkGetMacro(ExtractEigenvalues,
int);
162 vtkSetMacro(ColorGlyphs,
int);
163 vtkGetMacro(ColorGlyphs,
int);
164 vtkBooleanMacro(ColorGlyphs,
int);
183 vtkSetClampMacro(ColorMode,
int, COLOR_BY_SCALARS, COLOR_BY_EIGENVALUES);
184 vtkGetMacro(ColorMode,
int);
186 {this->SetColorMode(COLOR_BY_SCALARS);};
188 {this->SetColorMode(COLOR_BY_EIGENVALUES);};
195 vtkSetMacro(ClampScaling,
int);
196 vtkGetMacro(ClampScaling,
int);
197 vtkBooleanMacro(ClampScaling,
int);
205 vtkSetMacro(MaxScaleFactor,
double);
206 vtkGetMacro(MaxScaleFactor,
double);
213 virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
214 virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
215 virtual int FillInputPortInformation(
int port, vtkInformation *info);
void SetColorModeToScalars()
void SetSourceConnection(vtkAlgorithmOutput *algOutput)
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
void SetColorModeToEigenvalues()
scale and orient glyph(s) according to tensor eigenvalues and eigenvectors