This file is indexed.

/usr/include/paraview/pqDisplayArrayWidget.h is in paraview-dev 4.0.1-1ubuntu1.

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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
/*=========================================================================

  Program:   Visualization Toolkit
  Module:    pqDisplayArrayWidget.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 pqDisplayArrayWidget
// .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>


#ifndef _pqDisplayArrayWidget_h
#define _pqDisplayArrayWidget_h

#include "pqVariableType.h"
#include "pqComponentsModule.h"

#include <QWidget>
#include <QPointer>

class QComboBox;
class QHBoxLayout;

class pqDataRepresentation;
class pqPipelineRepresentation;
class vtkEventQtSlotConnect;
class pqScalarsToColors;

/// Provides a standard user interface for selecting among a collection
/// of dataset variables and .
class PQCOMPONENTS_EXPORT pqDisplayArrayWidget: public QWidget
{
  Q_OBJECT

public:
  pqDisplayArrayWidget( QWidget *parent=0 );
  ~pqDisplayArrayWidget();

  /// Removes all variables from the collection.
  void clear();

  /// Adds a variable to the collection.
  void addVariable(pqVariableType type, const QString& name, bool is_partial);

  /// Makes the given variable the "current" selection.  Emits the
  /// variableChanged() signal.
  void chooseVariable(pqVariableType type, const QString& name);

  /// Returns the display whose color this widget is currently
  /// editing.
  pqPipelineRepresentation* getRepresentation() const;

  /// Returns the current text in the combo box.
  QString getCurrentText() const;

  /// Set/Get the name to associate to non varying value.
  void setConstantVariableName(const QString& name);
  const QString& getConstantVariableName() const;

  // Set/Get the name of the property that controls the array name
  void  setPropertyArrayName(const QString&);
  const QString& propertyArrayName();

  // Set/Get the name of the property that controals the array component
  void  setPropertyArrayComponent(const QString&);
  const QString& propertyArrayComponent();

  QString currentVariableName();
  pqVariableType currentVariableType();

  void  setToolTip(const QString&);

public slots:
  /// set the display to get possible arrays.
  void setRepresentation(pqPipelineRepresentation* display);

  /// Called when the GUI must reload the arrays shown in the widget.
  /// i.e. this updates the domain for the combo box.
  void reloadGUI();
  void reloadComponents();

  signals:

  /// Signal emitted whenever the user chooses a variable,
  /// or chooseVariable() is called.
  /// This signal is fired only when the change is triggered by the wiget
  /// i.e. if the ServerManager property changes, this signal won't be fired,
  /// use \c modified() instead.
  void variableChanged(pqVariableType type, const QString& name);

  /// Fired when ever the color mode on the display changes
  /// either thorough this widget itself, of when the underlying SMObject
  /// changes.
  void modified();

  // Fired when the component has been modified
  // vectorMode is either vtkScalarToColors::MAGNITUDE
  // or vtkScalarToColors::COMPONENT.
  // comp is the component index.
  void componentChanged(int vectorMode, int comp);

protected slots:
  /// Called to emit the variableChanged() signal in response to user input
  /// or the chooseVariable() method.
  virtual void onVariableActivated(int row);
  virtual void onComponentActivated(int row);

  /// Called when any important property on the display changes.
  /// This updates the selected value.
  virtual void updateGUI();
  virtual void needReloadGUI();
  virtual void updateComponents();

protected:
  /// Converts a variable type and name into a packed string representation
  /// that can be used with a combo box.
  static const QStringList variableData(pqVariableType, const QString& name);

  const QString getArrayName() const;

private:
  class pqInternal;
  pqInternal* Internal;

};

#endif