/usr/include/paraview/vtkFlyingEdgesPlaneCutter.h is in paraview-dev 5.0.1+dfsg1-4.
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 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkFlyingEdgesPlaneCutter.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 vtkFlyingEdgesPlaneCutter - cut a volume with a plane and generate a
// polygonal cut surface
// .SECTION Description
// vtkFlyingEdgesPlaneCutter is a specialization of the FlyingEdges algorithm
// to cut a volume with a single plane. It is designed for performance and
// an exploratory, fast workflow.
//
// This algorithm is not only fast because it uses flying edges, but also
// because it plays some "tricks" during processing. For example, rather
// than evaluate the cut (plane) function on all volume points like vtkCutter
// and its ilk do, this algorithm intersects the volume x-edges against the
// plane to (potentially) generate the single intersection point. It then
// quickly classifies the voxel edges as above, below, or straddling the cut
// plane. Thus the number of plane evaluations is greatly reduced.
//
// For more information see vtkFlyingEdges3D and/or the paper "Flying Edges:
// A High-Performance Scalable Isocontouring Algorithm" by Schroeder,
// Maynard, Geveci. Proc. of LDAV 2015. Chicago, IL.
// .SECTION Caveats
// This filter is specialized to 3D volumes. This implementation can produce
// degenerate triangles (i.e., zero-area triangles).
//
// This class has been threaded with vtkSMPTools. Using TBB or other
// non-sequential type (set in the CMake variable
// VTK_SMP_IMPLEMENTATION_TYPE) may improve performance significantly.
// .SECTION See Also
// vtkFlyingEdges2D vtkFlyingEdges3D
#ifndef vtkFlyingEdgesPlaneCutter_h
#define vtkFlyingEdgesPlaneCutter_h
#include "vtkFiltersCoreModule.h" // For export macro
#include "vtkPolyDataAlgorithm.h"
class vtkImageData;
class vtkPlane;
class VTKFILTERSCORE_EXPORT vtkFlyingEdgesPlaneCutter : public vtkPolyDataAlgorithm
{
public:
// Description:
// Standard construction and print methods.
static vtkFlyingEdgesPlaneCutter *New();
vtkTypeMacro(vtkFlyingEdgesPlaneCutter,vtkPolyDataAlgorithm);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// The modified time depends on the delegated cut plane.
unsigned long int GetMTime();
// Description
// Specify the plane (an implicit function) to perform the cutting. The
// definition of the plane (its origin and normal) is controlled via this
// instance of vtkPlane.
virtual void SetPlane(vtkPlane*);
vtkGetObjectMacro(Plane,vtkPlane);
// Description:
// Set/Get the computation of normals. The normal generated is simply the
// cut plane normal. By default this is disabled.
vtkSetMacro(ComputeNormals,int);
vtkGetMacro(ComputeNormals,int);
vtkBooleanMacro(ComputeNormals,int);
// Description:
// Set/get which component of the scalar array to contour on; defaults to 0.
vtkSetMacro(ArrayComponent, int);
vtkGetMacro(ArrayComponent, int);
protected:
vtkFlyingEdgesPlaneCutter();
~vtkFlyingEdgesPlaneCutter();
vtkPlane *Plane;
int ComputeNormals;
int ArrayComponent;
virtual int RequestData(vtkInformation *, vtkInformationVector **,
vtkInformationVector *);
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **,
vtkInformationVector *);
virtual int FillInputPortInformation(int port, vtkInformation *info);
private:
vtkFlyingEdgesPlaneCutter(const vtkFlyingEdgesPlaneCutter&); // Not implemented.
void operator=(const vtkFlyingEdgesPlaneCutter&); // Not implemented.
};
#endif
|