Salome HOME
Bug PAL7444 - display mesh takes a lot of more memory in 2.1.0 than in 2.0.0.
authorapo <apo@opencascade.com>
Wed, 30 Mar 2005 14:05:52 +0000 (14:05 +0000)
committerapo <apo@opencascade.com>
Wed, 30 Mar 2005 14:05:52 +0000 (14:05 +0000)
src/VTKFilter/SALOME_ExtractUnstructuredGrid.cxx
src/VTKFilter/SALOME_ExtractUnstructuredGrid.h

index 2cc4930bc25c4bfc7314d0da9b9a0e4770422e81..6de6d5ac96a5c7648878acac146eee8e793a97b0 100644 (file)
@@ -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 = "<<theCellId);
   myCellIds.insert(theCellId);
index dc3bcc41aa6c424a352c557562d4cc27e8fa52a0..c507a312a859d7158b65276571fbb518e3d4135d 100644 (file)
@@ -42,16 +42,11 @@ public:
   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
@@ -65,10 +60,7 @@ public:
   // 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();}