From 9b4f4d0c6dd77ec70e3d762e8963d5c1cca7df72 Mon Sep 17 00:00:00 2001 From: apo Date: Wed, 30 Mar 2005 11:20:31 +0000 Subject: [PATCH] Bug PAL7444 - display mesh takes a lot of more memory in 2.1.0 than in 2.0.0. --- .../SALOME_ExtractUnstructuredGrid.cxx | 33 +++++++++++++++++++ .../SALOME_ExtractUnstructuredGrid.h | 14 ++------ 2 files changed, 36 insertions(+), 11 deletions(-) diff --git a/src/VTKFilter/SALOME_ExtractUnstructuredGrid.cxx b/src/VTKFilter/SALOME_ExtractUnstructuredGrid.cxx index 2cc4930bc..6de6d5ac9 100644 --- a/src/VTKFilter/SALOME_ExtractUnstructuredGrid.cxx +++ b/src/VTKFilter/SALOME_ExtractUnstructuredGrid.cxx @@ -61,6 +61,39 @@ SALOME_ExtractUnstructuredGrid::SALOME_ExtractUnstructuredGrid(): 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 = "<