VTK  9.1.0
vtkTensorProbeRepresentation.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkTensorProbeRepresentation.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=========================================================================*/
28#ifndef vtkTensorProbeRepresentation_h
29#define vtkTensorProbeRepresentation_h
30
31#include "vtkInteractionWidgetsModule.h" // For export macro
33
34class vtkActor;
35class vtkPolyData;
37class vtkGenericCell;
38
39class VTKINTERACTIONWIDGETS_EXPORT vtkTensorProbeRepresentation : public vtkWidgetRepresentation
40{
41public:
43
47 void PrintSelf(ostream& os, vtkIndent indent) override;
49
51
54 void BuildRepresentation() override;
57
59
62 vtkSetVector3Macro(ProbePosition, double);
63 vtkGetVector3Macro(ProbePosition, double);
64 vtkSetMacro(ProbeCellId, vtkIdType);
65 vtkGetMacro(ProbeCellId, vtkIdType);
67
71 virtual void SetTrajectory(vtkPolyData*);
72
76 void Initialize();
77
82 virtual int SelectProbe(int pos[2]) = 0;
83
89 virtual int Move(double motionVector[2]);
90
92
98
99protected:
102
104 double displayPos[2], double closestWorldPos[3], vtkIdType& cellId, int maxSpeed = 10);
105
109 double ProbePosition[3];
111
112private:
114 void operator=(const vtkTensorProbeRepresentation&) = delete;
115};
116
117#endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:155
provides thread-safe access to cells
a simple class to control print indentation
Definition: vtkIndent.h:113
map vtkPolyData to graphics primitives
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:195
an ordered list of Props
Abstract class that serves as a representation for vtkTensorProbeWidget.
void FindClosestPointOnPolyline(double displayPos[2], double closestWorldPos[3], vtkIdType &cellId, int maxSpeed=10)
~vtkTensorProbeRepresentation() override
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instances of this class.
void BuildRepresentation() override
See vtkWidgetRepresentation for details.
virtual void SetTrajectory(vtkPolyData *)
Set the trajectory that we are trying to probe tensors on.
virtual int Move(double motionVector[2])
INTERNAL - Do not use This method is invoked by the widget during user interaction.
void ReleaseGraphicsResources(vtkWindow *) override
See vtkProp for details.
void GetActors(vtkPropCollection *) override
See vtkProp for details.
int RenderOpaqueGeometry(vtkViewport *) override
See vtkWidgetRepresentation for details.
virtual int SelectProbe(int pos[2])=0
This method is invoked by the widget during user interaction.
void Initialize()
Set the probe position to a reasonable location on the trajectory.
abstract specification for Viewports
Definition: vtkViewport.h:47
abstract class defines interface between the widget and widget representation classes
window superclass for vtkRenderWindow
Definition: vtkWindow.h:36
int vtkIdType
Definition: vtkType.h:332