From: apo Date: Wed, 30 Mar 2005 14:05:52 +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: TG2-Start-D5-38-2003~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0b396b56b138d2c489386db34aa2e8a65e4c068e;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 = "<