/usr/include/paraview/vtkPVHistogramChartRepresentation.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 107 108 109 110 111 112 113 | /*=========================================================================
Program: ParaView
Module: vtkPVHistogramChartRepresentation.h
Copyright (c) Kitware, Inc.
All rights reserved.
See Copyright.txt or http://www.paraview.org/HTML/Copyright.html 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 vtkPVHistogramChartRepresentation
// .SECTION Description
#ifndef vtkPVHistogramChartRepresentation_h
#define vtkPVHistogramChartRepresentation_h
#include "vtkXYChartRepresentation.h"
class vtkDataObject;
class vtkInformationVector;
class vtkPExtractHistogram;
class vtkSelection;
class VTKPVCLIENTSERVERCORERENDERING_EXPORT vtkPVHistogramChartRepresentation : public vtkXYChartRepresentation
{
public:
static vtkPVHistogramChartRepresentation* New();
vtkTypeMacro(vtkPVHistogramChartRepresentation, vtkXYChartRepresentation);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// Controls which input data component should be binned, for input arrays
// with more-than-one component
void SetComponent(int);
int GetComponent();
// Description:
// Controls the number of bins N in the output histogram data
void SetBinCount(int);
int GetBinCount();
// Description:
// Get/Set custom bin ranges to use. These are used only when
// UseCustomBinRanges is set to true.
void SetCustomBinRanges(double min, double max);
double* GetCustomBinRanges();
// Description:
// When set to true, CustomBinRanges will be used instead of using the full
// range for the selected array. By default, set to false.
void SetUseCustomBinRanges(bool);
bool GetUseCustomBinRanges();
// Description:
// Sets the color for the histograms.
void SetHistogramColor(double r, double g, double b);
// Description
// Sets the histogram to be color mapped by the scalar.
void SetUseColorMapping(bool colorMapping);
// Description
// Sets the lookup table that is used for color mapping by the scalar.
void SetLookupTable(vtkScalarsToColors* lut);
// Description:
// Set the line style for the histogram.
void SetHistogramLineStyle(int style);
// Description:
// Method to be overrided to transform input data to a vtkTable.
virtual vtkDataObject* TransformInputData(vtkInformationVector** inputVector,
vtkDataObject* data);
// Description:
// Overload the vtkAlgorithm method to update after the change
virtual void SetInputArrayToProcess(int idx, int port, int connection,
int fieldAssociation, const char *name);
using Superclass::SetInputArrayToProcess;
// Description:
// Overridden to transform id-based selection produced by the histogram view
// to a threshold-based selection.
virtual bool MapSelectionToInput(vtkSelection*);
// Description:
// Inverse of MapSelectionToInput().
virtual bool MapSelectionToView(vtkSelection* sel);
//BTX
protected:
vtkPVHistogramChartRepresentation();
~vtkPVHistogramChartRepresentation();
virtual void PrepareForRendering();
vtkPExtractHistogram* ExtractHistogram;
private:
vtkPVHistogramChartRepresentation(const vtkPVHistogramChartRepresentation&); // Not implemented
void operator=(const vtkPVHistogramChartRepresentation&); // Not implemented
std::string ArrayName;
int AttributeType;
//ETX
};
#endif
|