/usr/include/paraview/vtk1DTransferFunctionChooser.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 106 | /*=========================================================================
Program: Visualization Toolkit
Module: vtk1DTransferFunctionChooser.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 vtk1DTransferFunctionChooser
// .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
// Chooses between vtk1DLookupTableTransferFunction and vtk1DGaussianTransferFunction
#ifndef vtk1DTransferFunctionChooser_h
#define vtk1DTransferFunctionChooser_h
#include "vtkPointSpriteGraphicsModule.h" //needed for exports
#include "vtk1DTransferFunction.h"
class vtk1DLookupTableTransferFunction;
class vtk1DGaussianTransferFunction;
class vtkProportionalTransferFunction;
class VTKPOINTSPRITEGRAPHICS_EXPORT vtk1DTransferFunctionChooser: public vtk1DTransferFunction
{
public:
static vtk1DTransferFunctionChooser* New();
vtkTypeMacro(vtk1DTransferFunctionChooser, vtk1DTransferFunction);
void PrintSelf(ostream& os, vtkIndent indent);
//BTX
enum
{
LookupTable = 0, Gaussian = 1
};
//ETX
// 0 : LookupTable
// 1 : Gaussian
vtkSetMacro(TransferFunctionMode, int);
vtkGetMacro(TransferFunctionMode, int);
void SetTransferFunctionModeToLookupTable()
{
this->SetTransferFunctionMode(LookupTable);
}
void SetTransferFunctionModeToGaussian()
{
this->SetTransferFunctionMode(Gaussian);
}
void SetLookupTableTransferFunction(vtk1DLookupTableTransferFunction*);
vtkGetObjectMacro(LookupTableTransferFunction, vtk1DLookupTableTransferFunction);
void SetGaussianTransferFunction(vtk1DGaussianTransferFunction*);
vtkGetObjectMacro(GaussianTransferFunction, vtk1DGaussianTransferFunction);
virtual void BuildDefaultTransferFunctions();
// 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);
// map a value and store it in the output at the given index
// using the Lookup Table
virtual double MapValue(double value, double* range);
// overloaded to take into account the sub Transfet functions
virtual unsigned long GetMTime();
virtual void SetInputRange(double*);
virtual void SetInputRange(double, double);
virtual void SetVectorComponent(int);
virtual void SetUseScalarRange(int);
protected:
vtk1DTransferFunctionChooser();
~vtk1DTransferFunctionChooser();
int TransferFunctionMode;
vtk1DLookupTableTransferFunction* LookupTableTransferFunction;
vtk1DGaussianTransferFunction* GaussianTransferFunction;
private:
vtk1DTransferFunctionChooser(const vtk1DTransferFunctionChooser&); // Not implemented.
void operator=(const vtk1DTransferFunctionChooser&); // Not implemented.
};
#endif
|