forked from Kitware/VTK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vtkEllipsoidTensorProbeRepresentation.h
95 lines (75 loc) · 2.88 KB
/
vtkEllipsoidTensorProbeRepresentation.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
/*=========================================================================
Program: Visualization Toolkit
Module: vtkEllipsoidTensorProbeRepresentation.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
/**
* @class vtkEllipsoidTensorProbeRepresentation
* @brief A concrete implementation of vtkTensorProbeRepresentation that renders tensors as ellipoids.
*
* vtkEllipsoidTensorProbeRepresentation is a concrete implementation of
* vtkTensorProbeRepresentation. It renders tensors as ellipsoids. Locations
* between two points when probed have the tensors linearly interpolated
* from the neighboring locations on the polyline.
*
* @sa
* vtkTensorProbeWidget
*/
#ifndef vtkEllipsoidTensorProbeRepresentation_h
#define vtkEllipsoidTensorProbeRepresentation_h
#include "vtkInteractionWidgetsModule.h" // For export macro
#include "vtkTensorProbeRepresentation.h"
class vtkCellPicker;
class vtkTensorGlyph;
class vtkPolyDataNormals;
class VTKINTERACTIONWIDGETS_EXPORT vtkEllipsoidTensorProbeRepresentation :
public vtkTensorProbeRepresentation
{
public:
static vtkEllipsoidTensorProbeRepresentation *New();
//@{
/**
* Standard methods for instances of this class.
*/
vtkTypeMacro(vtkEllipsoidTensorProbeRepresentation,
vtkTensorProbeRepresentation);
void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
//@}
void BuildRepresentation() VTK_OVERRIDE;
int RenderOpaqueGeometry(vtkViewport *) VTK_OVERRIDE;
/**
* Can we pick the tensor glyph at the current cursor pos
*/
int SelectProbe( int pos[2] ) VTK_OVERRIDE;
//@{
/**
* See vtkProp for details.
*/
void GetActors(vtkPropCollection *) VTK_OVERRIDE;
void ReleaseGraphicsResources(vtkWindow *) VTK_OVERRIDE;
//@}
protected:
vtkEllipsoidTensorProbeRepresentation();
~vtkEllipsoidTensorProbeRepresentation() VTK_OVERRIDE;
// Get the interpolated tensor at the current position
void EvaluateTensor( double t[9] );
// Register internal Pickers within PickingManager
void RegisterPickers() VTK_OVERRIDE;
vtkActor * EllipsoidActor;
vtkPolyDataMapper * EllipsoidMapper;
vtkPolyData * TensorSource;
vtkTensorGlyph * TensorGlypher;
vtkCellPicker * CellPicker;
vtkPolyDataNormals * PolyDataNormals;
private:
vtkEllipsoidTensorProbeRepresentation(const
vtkEllipsoidTensorProbeRepresentation&) VTK_DELETE_FUNCTION;
void operator=(const
vtkEllipsoidTensorProbeRepresentation&) VTK_DELETE_FUNCTION;
};
#endif