00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: VISU_CellDataToPointData.hxx,v $ 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00015 // .NAME VISU_CellDataToPointData - map cell data to point data 00016 // .SECTION Description 00017 // VISU_CellDataToPointData is a filter that transforms cell data (i.e., data 00018 // specified per cell) into point data (i.e., data specified at cell 00019 // points). The method of transformation is based on averaging the data 00020 // values of all cells using a particular point. Optionally, the input cell 00021 // data can be passed through to the output as well. 00022 00023 // .SECTION Caveats 00024 // This filter is an abstract filter, that is, the output is an abstract type 00025 // (i.e., vtkDataSet). Use the convenience methods (e.g., 00026 // GetPolyDataOutput(), GetStructuredPointsOutput(), etc.) to get the type 00027 // of output you want. 00028 00029 // .SECTION See Also 00030 // vtkPointData vtkCellData vtkPointDataToCellData 00031 00032 // note from SALOME: 00033 // This file is a part of VTK library 00034 // It has been renamed and modified for SALOME project 00035 00036 #ifndef __VISU_CellDataToPointData_h 00037 #define __VISU_CellDataToPointData_h 00038 00039 #include <vtkDataSetAlgorithm.h> 00040 00041 class vtkDataSet; 00042 00043 class VTK_GRAPHICS_EXPORT VISU_CellDataToPointData : public vtkDataSetAlgorithm 00044 { 00045 public: 00046 static VISU_CellDataToPointData *New(); 00047 vtkTypeRevisionMacro(VISU_CellDataToPointData,vtkDataSetAlgorithm); 00048 void PrintSelf(ostream& os, vtkIndent indent); 00049 00050 // Description: 00051 // Control whether the input cell data is to be passed to the output. If 00052 // on, then the input cell data is passed through to the output; otherwise, 00053 // only generated point data is placed into the output. 00054 vtkSetMacro(PassCellData,int); 00055 vtkGetMacro(PassCellData,int); 00056 vtkBooleanMacro(PassCellData,int); 00057 00058 protected: 00059 VISU_CellDataToPointData(); 00060 ~VISU_CellDataToPointData() {}; 00061 00062 virtual int RequestData(vtkInformation* request, 00063 vtkInformationVector** inputVector, 00064 vtkInformationVector* outputVector); 00065 00066 int PassCellData; 00067 private: 00068 VISU_CellDataToPointData(const VISU_CellDataToPointData&); // Not implemented. 00069 void operator=(const VISU_CellDataToPointData&); // Not implemented. 00070 }; 00071 00072 #endif 00073 00074