SALOME_ExtractUnstructuredGrid::~SALOME_ExtractUnstructuredGrid(){}
+void
+SALOME_ExtractUnstructuredGrid::
+SetModeOfChanging(SALOME_ExtractUnstructuredGrid::EChanging theChangeMode)
+{
+ if(theChangeMode != myChangeMode){
+ myChangeMode = theChangeMode;
+ Modified();
+ }
+}
+
+
+void
+SALOME_ExtractUnstructuredGrid::
+SetModeOfExtraction(SALOME_ExtractUnstructuredGrid::EExtraction theExtractionMode)
+{
+ if(theExtractionMode != myExtractionMode){
+ myExtractionMode = theExtractionMode;
+ Modified();
+ }
+}
+
+
+void
+SALOME_ExtractUnstructuredGrid::
+ClearRegisteredCellsWithType()
+{
+ if(IsCellsWithTypeRegistered()){
+ myCellTypes.clear();
+ Modified();
+ }
+}
+
+
void SALOME_ExtractUnstructuredGrid::RegisterCell(vtkIdType theCellId){
if(0 && MYDEBUG) MESSAGE("RegisterCell - theCellId = "<<theCellId);
myCellIds.insert(theCellId);
static SALOME_ExtractUnstructuredGrid *New();
enum EExtraction{ eCells, ePoints};
- void SetModeOfExtraction(EExtraction theExtractionMode){
- myExtractionMode = theExtractionMode; Modified();
- }
+ void SetModeOfExtraction(EExtraction theExtractionMode);
EExtraction GetModeOfExtraction(){ return myExtractionMode;}
enum EChanging{ ePassAll, eAdding, eRemoving};
- void SetModeOfChanging(EChanging theChangeMode){
- myChangeMode = theChangeMode;
- Modified();
- }
+ void SetModeOfChanging(EChanging theChangeMode);
EChanging GetModeOfChanging(){ return myChangeMode;}
// Remove the cell from the output
// Remove every cells with the type from the output
void RegisterCellsWithType(vtkIdType theCellType);
int IsCellsWithTypeRegistered() { return !myCellTypes.empty();}
- void ClearRegisteredCellsWithType() {
- myCellTypes.clear();
- Modified();
- }
+ void ClearRegisteredCellsWithType();
// Do the filter do some real work
int IsChanging() { return IsCellsRegistered() || IsCellsWithTypeRegistered();}