VTK
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=========================================================================*/
31#ifndef vtkTensorProbeRepresentation_h
32#define vtkTensorProbeRepresentation_h
33
34#include "vtkInteractionWidgetsModule.h" // For export macro
36
37class vtkActor;
38class vtkPolyData;
40class vtkGenericCell;
41
42class VTKINTERACTIONWIDGETS_EXPORT vtkTensorProbeRepresentation :
44{
45public:
47
51 void PrintSelf(ostream& os, vtkIndent indent);
53
55
58 virtual void BuildRepresentation();
61
63
66 vtkSetVector3Macro( ProbePosition, double );
67 vtkGetVector3Macro( ProbePosition, double );
68 vtkSetMacro( ProbeCellId, vtkIdType );
69 vtkGetMacro( ProbeCellId, vtkIdType );
71
75 virtual void SetTrajectory( vtkPolyData * );
76
80 void Initialize();
81
86 virtual int SelectProbe( int pos[2] ) = 0;
87
93 virtual int Move( double motionVector[2] );
94
96
102
103protected:
106
108 double displayPos[2], double closestWorldPos[3], vtkIdType &cellId,
109 int maxSpeed = 10 );
110
114 double ProbePosition[3];
116
117private:
119 const vtkTensorProbeRepresentation&) VTK_DELETE_FUNCTION;
120 void operator=(const vtkTensorProbeRepresentation&) VTK_DELETE_FUNCTION;
121
122};
123
124#endif
125
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:52
provides thread-safe access to cells
a simple class to control print indentation
Definition: vtkIndent.h:40
map vtkPolyData to graphics primitives
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:86
a 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)
virtual void GetActors(vtkPropCollection *)
See vtkProp for details.
virtual int RenderOpaqueGeometry(vtkViewport *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
virtual void ReleaseGraphicsResources(vtkWindow *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
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.
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.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual void BuildRepresentation()
See vtkWidgetRepresentation for details.
abstract specification for Viewports
Definition: vtkViewport.h:48
abstract class defines interface between the widget and widget representation classes
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
int vtkIdType
Definition: vtkType.h:287