/usr/include/paraview/vtkCPAdaptorAPI.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 | /*=========================================================================
Program: ParaView
Module: vtkCPAdaptorAPI.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 vtkCPAdaptorAPI_h
#define vtkCPAdaptorAPI_h
#include "vtkPVCatalystModule.h" // For windows import/export of shared libraries
#include "vtkObject.h"
class vtkCPDataDescription;
class vtkCPProcessor;
class vtkDataSet;
/// vtkCPAdaptorAPI provides the implementation for API exposed to typical
/// adaptor, such as C, Fortran.
class VTKPVCATALYST_EXPORT vtkCPAdaptorAPI : public vtkObject
{
public:
vtkTypeMacro(vtkCPAdaptorAPI, vtkObject);
/// call at the start of the simulation
static void CoProcessorInitialize();
/// call at the end of the simulation
static void CoProcessorFinalize();
/// this is the function that determines whether or not there
/// is anything to coprocess this time step
static void RequestDataDescription(int* timeStep, double* time,
int* coprocessThisTimeStep);
/// this function sets needgrid to 1 if it does not have a copy of the grid
/// it sets needgrid to 0 if it does have a copy of the grid but does not
/// check if the grid is modified or needs to be updated
static void NeedToCreateGrid(int* needGrid);
/// do the actual coprocessing. it is assumed that the vtkCPDataDescription
/// has been filled in elsewhere.
static void CoProcess();
/// provides access to the vtkCPDataDescription instance.
static vtkCPDataDescription* GetCoProcessorData()
{ return vtkCPAdaptorAPI::CoProcessorData; }
/// provides access to the vtkCPProcessor instance.
static vtkCPProcessor* GetCoProcessor()
{ return vtkCPAdaptorAPI::CoProcessor; }
protected:
static vtkCPDataDescription* CoProcessorData;
static vtkCPProcessor* CoProcessor;
// IsTimeDataSet is meant to be used to make sure that
// needtocoprocessthistimestep() is called before
// calling any of the other coprocessing functions.
// It is reset to falase after calling coprocess as well
// as if coprocessing is not needed for this time/time step
static bool IsTimeDataSet;
};
#endif
// VTK-HeaderTest-Exclude: vtkCPAdaptorAPI.h
|