vtkTensorGlyph.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00095 #ifndef __vtkTensorGlyph_h
00096 #define __vtkTensorGlyph_h
00097
00098 #include "vtkDataSetToPolyDataFilter.h"
00099
00100 class VTK_GRAPHICS_EXPORT vtkTensorGlyph : public vtkDataSetToPolyDataFilter
00101 {
00102 public:
00103 vtkTypeRevisionMacro(vtkTensorGlyph,vtkDataSetToPolyDataFilter);
00104 void PrintSelf(ostream& os, vtkIndent indent);
00105
00109 static vtkTensorGlyph *New();
00110
00112
00113 void SetSource(vtkPolyData *source);
00114 vtkPolyData *GetSource();
00116
00118
00119 vtkSetMacro(Scaling,int);
00120 vtkGetMacro(Scaling,int);
00121 vtkBooleanMacro(Scaling,int);
00123
00125
00127 vtkSetMacro(ScaleFactor,double);
00128 vtkGetMacro(ScaleFactor,double);
00130
00132
00133 vtkSetMacro(ThreeGlyphs,int);
00134 vtkGetMacro(ThreeGlyphs,int);
00135 vtkBooleanMacro(ThreeGlyphs,int);
00137
00139
00140 vtkSetMacro(Symmetric,int);
00141 vtkGetMacro(Symmetric,int);
00142 vtkBooleanMacro(Symmetric,int);
00144
00146
00148 vtkSetMacro(Length,double);
00149 vtkGetMacro(Length,double);
00151
00153
00154 vtkSetMacro(ExtractEigenvalues,int);
00155 vtkBooleanMacro(ExtractEigenvalues,int);
00156 vtkGetMacro(ExtractEigenvalues,int);
00158
00160
00163 vtkSetMacro(ColorGlyphs,int);
00164 vtkGetMacro(ColorGlyphs,int);
00165 vtkBooleanMacro(ColorGlyphs,int);
00167
00168
00169 enum
00170 {
00171 COLOR_BY_SCALARS,
00172 COLOR_BY_EIGENVALUES
00173 };
00174
00175
00177
00184 vtkSetClampMacro(ColorMode, int, COLOR_BY_SCALARS, COLOR_BY_EIGENVALUES);
00185 vtkGetMacro(ColorMode, int);
00186 void SetColorModeToScalars()
00187 {this->SetColorMode(COLOR_BY_SCALARS);};
00188 void SetColorModeToEigenvalues()
00189 {this->SetColorMode(COLOR_BY_EIGENVALUES);};
00191
00193
00196 vtkSetMacro(ClampScaling,int);
00197 vtkGetMacro(ClampScaling,int);
00198 vtkBooleanMacro(ClampScaling,int);
00200
00202
00206 vtkSetMacro(MaxScaleFactor,double);
00207 vtkGetMacro(MaxScaleFactor,double);
00209
00210 protected:
00211 vtkTensorGlyph();
00212 ~vtkTensorGlyph();
00213
00214 void Execute();
00215
00216 int Scaling;
00217 double ScaleFactor;
00218 int ExtractEigenvalues;
00219 int ColorGlyphs;
00220 int ColorMode;
00221 int ClampScaling;
00222 double MaxScaleFactor;
00223 int ThreeGlyphs;
00224 int Symmetric;
00225 double Length;
00226 private:
00227 vtkTensorGlyph(const vtkTensorGlyph&);
00228 void operator=(const vtkTensorGlyph&);
00229 };
00230
00231 #endif