/usr/include/vtk-7.1/vtkOutlineSource.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 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkOutlineSource.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 vtkOutlineSource
* @brief create wireframe outline around bounding box
*
* vtkOutlineSource creates a wireframe outline around a
* user-specified bounding box. The outline may be created aligned
* with the {x,y,z} axis - in which case it is defined by the 6 bounds
* {xmin,xmax,ymin,ymax,zmin,zmax} via SetBounds(). Alternatively, the
* box may be arbitrarily aligned, in which case it should be set via
* the SetCorners() member.
*/
#ifndef vtkOutlineSource_h
#define vtkOutlineSource_h
#include "vtkFiltersSourcesModule.h" // For export macro
#include "vtkPolyDataAlgorithm.h"
#define VTK_BOX_TYPE_AXIS_ALIGNED 0
#define VTK_BOX_TYPE_ORIENTED 1
class VTKFILTERSSOURCES_EXPORT vtkOutlineSource : public vtkPolyDataAlgorithm
{
public:
static vtkOutlineSource *New();
vtkTypeMacro(vtkOutlineSource,vtkPolyDataAlgorithm);
void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
//@{
/**
* Set box type to AxisAligned (default) or Oriented.
* Use the method SetBounds() with AxisAligned mode, and SetCorners()
* with Oriented mode.
*/
vtkSetMacro(BoxType,int);
vtkGetMacro(BoxType,int);
void SetBoxTypeToAxisAligned()
{this->SetBoxType(VTK_BOX_TYPE_AXIS_ALIGNED);}
void SetBoxTypeToOriented()
{this->SetBoxType(VTK_BOX_TYPE_ORIENTED);}
//@}
//@{
/**
* Specify the bounds of the box to be used in Axis Aligned mode.
*/
vtkSetVector6Macro(Bounds,double);
vtkGetVectorMacro(Bounds,double,6);
//@}
//@{
/**
* Specify the corners of the outline when in Oriented mode, the
* values are supplied as 8*3 double values The correct corner
* ordering is using {x,y,z} convention for the unit cube as follows:
* {0,0,0},{1,0,0},{0,1,0},{1,1,0},{0,0,1},{1,0,1},{0,1,1},{1,1,1}.
*/
vtkSetVectorMacro(Corners,double,24);
vtkGetVectorMacro(Corners,double,24);
//@}
//@{
/**
* Generate solid faces for the box. This is off by default.
*/
vtkSetMacro(GenerateFaces, int);
vtkBooleanMacro(GenerateFaces, int);
vtkGetMacro(GenerateFaces, int);
//@}
//@{
/**
* Set/get the desired precision for the output points.
* vtkAlgorithm::SINGLE_PRECISION - Output single-precision floating point.
* vtkAlgorithm::DOUBLE_PRECISION - Output double-precision floating point.
*/
vtkSetMacro(OutputPointsPrecision,int);
vtkGetMacro(OutputPointsPrecision,int);
//@}
protected:
vtkOutlineSource();
~vtkOutlineSource() VTK_OVERRIDE {}
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
int BoxType;
int GenerateFaces;
int OutputPointsPrecision;
double Bounds[6];
double Corners[24];
private:
vtkOutlineSource(const vtkOutlineSource&) VTK_DELETE_FUNCTION;
void operator=(const vtkOutlineSource&) VTK_DELETE_FUNCTION;
};
#endif
|