/usr/include/paraview/pqPythonView.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 | /*=========================================================================
Program: ParaView
Module: pqPythonView.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.
=========================================================================*/
#ifndef pqPythonView_h
#define pqPythonView_h
#include "pqView.h"
#include "pqSMProxy.h"
class vtkSMPythonViewProxy;
class PQCORE_EXPORT pqPythonView : public pqView
{
Q_OBJECT
typedef pqView Superclass;
public:
static QString pythonViewType() { return "PythonView"; }
// Constructor:
// \c type :- view type.
// \c group :- SManager registration group name.
// \c name :- SManager registration name.
// \c view :- RenderView proxy.
// \c server:- server on which the proxy is created.
// \c parent:- QObject parent.
pqPythonView(const QString& type,
const QString& group,
const QString& name,
vtkSMViewProxy* renModule,
pqServer* server,
QObject* parent=NULL);
// Destructor.
virtual ~pqPythonView();
/// Set/get the Python script
void setPythonScript(QString & script);
QString getPythonScript();
/// Get the view proxy as a vtkSMPythonViewProxy
vtkSMPythonViewProxy* getPythonViewProxy();
protected slots:
virtual void initializeAfterObjectsCreated();
/// Setups up RenderModule and QVTKWidget binding.
/// This method is called for all pqRenderView objects irrespective
/// of whether it is created from state/undo-redo/python or by the GUI. Hence
/// don't change any render module properties here.
virtual void initializeWidgets();
protected:
/// Overridden to popup the context menu, if some actions have been added
/// using addMenuAction.
virtual bool eventFilter(QObject* caller, QEvent* e);
/// Creates a new instance of the QWidget subclass to be used to show this
/// view.
virtual QWidget* createWidget();
/// Use this method to initialize the pqObject state using the
/// underlying vtkSMProxy. This needs to be done only once,
/// after the object has been created.
virtual void initialize();
/// On Mac, we usually try to cache the front buffer to avoid unecessary
// updates.
bool AllowCaching;
private:
pqPythonView(const pqPythonView&); // Not implemented.
void operator=(const pqPythonView&); // Not implemented.
class pqInternal;
pqInternal* Internal;
};
#endif
|