/usr/include/vtk-7.1/vtkTensorProbeRepresentation.h is in libvtk7-dev 7.1.1+dfsg1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkTensorProbeRepresentation.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 vtkTensorProbeRepresentation
* @brief Abstract class that serves as a representation for vtkTensorProbeWidget
*
* The class serves as an abstract geometrical representation for the
* vtkTensorProbeWidget. It is left to the concrete implementation to render
* the tensors as it desires. For instance,
* vtkEllipsoidTensorProbeRepresentation renders the tensors as ellipsoids.
*
* @sa
* vtkTensorProbeWidget
*/
#ifndef vtkTensorProbeRepresentation_h
#define vtkTensorProbeRepresentation_h
#include "vtkInteractionWidgetsModule.h" // For export macro
#include "vtkWidgetRepresentation.h"
class vtkActor;
class vtkPolyData;
class vtkPolyDataMapper;
class vtkGenericCell;
class VTKINTERACTIONWIDGETS_EXPORT vtkTensorProbeRepresentation :
public vtkWidgetRepresentation
{
public:
//@{
/**
* Standard methods for instances of this class.
*/
vtkTypeMacro(vtkTensorProbeRepresentation,vtkWidgetRepresentation);
void PrintSelf(ostream& os, vtkIndent indent);
//@}
//@{
/**
* See vtkWidgetRepresentation for details.
*/
virtual void BuildRepresentation();
virtual int RenderOpaqueGeometry(vtkViewport *);
//@}
//@{
/**
* Set the position of the Tensor probe.
*/
vtkSetVector3Macro( ProbePosition, double );
vtkGetVector3Macro( ProbePosition, double );
vtkSetMacro( ProbeCellId, vtkIdType );
vtkGetMacro( ProbeCellId, vtkIdType );
//@}
/**
* Set the trajectory that we are trying to probe tensors on
*/
virtual void SetTrajectory( vtkPolyData * );
/**
* Set the probe position to a reasonable location on the trajectory.
*/
void Initialize();
/**
* This method is invoked by the widget during user interaction.
* Can we pick the tensor glyph at the current cursor pos
*/
virtual int SelectProbe( int pos[2] ) = 0;
/**
* INTERNAL - Do not use
* This method is invoked by the widget during user interaction.
* Move probe based on the position and the motion vector.
*/
virtual int Move( double motionVector[2] );
//@{
/**
* See vtkProp for details.
*/
virtual void GetActors(vtkPropCollection *);
virtual void ReleaseGraphicsResources(vtkWindow *);
//@}
protected:
vtkTensorProbeRepresentation();
~vtkTensorProbeRepresentation();
void FindClosestPointOnPolyline(
double displayPos[2], double closestWorldPos[3], vtkIdType &cellId,
int maxSpeed = 10 );
vtkActor * TrajectoryActor;
vtkPolyDataMapper * TrajectoryMapper;
vtkPolyData * Trajectory;
double ProbePosition[3];
vtkIdType ProbeCellId;
private:
vtkTensorProbeRepresentation(
const vtkTensorProbeRepresentation&) VTK_DELETE_FUNCTION;
void operator=(const vtkTensorProbeRepresentation&) VTK_DELETE_FUNCTION;
};
#endif
|