1 /*=========================================================================
3 Program: Visualization Toolkit
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
14 =========================================================================*/
15 // .NAME VISU_CellDataToPointData - map cell data to point data
16 // .SECTION Description
17 // VISU_CellDataToPointData is a filter that transforms cell data (i.e., data
18 // specified per cell) into point data (i.e., data specified at cell
19 // points). The method of transformation is based on averaging the data
20 // values of all cells using a particular point. Optionally, the input cell
21 // data can be passed through to the output as well.
24 // This filter is an abstract filter, that is, the output is an abstract type
25 // (i.e., vtkDataSet). Use the convenience methods (e.g.,
26 // GetPolyDataOutput(), GetStructuredPointsOutput(), etc.) to get the type
27 // of output you want.
30 // vtkPointData vtkCellData vtkPointDataToCellData
33 // This file is a part of VTK library
34 // It has been renamed and modified for SALOME project
36 #ifndef __VISU_CellDataToPointData_h
37 #define __VISU_CellDataToPointData_h
39 #include "VISUPipeline.hxx"
40 #include <vtkDataSetAlgorithm.h>
44 class VISU_PIPELINE_EXPORT VISU_CellDataToPointData : public vtkDataSetAlgorithm
47 static VISU_CellDataToPointData *New();
48 vtkTypeRevisionMacro(VISU_CellDataToPointData,vtkDataSetAlgorithm);
49 void PrintSelf(ostream& os, vtkIndent indent);
52 // Control whether the input cell data is to be passed to the output. If
53 // on, then the input cell data is passed through to the output; otherwise,
54 // only generated point data is placed into the output.
55 vtkSetMacro(PassCellData,int);
56 vtkGetMacro(PassCellData,int);
57 vtkBooleanMacro(PassCellData,int);
60 VISU_CellDataToPointData();
61 ~VISU_CellDataToPointData() {};
63 virtual int RequestData(vtkInformation* request,
64 vtkInformationVector** inputVector,
65 vtkInformationVector* outputVector);
69 VISU_CellDataToPointData(const VISU_CellDataToPointData&); // Not implemented.
70 void operator=(const VISU_CellDataToPointData&); // Not implemented.