This file is indexed.

/usr/include/paraview/vtkSMParaViewPipelineControllerWithRendering.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
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
147
148
149
/*=========================================================================

  Program:   ParaView
  Module:    vtkSMParaViewPipelineControllerWithRendering.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 vtkSMParaViewPipelineControllerWithRendering
// .SECTION Description
// vtkSMParaViewPipelineControllerWithRendering overrides
// vtkSMParaViewPipelineController to add support for initializing rendering
// proxies appropriately. vtkSMParaViewPipelineControllerWithRendering uses
// vtkObjectFactory mechanisms to override vtkSMParaViewPipelineController's
// creation. One should not need to create or use this class directly (excepting
// when needing to subclass). Simply create vtkSMParaViewPipelineController. If
// the application is linked with the rendering module, then this class will be
// instantiated instead of vtkSMParaViewPipelineController automatically.
//
// vtkSMParaViewPipelineControllerWithRendering also adds new API to control
// representation visibility and manage creation of views. To use that API
// clients can instantiate vtkSMParaViewPipelineControllerWithRendering. Just
// like vtkSMParaViewPipelineController, this class also uses vtkObjectFactory
// mechanisms to enable overriding by clients at compile time.

#ifndef vtkSMParaViewPipelineControllerWithRendering_h
#define vtkSMParaViewPipelineControllerWithRendering_h

#include "vtkPVServerManagerRenderingModule.h" //needed for exports
#include "vtkSMParaViewPipelineController.h"

class vtkSMSourceProxy;
class vtkSMViewLayoutProxy;
class vtkSMViewProxy;

class VTKPVSERVERMANAGERRENDERING_EXPORT vtkSMParaViewPipelineControllerWithRendering :
  public vtkSMParaViewPipelineController
{
public:
  static vtkSMParaViewPipelineControllerWithRendering* New();
  vtkTypeMacro(vtkSMParaViewPipelineControllerWithRendering, vtkSMParaViewPipelineController);
  void PrintSelf(ostream& os, vtkIndent indent);

  // Description:
  // Show the output data in the view. If data cannot be shown in the view,
  // returns NULL. If \c view is NULL, this simply calls ShowInPreferredView().
  virtual vtkSMProxy* Show(
    vtkSMSourceProxy* producer, int outputPort, vtkSMViewProxy* view);

  // Description:
  // Opposite of Show(). Locates the representation for the producer and then
  // hides it, if found. Returns that representation, if found.
  virtual vtkSMProxy* Hide(
    vtkSMSourceProxy* producer, int outputPort, vtkSMViewProxy* view);

  // Description:
  // Same as above, except that when we already have the representation located.
  virtual void Hide(vtkSMProxy* repr, vtkSMViewProxy* view);

  // Description:
  // Alternative method to call Show and Hide using a visibility flag.
  vtkSMProxy* SetVisibility(
    vtkSMSourceProxy* producer, int outputPort, vtkSMViewProxy* view, bool visible)
    {
    return (visible?
      this->Show(producer, outputPort, view):
      this->Hide(producer, outputPort, view));
    }

  // Description:
  // Returns whether the producer/port are shown in the given view.
  virtual bool GetVisibility(
    vtkSMSourceProxy* producer, int outputPort, vtkSMViewProxy* view);

  // Description:
  // Same as Show() except that if the \c view is NULL or not the "preferred"
  // view for the producer's output, this method will create a new view and show
  // the data in that new view. Returns the view in which the data ends up being
  // shown, if any. It may return NULL if the \c view is not the "preferred"
  // view and "preferred" view could not be determined or created.
  virtual vtkSMViewProxy* ShowInPreferredView(
    vtkSMSourceProxy* producer, int outputPort, vtkSMViewProxy* view);

  // Description:
  // Returns the name for the preferred view type, if there is any.
  virtual const char* GetPreferredViewType(vtkSMSourceProxy* producer, int outputPort);

  // Description:
  // Overridden to create color and opacity transfer functions if applicable.
  // While it is tempting to add any default property setup logic in such
  // overrides, we must keep such overrides to a minimal and opting for domains
  // that set appropriate defaults where as much as possible.
  virtual bool RegisterRepresentationProxy(vtkSMProxy* proxy);

  // Description:
  // Control how scalar bar visibility is updated by the Hide call.
  static void SetHideScalarBarOnHide(bool);

  // Description:
  // Control whether representations try to maintain properties from an input
  // representation, if present. e.g. if you "Transform" the representation for
  // a source, then any filter that you connect to it should be transformed as
  // well.
  static void SetInheritRepresentationProperties(bool);
  static bool GetInheritRepresentationProperties();

  // Description:
  // Methods to save/capture images from views.
  virtual bool WriteImage(vtkSMViewProxy* view,
      const char* filename, int magnification, int quality);
  virtual bool WriteImage(vtkSMViewLayoutProxy* layout,
      const char* filename, int magnification, int quality);

  // Description:
  // Overridden to handle default ColorArrayName for representations correctly.
  virtual bool PostInitializeProxy(vtkSMProxy* proxy);

  // Description:
  // Overridden to place the view in a layout on creation.
  virtual bool RegisterViewProxy(vtkSMProxy* proxy, const char* proxyname);
  using Superclass::RegisterViewProxy;

  // Description:
  // Register layout proxy.
  virtual bool RegisterLayoutProxy(vtkSMProxy* proxy, const char* proxyname=NULL);

//BTX
protected:
  vtkSMParaViewPipelineControllerWithRendering();
  ~vtkSMParaViewPipelineControllerWithRendering();

  virtual void UpdatePipelineBeforeDisplay(
    vtkSMSourceProxy* producer, int outputPort, vtkSMViewProxy* view);

private:
  vtkSMParaViewPipelineControllerWithRendering(const vtkSMParaViewPipelineControllerWithRendering&); // Not implemented
  void operator=(const vtkSMParaViewPipelineControllerWithRendering&); // Not implemented
  static bool HideScalarBarOnHide;
  static bool InheritRepresentationProperties;
//ETX
};

#endif