This file is indexed.

/usr/include/paraview/pqRepresentation.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
/*=========================================================================

   Program: ParaView
   Module:    pqRepresentation.h

   Copyright (c) 2005-2008 Sandia Corporation, Kitware Inc.
   All rights reserved.

   ParaView is a free software; you can redistribute it and/or modify it
   under the terms of the ParaView license version 1.2. 

   See License_v1.2.txt for the full ParaView license.
   A copy of this license can be obtained by contacting
   Kitware Inc.
   28 Corporate Drive
   Clifton Park, NY 12065
   USA

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

=========================================================================*/
#ifndef _pqRepresentation_h
#define _pqRepresentation_h


#include "pqProxy.h"
#include <QPair>

class pqView;
class pqServer;
class vtkSMViewProxy;

/// This is PQ representation for a single representation.
/// This class provides API for the Qt layer to access representations.

class PQCORE_EXPORT pqRepresentation : public pqProxy
{
  Q_OBJECT
public:
  // Constructor.
  // \c group :- smgroup in which the proxy has been registered.
  // \c name  :- smname as which the proxy has been registered.
  // \c repr  :- the representation proxy.
  // \c server:- server on which the proxy is created.
  // \c parent:- QObject parent.
  pqRepresentation(const QString& group, 
                   const QString& name, 
                   vtkSMProxy* repr, 
                   pqServer* server, 
                   QObject* parent=NULL);
  virtual ~pqRepresentation();

  /// Returns if the status of the visbility property of this display.
  /// Note that for a display to be visible in a view,
  /// it must be added to that view as well as 
  /// visibility must be set to 1.
  virtual bool isVisible() const;

  /// Set the visibility. Note that this affects the visibility of the
  /// display in the view it has been added to, if any. This method does not 
  /// call a re-render on the view, caller must call that explicitly.
  virtual void setVisible(bool visible);

  /// Returns the view to which this representation has been added, if any.
  pqView* getView() const;

  /// Returns the view proxy to which this representation has been added, if
  /// any.
  vtkSMViewProxy* getViewProxy() const;

public slots:

  /// Renders the view to which this representation has been added if any.
  /// If \c force is true, then the render is triggerred immediately, otherwise,
  /// it will be called on idle.
  void renderView(bool force);

  /// Simply calls renderView(false);
  void renderViewEventually()
    { this->renderView(false); }

signals:
  /// Fired when the visibility property of the underlying display changes.
  /// It must be noted that this is fired on the property change, the property
  /// is not pushed yet, hence the visibility of the underlying VTK prop
  /// hasn't changed.
  void visibilityChanged(bool visible);

  /// Fired whenever Update() is called on the underlying display proxy.
  void updated();
protected slots:
  /// called when the display visibility property changes.
  virtual void onVisibilityChanged();

protected:
  friend class pqView;

  /// Called by pqView when this representation gets added to / removed from the
  /// view.
  virtual void setView(pqView*);

private:
  class pqInternal;
  pqInternal *Internal; 
};

#endif