/usr/include/vtk-6.3/vtkPolyLineRepresentation.h is in libvtk6-dev 6.3.0+dfsg1-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 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkPolyLineRepresentation.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 vtkPolyLineRepresentation - vtkWidgetRepresentation for a poly line.
// .SECTION Description
// vtkPolyLineRepresentation is a vtkCurveRepresentation for a poly
// line. This 3D widget defines a poly line that can be interactively
// placed in a scene. The poly line has handles, the number of which
// can be changed, plus the widget can be picked on the poly line
// itself to translate or rotate it in the scene.
// Based on vtkCurveRepresentation
// .SECTION See Also
// vtkSplineRepresentation
#ifndef vtkPolyLineRepresentation_h
#define vtkPolyLineRepresentation_h
#include "vtkInteractionWidgetsModule.h" // For export macro
#include "vtkCurveRepresentation.h"
class vtkPolyLineSource;
class vtkPoints;
class vtkPolyData;
class VTKINTERACTIONWIDGETS_EXPORT vtkPolyLineRepresentation : public vtkCurveRepresentation
{
public:
static vtkPolyLineRepresentation* New();
vtkTypeMacro(vtkPolyLineRepresentation, vtkCurveRepresentation);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// Grab the polydata (including points) that defines the poly line.
// polydata consists of points and line segments between consecutive
// points. Points are guaranteed to be up-to-date when either the
// InteractionEvent or EndInteraction events are invoked. The user
// provides the vtkPolyData and the points and polyline are added to
// it.
void GetPolyData(vtkPolyData *pd);
// Description:
// Set the number of handles for this widget.
virtual void SetNumberOfHandles(int npts);
// Description:
// Get the positions of the handles.
virtual vtkDoubleArray* GetHandlePositions();
// Description:
// Get the true length of the poly line. Calculated as the summed
// lengths of the individual straight line segments.
double GetSummedLength();
// Description:
// Convenience method to allocate and set the handles from a
// vtkPoints instance. If the first and last points are the same,
// the poly line sets Closed to on and disregards the last point,
// otherwise Closed remains unchanged.
virtual void InitializeHandles(vtkPoints* points);
// Description:
// Build the representation for the poly line.
virtual void BuildRepresentation();
//BTX
protected:
vtkPolyLineRepresentation();
~vtkPolyLineRepresentation();
// The poly line source
vtkPolyLineSource *PolyLineSource;
// Specialized method to insert a handle on the poly line.
virtual void InsertHandleOnLine(double* pos);
private:
vtkPolyLineRepresentation(const vtkPolyLineRepresentation&); // Not implemented.
void operator=(const vtkPolyLineRepresentation&); // Not implemented.
//ETX
};
#endif
|