Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef VISU_LabelPointsFilter_HeaderFile
00026 #define VISU_LabelPointsFilter_HeaderFile
00027
00028 #include "VISUPipeline.hxx"
00029 #include <vtkPolyDataAlgorithm.h>
00030
00031 class vtkPolyData;
00032
00033 class VISU_PIPELINE_EXPORT VISU_LabelPointsFilter : public vtkPolyDataAlgorithm
00034 {
00035 public:
00036 vtkTypeMacro(VISU_LabelPointsFilter, vtkPolyDataAlgorithm);
00037
00038 static VISU_LabelPointsFilter* New();
00039
00040 void SetPointsNb(int theNb);
00041
00042 int GetPointsNb() const { return myPointsNb; }
00043
00044 protected:
00045 VISU_LabelPointsFilter();
00046
00047 virtual ~VISU_LabelPointsFilter();
00048
00049 virtual int RequestData(vtkInformation* request,
00050 vtkInformationVector** inputVector,
00051 vtkInformationVector* outputVector);
00052
00053 virtual int RequestUpdateExtent(vtkInformation*,
00054 vtkInformationVector**,
00055 vtkInformationVector*);
00056
00057
00058 void TraverseAndMark (vtkIdList* theWave,
00059 vtkIdList* theWave2,
00060 int* theVisited,
00061 vtkIdType* thePointMap,
00062 int& theRegionNumber,
00063 vtkIdType& thePointNumber,
00064 vtkPolyData* theMesh);
00065
00066 int GetRegions(vtkPolyData* theInput,
00067 vtkPolyData* theOutput);
00068
00069 int myPointsNb;
00070
00071 };
00072
00073
00074 #endif