/usr/include/paraview/vtkPVPythonInformation.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 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 | /*=========================================================================
Program: ParaView
Module: vtkPVPythonInformation.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 vtkPVPythonInformation - Gets python features.
// .SECTION Description
// Get details of python availabilty on the root server.
#ifndef vtkPVPythonInformation_h
#define vtkPVPythonInformation_h
#include "vtkPVClientServerCoreCoreModule.h" //needed for exports
#include "vtkPVInformation.h"
#include <string> // for string type
class vtkClientServerStream;
class VTKPVCLIENTSERVERCORECORE_EXPORT vtkPVPythonInformation
: public vtkPVInformation
{
public:
static vtkPVPythonInformation* New();
vtkTypeMacro(vtkPVPythonInformation, vtkPVInformation);
void PrintSelf(ostream& os, vtkIndent indent);
void DeepCopy(vtkPVPythonInformation *info);
// Description:
// Transfer information about a single object into this object.
virtual void CopyFromObject(vtkObject*);
// Description:
// Same as DeepCopy for this object.
virtual void AddInformation(vtkPVInformation*);
// Description:
// Manage a serialized version of the information.
virtual void CopyToStream(vtkClientServerStream*);
virtual void CopyFromStream(const vtkClientServerStream*);
// Description:
// Whether the server was compiled with python support.
vtkSetMacro(PythonSupport, bool)
vtkGetMacro(PythonSupport, bool)
vtkBooleanMacro(PythonSupport, bool)
// Description:
// If GetPythonSupport() is true, returns the version of python detected on
// the server.
void SetPythonVersion(const std::string &arg)
{
if (arg != this->PythonVersion)
{
this->PythonVersion = arg;
this->Modified();
}
}
const std::string& GetPythonVersion()
{
return this->PythonVersion;
}
// Description:
// If GetPythonSupport() is true, returns the path to the python libraries
// detected on the server.
void SetPythonPath(const std::string &arg)
{
if (arg != this->PythonPath)
{
this->PythonPath = arg;
this->Modified();
}
}
const std::string& GetPythonPath()
{
return this->PythonPath;
}
// Description:
// Whether the numpy module is available on the server.
vtkSetMacro(NumpySupport, bool)
vtkGetMacro(NumpySupport, bool)
vtkBooleanMacro(NumpySupport, bool)
// Description:
// If GetNumpySupport() is true, returns the version of numpy detected on the
// server.
void SetNumpyVersion(const std::string &arg)
{
if (arg != this->NumpyVersion)
{
this->NumpyVersion = arg;
this->Modified();
}
}
const std::string& GetNumpyVersion()
{
return this->NumpyVersion;
}
// Description:
// If GetNumpySupport() is true, returns the path to numpy detected on the
// server.
void SetNumpyPath(const std::string &arg)
{
if (arg != this->NumpyPath)
{
this->NumpyPath = arg;
this->Modified();
}
}
const std::string& GetNumpyPath()
{
return this->NumpyPath;
}
// Description:
// Whether the matplotlib module is available on the server.
vtkSetMacro(MatplotlibSupport, bool)
vtkGetMacro(MatplotlibSupport, bool)
vtkBooleanMacro(MatplotlibSupport, bool)
// Description:
// If GetMatplotlibSupport() is true, returns the version of matplotlib
// detected on the server.
void SetMatplotlibVersion(const std::string &arg)
{
if (arg != this->MatplotlibVersion)
{
this->MatplotlibVersion = arg;
this->Modified();
}
}
const std::string& GetMatplotlibVersion()
{
return this->MatplotlibVersion;
}
// Description:
// If GetMatplotlibSupport() is true, returns the path to matplotlib detected
// on the server.
void SetMatplotlibPath(const std::string &arg)
{
if (arg != this->MatplotlibPath)
{
this->MatplotlibPath = arg;
this->Modified();
}
}
const std::string& GetMatplotlibPath()
{
return this->MatplotlibPath;
}
protected:
vtkPVPythonInformation();
~vtkPVPythonInformation();
bool PythonSupport;
std::string PythonPath;
std::string PythonVersion;
bool NumpySupport;
std::string NumpyVersion;
std::string NumpyPath;
bool MatplotlibSupport;
std::string MatplotlibVersion;
std::string MatplotlibPath;
private:
vtkPVPythonInformation(const vtkPVPythonInformation&); // Not implemented
void operator=(const vtkPVPythonInformation&); // Not implemented
};
#endif
|