/usr/include/vtk-7.1/vtkEllipseArcSource.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 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkEllipseArcSource.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 vtkEllipseArcSource
* @brief create an elliptical arc
*
*
* vtkEllipseArcSource is a source object that creates an elliptical arc
* defined by a normal, a center and the major radius vector.
* You can define an angle to draw only a section of the ellipse. The number of
* segments composing the polyline is controlled by setting the object
* resolution.
*
* @sa
* vtkArcSource
*/
#ifndef vtkEllipseArcSource_h
#define vtkEllipseArcSource_h
#include "vtkFiltersSourcesModule.h" // For export macro
#include "vtkPolyDataAlgorithm.h"
class VTKFILTERSSOURCES_EXPORT vtkEllipseArcSource : public vtkPolyDataAlgorithm
{
public:
static vtkEllipseArcSource *New();
vtkTypeMacro(vtkEllipseArcSource, vtkPolyDataAlgorithm);
void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
//@{
/**
* Set position of the center of the ellipse that define the arc.
* Default is 0, 0, 0.
*/
vtkSetVector3Macro(Center, double);
vtkGetVectorMacro(Center, double, 3);
//@}
//@{
/**
* Set normal vector. Represents the plane in which the ellipse will be drawn.
* Default 0, 0, 1.
*/
vtkSetVector3Macro(Normal, double);
vtkGetVectorMacro(Normal, double, 3);
//@}
//@{
/**
* Set Major Radius Vector. It defines the origin of polar angle and the major
* radius size.
* Default is 1, 0, 0.
*/
vtkSetVector3Macro(MajorRadiusVector, double);
vtkGetVectorMacro(MajorRadiusVector, double, 3);
//@}
//@{
/**
* Set the start angle. The angle where the plot begins.
* Default is 0.
*/
vtkSetClampMacro(StartAngle, double, -360.0, 360.0);
vtkGetMacro(StartAngle, double);
//@}
//@{
/**
* Angular sector occupied by the arc, beginning at Start Angle
* Default is 90.
*/
vtkSetClampMacro(SegmentAngle, double, 0.0, 360.0);
vtkGetMacro(SegmentAngle, double);
//@}
//@{
/**
* Divide line into resolution number of pieces.
* Note: if Resolution is set to 1 the arc is a
* straight line. Default is 100.
*/
vtkSetClampMacro(Resolution, int, 1, VTK_INT_MAX);
vtkGetMacro(Resolution, int);
//@}
//@{
/**
* Set/get the desired precision for the output points.
* vtkAlgorithm::SINGLE_PRECISION - Output single-precision floating point,
* This is the default.
* vtkAlgorithm::DOUBLE_PRECISION - Output double-precision floating point.
*/
vtkSetMacro(OutputPointsPrecision, int);
vtkGetMacro(OutputPointsPrecision, int);
//@}
//@{
/**
* Set the ratio of the ellipse, i.e. the ratio b/a _ b: minor radius;
* a: major radius
* default is 1.
*/
vtkSetClampMacro(Ratio, double, 0.001, 100.0);
vtkGetMacro(Ratio, double);
//@}
protected:
vtkEllipseArcSource();
~vtkEllipseArcSource() VTK_OVERRIDE {}
int RequestData(vtkInformation *, vtkInformationVector **,
vtkInformationVector *) VTK_OVERRIDE;
double Center[3];
double Normal[3];
double MajorRadiusVector[3];
double StartAngle;
double SegmentAngle;
int Resolution;
double Ratio;
int OutputPointsPrecision;
private:
vtkEllipseArcSource(const vtkEllipseArcSource&) VTK_DELETE_FUNCTION;
void operator=(const vtkEllipseArcSource&) VTK_DELETE_FUNCTION;
};
#endif
|