/usr/include/paraview/vtk1DTransferFunction.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 | /*=========================================================================
Program: Visualization Toolkit
Module: vtk1DTransferFunction.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 vtk1DTransferFunction
// .SECTION Thanks
// <verbatim>
//
// This file is part of the PointSprites plugin developed and contributed by
//
// Copyright (c) CSCS - Swiss National Supercomputing Centre
// EDF - Electricite de France
//
// John Biddiscombe, Ugo Varetto (CSCS)
// Stephane Ploix (EDF)
//
// </verbatim>
// .SECTION Description:
// vtk1DTransferFunction subclasses map an array to a 1D array.
#ifndef vtk1DTransferFunction_h
#define vtk1DTransferFunction_h
#include "vtkPointSpriteGraphicsModule.h" //needed for exports
#include "vtkObject.h"
class vtkDataArray;
class VTKPOINTSPRITEGRAPHICS_EXPORT vtk1DTransferFunction: public vtkObject
{
public:
vtkTypeMacro(vtk1DTransferFunction, vtkObject);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// map the input array to the output array using the Table.
// the output will have 1 component and as many tuples as the input.
virtual void MapArray(vtkDataArray* input, vtkDataArray* output);
// Set/Get the range of the input values
vtkSetVector2Macro(InputRange, double);
vtkGetVector2Macro(InputRange, double);
vtkSetMacro(VectorComponent, int);
vtkGetMacro(VectorComponent, int);
vtkSetMacro(UseScalarRange, int);
vtkGetMacro(UseScalarRange, int);
vtkBooleanMacro(UseScalarRange, int);
// map a value and store it in the output at the given index
// using the Lookup Table
virtual double MapValue(double value, double* range) = 0;
protected:
vtk1DTransferFunction();
~vtk1DTransferFunction();
double InputRange[2];
int VectorComponent;
int UseScalarRange;
private:
vtk1DTransferFunction(const vtk1DTransferFunction&); // Not implemented.
void operator=(const vtk1DTransferFunction&); // Not implemented.
};
#endif
|