/usr/include/paraview/vtkIntegrateAttributes.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 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkIntegrateAttributes.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm 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 vtkIntegrateAttributes - Integrates lines, surfaces and volume.
// .SECTION Description
// Integrates all point and cell data attributes while computing
// length, area or volume. Works for 1D, 2D or 3D. Only one dimensionality
// at a time. For volume, this filter ignores all but 3D cells. It
// will not compute the volume contained in a closed surface.
// The output of this filter is a single point and vertex. The attributes
// for this point and cell will contain the integration results
// for the corresponding input attributes.
#ifndef vtkIntegrateAttributes_h
#define vtkIntegrateAttributes_h
#include "vtkPVVTKExtensionsDefaultModule.h" //needed for exports
#include "vtkUnstructuredGridAlgorithm.h"
class vtkDataSet;
class vtkIdList;
class vtkInformation;
class vtkInformationVector;
class vtkDataSetAttributes;
class vtkMultiProcessController;
class VTKPVVTKEXTENSIONSDEFAULT_EXPORT vtkIntegrateAttributes : public vtkUnstructuredGridAlgorithm
{
public:
vtkTypeMacro(vtkIntegrateAttributes,vtkUnstructuredGridAlgorithm);
void PrintSelf(ostream& os, vtkIndent indent);
static vtkIntegrateAttributes *New();
void SetController(vtkMultiProcessController *controller);
//BTX
protected:
vtkIntegrateAttributes();
~vtkIntegrateAttributes();
vtkMultiProcessController* Controller;
virtual int RequestData(vtkInformation* request,
vtkInformationVector** inputVector,
vtkInformationVector* outputVector);
// Create a default executive.
virtual vtkExecutive* CreateDefaultExecutive();
virtual int FillInputPortInformation(int, vtkInformation*);
int CompareIntegrationDimension(vtkDataSet* output, int dim);
int IntegrationDimension;
// The length, area or volume of the data set. Computed by Execute;
double Sum;
// ToCompute the location of the output point.
double SumCenter[3];
void IntegratePolyLine(vtkDataSet* input,
vtkUnstructuredGrid* output,
vtkIdType cellId, vtkIdList* cellPtIds);
void IntegratePolygon(vtkDataSet* input,
vtkUnstructuredGrid* output,
vtkIdType cellId, vtkIdList* cellPtIds);
void IntegrateTriangleStrip(vtkDataSet* input,
vtkUnstructuredGrid* output,
vtkIdType cellId, vtkIdList* cellPtIds);
void IntegrateTriangle(vtkDataSet* input,
vtkUnstructuredGrid* output,
vtkIdType cellId, vtkIdType pt1Id,
vtkIdType pt2Id, vtkIdType pt3Id);
void IntegrateTetrahedron(vtkDataSet* input,
vtkUnstructuredGrid* output,
vtkIdType cellId, vtkIdType pt1Id,
vtkIdType pt2Id, vtkIdType pt3Id,
vtkIdType pt4Id);
void IntegratePixel(vtkDataSet* input,
vtkUnstructuredGrid* output,
vtkIdType cellId, vtkIdList* cellPtIds);
void IntegrateVoxel(vtkDataSet* input,
vtkUnstructuredGrid* output,
vtkIdType cellId, vtkIdList* cellPtIds);
void IntegrateGeneral1DCell(vtkDataSet* input,
vtkUnstructuredGrid* output,
vtkIdType cellId,
vtkIdList* cellPtIds);
void IntegrateGeneral2DCell(vtkDataSet* input,
vtkUnstructuredGrid* output,
vtkIdType cellId,
vtkIdList* cellPtIds);
void IntegrateGeneral3DCell(vtkDataSet* input,
vtkUnstructuredGrid* output,
vtkIdType cellId,
vtkIdList* cellPtIds);
void IntegrateSatelliteData(vtkDataSetAttributes* inda,
vtkDataSetAttributes* outda);
void ZeroAttributes(vtkDataSetAttributes* outda);
int PieceNodeMinToNode0 (vtkUnstructuredGrid *data);
void SendPiece(vtkUnstructuredGrid *src);
void ReceivePiece (vtkUnstructuredGrid *mergeTo, int fromId);
private:
vtkIntegrateAttributes(const vtkIntegrateAttributes&); // Not implemented.
void operator=(const vtkIntegrateAttributes&); // Not implemented.
class vtkFieldList;
vtkFieldList* CellFieldList;
vtkFieldList* PointFieldList;
int FieldListIndex;
void AllocateAttributes(
vtkFieldList& fieldList, vtkDataSetAttributes* outda);
void ExecuteBlock(vtkDataSet* input, vtkUnstructuredGrid* output,
int fieldset_index, vtkFieldList& pdList, vtkFieldList& cdList);
void IntegrateData1(vtkDataSetAttributes* inda,
vtkDataSetAttributes* outda,
vtkIdType pt1Id, double k,
vtkFieldList& fieldlist,
int fieldlist_index);
void IntegrateData2(vtkDataSetAttributes* inda,
vtkDataSetAttributes* outda,
vtkIdType pt1Id, vtkIdType pt2Id, double k,
vtkFieldList& fieldlist,
int fieldlist_index);
void IntegrateData3(vtkDataSetAttributes* inda,
vtkDataSetAttributes* outda, vtkIdType pt1Id,
vtkIdType pt2Id, vtkIdType pt3Id, double k,
vtkFieldList& fieldlist,
int fieldlist_index);
void IntegrateData4(vtkDataSetAttributes* inda,
vtkDataSetAttributes* outda, vtkIdType pt1Id,
vtkIdType pt2Id, vtkIdType pt3Id, vtkIdType pt4Id,
double k,
vtkFieldList& fieldlist,
int fieldlist_index);
public:
enum CommunicationIds
{
IntegrateAttrInfo=2000,
IntegrateAttrData
};
//ETX
};
#endif
|