VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vtkEllipsoidTensorProbeRepresentation.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkEllipsoidTensorProbeRepresentation.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 =========================================================================*/
27 #ifndef __vtkEllipsoidTensorProbeRepresentation_h
28 #define __vtkEllipsoidTensorProbeRepresentation_h
29 
30 #include "vtkInteractionWidgetsModule.h" // For export macro
32 
33 class vtkCellPicker;
34 class vtkTensorGlyph;
35 class vtkPolyDataNormals;
36 
37 class VTKINTERACTIONWIDGETS_EXPORT vtkEllipsoidTensorProbeRepresentation :
39 {
40 public:
42 
44 
47  void PrintSelf(ostream& os, vtkIndent indent);
49 
50  virtual void BuildRepresentation();
51  virtual int RenderOpaqueGeometry(vtkViewport *);
52 
54  virtual int SelectProbe( int pos[2] );
55 
57 
58  virtual void GetActors(vtkPropCollection *);
59  virtual void ReleaseGraphicsResources(vtkWindow *);
61 
62 protected:
65 
66  // Get the interpolated tensor at the current position
67  void EvaluateTensor( double t[9] );
68 
69  // Register internal Pickers within PickingManager
70  virtual void RegisterPickers();
71 
72  vtkActor * EllipsoidActor;
73  vtkPolyDataMapper * EllipsoidMapper;
76  vtkCellPicker * CellPicker;
78 
79 private:
81  vtkEllipsoidTensorProbeRepresentation&); //Not implemented
82  void operator=(const
83  vtkEllipsoidTensorProbeRepresentation&); //Not implemented
84 
85 };
86 
87 #endif
88 
Abstract class that serves as a representation for vtkTensorProbeWidget.
virtual int SelectProbe(int pos[2])=0
virtual int RenderOpaqueGeometry(vtkViewport *)
virtual void BuildRepresentation()
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:82
virtual void RegisterPickers()
void PrintSelf(ostream &os, vtkIndent indent)
compute normals for polygonal mesh
virtual void GetActors(vtkPropCollection *)
scale and orient glyph(s) according to tensor eigenvalues and eigenvectors
A concrete implementation of vtkTensorProbeRepresentation that renders tensors as ellipoids...
virtual void ReleaseGraphicsResources(vtkWindow *)