From: apo Date: Wed, 30 Mar 2005 11:20:31 +0000 (+0000) Subject: Bug PAL7444 - display mesh takes a lot of more memory in 2.1.0 than in 2.0.0. X-Git-Tag: V2_2_3~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9b4f4d0c6dd77ec70e3d762e8963d5c1cca7df72;p=modules%2Fkernel.git Bug PAL7444 - display mesh takes a lot of more memory in 2.1.0 than in 2.0.0. --- 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 = "<