/usr/include/paraview/vtkPythonExtractSelection.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 | /*=========================================================================
Program: ParaView
Module: $RCSfile$
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 vtkPythonExtractSelection
// .SECTION Description
// vtkPythonExtractSelection is a used to extra cells/points using numpy. This
// enables creation of arbitrary queries to be used as the selection criteria.
#ifndef __vtkPythonExtractSelection_h
#define __vtkPythonExtractSelection_h
#include "vtkPVClientServerCoreCoreModule.h" //needed for exports
#include "vtkProgrammableFilter.h"
class vtkCharArray;
class vtkDataSet;
class vtkTable;
class vtkSelection;
class vtkUnstructuredGrid;
class VTKPVCLIENTSERVERCORECORE_EXPORT vtkPythonExtractSelection : public vtkProgrammableFilter
{
public:
static vtkPythonExtractSelection* New();
vtkTypeMacro(vtkPythonExtractSelection, vtkProgrammableFilter);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// Convenience method to specify the selection connection (2nd input
// port)
void SetSelectionConnection(vtkAlgorithmOutput* algOutput)
{
this->SetInputConnection(1, algOutput);
}
// Description:
// Match the PreserveTopology option available on vtkExtractSelectionBase.
vtkSetClampMacro(PreserveTopology, int, 0, 1);
vtkGetMacro(PreserveTopology, int);
vtkBooleanMacro(PreserveTopology, int);
// Description:
// Internal method.
vtkDataObject* ExtractElements(vtkDataObject* data, vtkSelection* selection, vtkCharArray* mask);
//BTX
protected:
vtkPythonExtractSelection();
~vtkPythonExtractSelection();
// Description:
// For internal use only.
void Exec();
vtkUnstructuredGrid* ExtractPoints(vtkDataSet* data, vtkCharArray* mask);
vtkUnstructuredGrid* ExtractCells(vtkDataSet* data, vtkCharArray* mask);
vtkTable* ExtractElements(vtkTable* data, vtkCharArray* mask);
virtual int FillInputPortInformation(int port, vtkInformation *info);
// Description:
// Creates whatever output data set type is selected.
virtual int RequestDataObject(vtkInformation* request,
vtkInformationVector** inputVector,
vtkInformationVector* outputVector);
int PreserveTopology;
private:
vtkPythonExtractSelection(const vtkPythonExtractSelection&); // Not implemented
void operator=(const vtkPythonExtractSelection&); // Not implemented
// Description:
// For internal use only.
static void ExecuteScript(void *);
//ETX
};
#endif
|