/usr/include/vtk-5.10/vtkArcSource.h is in libvtk5-dev 5.10.1+dfsg-2.1build1.
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 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkArcSource.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 vtkArcSource - create an arc between two end points
// .SECTION Description
// vtkArcSource is a source object that creates an arc defined by two
// endpoints and a center. The number of segments composing the polyline is
// controlled by setting the object resolution.
#ifndef __vtkArcSource_h
#define __vtkArcSource_h
#include "vtkPolyDataAlgorithm.h"
class VTK_GRAPHICS_EXPORT vtkArcSource : public vtkPolyDataAlgorithm
{
public:
static vtkArcSource *New();
vtkTypeMacro(vtkArcSource,vtkPolyDataAlgorithm);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// Set position of first end point.
vtkSetVector3Macro(Point1,double);
vtkGetVectorMacro(Point1,double,3);
// Description:
// Set position of other end point.
vtkSetVector3Macro(Point2,double);
vtkGetVectorMacro(Point2,double,3);
// Description:
// Set position of the center of the circle that define the arc.
// Note: you can use the function vtkMath::Solve3PointCircle to
// find the center from 3 points located on a circle.
vtkSetVector3Macro(Center,double);
vtkGetVectorMacro(Center,double,3);
// Description:
// Divide line into resolution number of pieces.
// Note: if Resolution is set to 1 (default), the arc is a
// straight line.
vtkSetClampMacro(Resolution,int,1,VTK_LARGE_INTEGER);
vtkGetMacro(Resolution,int);
// Description:
// Use the angle that is a negative coterminal of the vectors angle:
// the longest angle.
// Note: false by default.
vtkSetMacro(Negative, bool);
vtkGetMacro(Negative, bool);
vtkBooleanMacro(Negative, bool);
protected:
vtkArcSource(int res=1);
~vtkArcSource() {};
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
double Point1[3];
double Point2[3];
double Center[3];
int Resolution;
bool Negative;
private:
vtkArcSource(const vtkArcSource&); // Not implemented.
void operator=(const vtkArcSource&); // Not implemented.
};
#endif
|