00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkEllipsoidTensorProbeRepresentation.h,v $ 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00027 #ifndef __vtkEllipsoidTensorProbeRepresentation_h 00028 #define __vtkEllipsoidTensorProbeRepresentation_h 00029 00030 #include "vtkTensorProbeRepresentation.h" 00031 00032 class vtkCellPicker; 00033 class vtkTensorGlyph; 00034 class vtkPolyDataNormals; 00035 00036 class VTK_WIDGETS_EXPORT vtkEllipsoidTensorProbeRepresentation : 00037 public vtkTensorProbeRepresentation 00038 { 00039 public: 00040 static vtkEllipsoidTensorProbeRepresentation *New(); 00041 00043 00044 vtkTypeRevisionMacro(vtkEllipsoidTensorProbeRepresentation, 00045 vtkTensorProbeRepresentation); 00046 void PrintSelf(ostream& os, vtkIndent indent); 00048 00049 virtual void BuildRepresentation(); 00050 virtual int RenderOpaqueGeometry(vtkViewport *); 00051 00053 virtual int SelectProbe( int pos[2] ); 00054 00055 protected: 00056 vtkEllipsoidTensorProbeRepresentation(); 00057 ~vtkEllipsoidTensorProbeRepresentation(); 00058 00059 // Get the interpolated tensor at the current position 00060 void EvaluateTensor( double t[9] ); 00061 00062 vtkActor * EllipsoidActor; 00063 vtkPolyDataMapper * EllipsoidMapper; 00064 vtkPolyData * TensorSource; 00065 vtkTensorGlyph * TensorGlypher; 00066 vtkCellPicker * CellPicker; 00067 vtkPolyDataNormals * PolyDataNormals; 00068 00069 private: 00070 vtkEllipsoidTensorProbeRepresentation(const 00071 vtkEllipsoidTensorProbeRepresentation&); //Not implemented 00072 void operator=(const 00073 vtkEllipsoidTensorProbeRepresentation&); //Not implemented 00074 00075 }; 00076 00077 #endif 00078