/usr/include/paraview/vtkRedistributePolyData.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 | /*=========================================================================
Program: ParaView
Module: vtkRedistributePolyData.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.
=========================================================================*/
/*----------------------------------------------------------------------------
Copyright (c) Los Alamos National Laboratory
See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
----------------------------------------------------------------------------*/
// .NAME vtkRedistributePolyData - redistribute poly cells from other processes
// (special version to color according to processor)
#ifndef vtkRedistributePolyData_h
#define vtkRedistributePolyData_h
#include "vtkPolyDataAlgorithm.h"
#include "vtkPVVTKExtensionsRenderingModule.h" // needed for export macro
//*******************************************************************
class vtkDataArray;
class vtkDataSetAttributes;
class vtkMultiProcessController;
class vtkSocketController;
class VTKPVVTKEXTENSIONSRENDERING_EXPORT vtkRedistributePolyData : public vtkPolyDataAlgorithm
{
public:
vtkTypeMacro(vtkRedistributePolyData, vtkPolyDataAlgorithm);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
static vtkRedistributePolyData *New();
// Description:
// The filter needs a controller to determine which process it is in.
virtual void SetController(vtkMultiProcessController*);
vtkGetObjectMacro(Controller, vtkMultiProcessController);
vtkGetMacro(ColorProc,int);
vtkSetMacro(ColorProc,int);
void SetColorProc() { this->ColorProc = 1; };
// Description:
// These are here for ParaView compatibility. Not used.
virtual void SetSocketController(vtkSocketController*) {};
virtual void SetPassThrough(int) {};
virtual int GetPassThrough() { return 0; };
vtkBooleanMacro(PassThrough, int);
protected:
vtkRedistributePolyData();
~vtkRedistributePolyData();
//BTX
enum {
CELL_ID_TAG = 10,
POINT_COORDS_TAG = 20,
NUM_POINTS_TAG = 30,
NUM_CELLS_TAG = 40,
BOUNDS_TAG = 60,
CNT_SEND_TAG = 80,
CNT_REC_TAG = 90,
SEND_PROC_TAG = 100,
SEND_NUM_TAG = 110,
REC_PROC_TAG = 120,
REC_NUM_TAG = 130,
NUM_CURR_CELLS_TAG = 140,
CELL_CNT_TAG = 150,
CELL_TAG = 160,
POINTS_SIZE_TAG = 170,
POINTS_TAG = 180
};
class VTKPVVTKEXTENSIONSRENDERING_EXPORT vtkCommSched
{
public:
vtkCommSched();
~vtkCommSched();
int SendCount;
int ReceiveCount;
int* SendTo;
int* ReceiveFrom;
vtkIdType* NumberOfCells;
vtkIdType** SendNumber;
vtkIdType** ReceiveNumber;
vtkIdType*** SendCellList;
vtkIdType** KeepCellList;
private:
vtkCommSched(const vtkCommSched&); // Not implemented
void operator=(const vtkCommSched&); // Not implemented
};
//ETX
virtual void MakeSchedule (vtkPolyData* input, vtkCommSched*);
void OrderSchedule (vtkCommSched*);
void SendCellSizes (vtkIdType*, vtkIdType*, vtkPolyData*, int,
vtkIdType&, vtkIdType*, vtkIdType**);
void CopyCells (vtkIdType*,vtkPolyData*, vtkPolyData*, vtkIdType**);
void SendCells (vtkIdType*, vtkIdType*, vtkPolyData*, vtkPolyData*,
int, vtkIdType&, vtkIdType*, vtkIdType**);
void ReceiveCells (vtkIdType*, vtkIdType*, vtkPolyData*, int,
vtkIdType*, vtkIdType*, vtkIdType, vtkIdType);
void FindMemReq (vtkIdType*, vtkPolyData*, vtkIdType&, vtkIdType*);
void AllocateCellDataArrays (vtkDataSetAttributes*, vtkIdType**,
int, vtkIdType*);
void AllocatePointDataArrays (vtkDataSetAttributes*, vtkIdType*,
int, vtkIdType);
void AllocateArrays (vtkDataArray*, vtkIdType);
void CopyDataArrays(vtkDataSetAttributes*, vtkDataSetAttributes*,
vtkIdType, vtkIdType*, int);
void CopyCellBlockDataArrays(vtkDataSetAttributes* ,
vtkDataSetAttributes* ,
vtkIdType , vtkIdType,
vtkIdType, vtkIdType, int);
void CopyArrays (vtkDataArray*, vtkDataArray*, vtkIdType, vtkIdType*,
int);
void CopyBlockArrays (vtkDataArray*, vtkDataArray*, vtkIdType,
vtkIdType, vtkIdType, vtkIdType, int);
void SendDataArrays (vtkDataSetAttributes*, vtkDataSetAttributes*,
vtkIdType, int, vtkIdType*, int);
void SendCellBlockDataArrays (vtkDataSetAttributes*,
vtkDataSetAttributes*,
vtkIdType, int, vtkIdType, int);
void SendArrays (vtkDataArray*, vtkIdType, int,
vtkIdType*, int);
void SendBlockArrays (vtkDataArray*, vtkIdType, int,
vtkIdType, int);
void ReceiveDataArrays (vtkDataSetAttributes*, vtkIdType, int,
vtkIdType*, int);
void ReceiveArrays (vtkDataArray*, vtkIdType, int,
vtkIdType*, int);
int RequestData(vtkInformation* request,
vtkInformationVector** inputVector,
vtkInformationVector* outputVector);
// Do this as a proprocessing step.
void CompleteInputArrays(vtkPolyData* input);
void ReceiveInputArrays(vtkDataSetAttributes* attr, int recFrom);
void SendInputArrays(vtkDataSetAttributes* attr, int sendTo);
int DoubleCheckArrays(vtkPolyData* input);
vtkMultiProcessController *Controller;
int ColorProc; // Set to 1 to color data according to processor
private:
vtkRedistributePolyData(const vtkRedistributePolyData&); // Not implemented
void operator=(const vtkRedistributePolyData&); // Not implemented
};
//****************************************************************
#endif
|