]> SALOME platform Git repositories - modules/visu.git/blob - src/PIPELINE/VISU_CellDataToPointData.hxx
Salome HOME
0021711: [CEA 579] Simplify Properties dialog accordingly to dimension of mesh
[modules/visu.git] / src / PIPELINE / VISU_CellDataToPointData.hxx
1 /*=========================================================================
2
3   Program:   Visualization Toolkit
4   Module:    $RCSfile$
5
6   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7   All rights reserved.
8   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
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.
13
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.
22
23 // .SECTION Caveats
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.
28
29 // .SECTION See Also
30 // vtkPointData vtkCellData vtkPointDataToCellData
31
32 // note from SALOME:
33 // This file is a part of VTK library
34 // It has been renamed and modified for SALOME project
35
36 #ifndef __VISU_CellDataToPointData_h
37 #define __VISU_CellDataToPointData_h
38
39 #include "VISUPipeline.hxx"
40 #include <vtkDataSetAlgorithm.h>
41
42 class vtkDataSet;
43
44 class VISU_PIPELINE_EXPORT VISU_CellDataToPointData : public vtkDataSetAlgorithm
45 {
46 public:
47   static VISU_CellDataToPointData *New();
48   vtkTypeRevisionMacro(VISU_CellDataToPointData,vtkDataSetAlgorithm);
49   void PrintSelf(ostream& os, vtkIndent indent);
50
51   // Description:
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);
58
59 protected:
60   VISU_CellDataToPointData();
61   ~VISU_CellDataToPointData() {};
62
63   virtual int RequestData(vtkInformation* request,
64                           vtkInformationVector** inputVector,
65                           vtkInformationVector* outputVector);
66
67   int PassCellData;
68 private:
69   VISU_CellDataToPointData(const VISU_CellDataToPointData&);  // Not implemented.
70   void operator=(const VISU_CellDataToPointData&);  // Not implemented.
71 };
72
73 #endif
74
75