1 #ifndef vtkExtractCellType_h
2 #define vtkExtractCellType_h
4 #include "MEDReaderIOModule.h" // for export macro
5 #include "vtkDataSetAlgorithm.h"
6 #include "vtkExtractSelection.h"
9 class vtkDataArraySelection;
12 class MEDREADERIO_EXPORT vtkExtractCellType : public vtkExtractSelection
15 static vtkExtractCellType* New();
16 vtkTypeMacro(vtkExtractCellType, vtkExtractSelection);
17 void PrintSelf(ostream& os, vtkIndent indent) override;
19 virtual int GetNumberOfGeoTypesArrays();
20 const char *GetGeoTypesArrayName(int index);
21 int GetGeoTypesArrayStatus(const char *name);
22 virtual void SetGeoTypesStatus(const char *name, int status);
24 vtkSetMacro(InsideOut, bool);
28 ~vtkExtractCellType();
30 int RequestInformation(vtkInformation* req, vtkInformationVector** inInfo, vtkInformationVector* outInfo) override;
31 int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
33 void AppendToGeoTypes(vtkDataSet* dataset);
34 void SelectIds(vtkDataSet* dataset, vtkIdTypeArray* selArr);
37 vtkExtractCellType(const vtkExtractCellType&) = delete;
38 void operator=(const vtkExtractCellType&) = delete;
40 vtkNew<vtkDataArraySelection> FieldSelection;
41 int InsideOut = false;