/usr/include/vtk-5.8/vtkPolyDataPointPlacer.h is in libvtk5-dev 5.8.0-5.
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 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkPolyDataPointPlacer.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.
=========================================================================*/
// .NAME vtkPolyDataPointPlacer - Base class to place points given constraints on polygonal data
//
// .SECTION Description
// vtkPolyDataPointPlacer is a base class to place points on the surface of
// polygonal data.
//
// .SECTION Usage
// The actors that render polygonal data and wish to be considered
// for placement by this placer are added to the list as
// \code
// placer->AddProp( polyDataActor );
// \endcode
//
// .SECTION See Also
// vtkPolygonalSurfacePointPlacer
#ifndef __vtkPolyDataPointPlacer_h
#define __vtkPolyDataPointPlacer_h
#include "vtkPointPlacer.h"
class vtkRenderer;
class vtkPropCollection;
class vtkProp;
class vtkPropPicker;
class VTK_WIDGETS_EXPORT vtkPolyDataPointPlacer : public vtkPointPlacer
{
public:
// Description:
// Instantiate this class.
static vtkPolyDataPointPlacer *New();
// Description:
// Standard methods for instances of this class.
vtkTypeMacro(vtkPolyDataPointPlacer,vtkPointPlacer);
void PrintSelf(ostream& os, vtkIndent indent);
// Descuription:
// Add an actor (that represents a terrain in a rendererd scene) to the
// list. Only props in this list are considered by the PointPlacer
virtual void AddProp( vtkProp * );
virtual void RemoveViewProp(vtkProp *prop);
virtual void RemoveAllProps();
int HasProp( vtkProp * );
int GetNumberOfProps();
// Description:
// Given a renderer and a display position in pixel coordinates,
// compute the world position and orientation where this point
// will be placed. This method is typically used by the
// representation to place the point initially.
// For the Terrain point placer this computes world points that
// lie at the specified height above the terrain.
virtual int ComputeWorldPosition( vtkRenderer *ren,
double displayPos[2],
double worldPos[3],
double worldOrient[9] );
// Description:
// Given a renderer, a display position, and a reference world
// position, compute the new world position and orientation
// of this point. This method is typically used by the
// representation to move the point.
virtual int ComputeWorldPosition( vtkRenderer *ren,
double displayPos[2],
double refWorldPos[3],
double worldPos[3],
double worldOrient[9] );
// Description:
// Given a world position check the validity of this
// position according to the constraints of the placer
virtual int ValidateWorldPosition( double worldPos[3] );
// Description:
// Given a display position, check the validity of this position.
virtual int ValidateDisplayPosition( vtkRenderer *, double displayPos[2] );
// Description:
// Given a world position and a world orientation,
// validate it according to the constraints of the placer.
virtual int ValidateWorldPosition( double worldPos[3],
double worldOrient[9] );
// Description:
// Get the Prop picker.
vtkGetObjectMacro( PropPicker, vtkPropPicker );
protected:
vtkPolyDataPointPlacer();
~vtkPolyDataPointPlacer();
// The props that represents the terrain data (one or more) in a rendered
// scene
vtkPropCollection *SurfaceProps;
vtkPropPicker *PropPicker;
private:
vtkPolyDataPointPlacer(const vtkPolyDataPointPlacer&); //Not implemented
void operator=(const vtkPolyDataPointPlacer&); //Not implemented
};
#endif
|