]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
To customize "shrink" functionality for the presentations
authorapo <apo@opencascade.com>
Tue, 15 May 2007 06:56:10 +0000 (06:56 +0000)
committerapo <apo@opencascade.com>
Tue, 15 May 2007 06:56:10 +0000 (06:56 +0000)
src/PIPELINE/VISU_CutLinesPL.cxx
src/PIPELINE/VISU_DeformedShapePL.cxx
src/PIPELINE/VISU_GaussPointsPL.cxx
src/PIPELINE/VISU_PipeLine.cxx
src/PIPELINE/VISU_PolyDataPL.cxx
src/PIPELINE/VISU_ScalarMapOnDeformedShapePL.cxx
src/PIPELINE/VISU_ScalarMapPL.cxx
src/PIPELINE/VISU_StreamLinesPL.cxx
src/VISUGUI/VisuGUI.cxx

index 7e9c4936d7c78a69438dafb247b11c9d0e8fd33d..0d3487ee2cefc3c37dd508e76309da6faf0ab317 100644 (file)
@@ -39,6 +39,8 @@ vtkStandardNewMacro(VISU_CutLinesPL);
 VISU_CutLinesPL
 ::VISU_CutLinesPL()
 {
+  SetIsShrinkable(false);
+
   myCondition = 1;
   myPosition = 0;
 }
index 2c21bf189a97a259c8359c64af2294881a70f22b..6d45630ac48d45e7cc06890d10ac8ea6a7d90e34 100644 (file)
@@ -41,6 +41,8 @@ VISU_DeformedShapePL
 ::VISU_DeformedShapePL():
   myScaleFactor(0.0)
 {
+  SetIsShrinkable(true);
+
   myWarpVector = vtkWarpVector::New();
   myCellDataToPointData = vtkCellDataToPointData::New();
 }
index 7fd8dd6b87a74fe49bf5bcee040dae3c0ff47eae..982ee719eb4f0826480a1353ef979db01d356ef4 100644 (file)
@@ -54,6 +54,8 @@ VISU_GaussPointsPL
   myScaleFactor(0.0),
   myMagnificationIncrement(2)
 {
+  SetIsShrinkable(false);
+
   myWarpVector = vtkWarpVector::New();
 
   myGlyph = vtkGlyph3D::New();
index cf976dce909c1c7845a79c1b916e54da12548e10..0b8b845a211146b8d955e0e922ecb27c815731e5 100644 (file)
@@ -47,7 +47,7 @@ static int MYDEBUG = 0;
 //----------------------------------------------------------------------------
 VISU_PipeLine
 ::VISU_PipeLine():
-  myIsShrinkable(false)
+  myIsShrinkable(true)
 {
   if(MYDEBUG) MESSAGE("VISU_PipeLine::VISU_PipeLine - "<<this);
 }
index a10d93d3f50439d52c927d6bcb307b192b3bbc54..76e4c05a512c7856f85ce574170bd6f66da9e2ff 100644 (file)
@@ -56,8 +56,6 @@ VISU_PolyDataPL
 {
   if(MYDEBUG) MESSAGE("VISU_PolyDataPL::VISU_PolyDataPL - "<<this);
 
-  SetIsShrinkable(true);
-
   // Clipping functionality
   myExtractPolyDataGeometry->Delete();
   myExtractPolyDataGeometry->SetStoreMapping(true);
index a1693f31f1903adfa34550392ee7efe8958e8ffb..db6a3cb3572c09dbb95dff9af1dbc9fa0d3fefac 100644 (file)
@@ -55,6 +55,8 @@ vtkStandardNewMacro(VISU_ScalarMapOnDeformedShapePL)
 VISU_ScalarMapOnDeformedShapePL
 ::VISU_ScalarMapOnDeformedShapePL()
 {
+  SetIsShrinkable(true);
+
   myDeformVectors = vtkWarpVector::New();
   myMergeFilter   = VISU_MergeFilter::New();
   myExtractorScalars = VISU_Extractor::New();
index 085eb2f85a5c93152e9ef7140ec8f60793985ed9..8f5d375476a294d992032e8889ac5e4c8a92aec5 100644 (file)
@@ -53,6 +53,8 @@ VISU_ScalarMapPL
   myAppendFilter(VISU_AppendFilter::New()),
   myMergeFilter(VISU_MergeFilter::New())
 {
+  SetIsShrinkable(true);
+
   myAppendFilter->SetMergingInputs(true);
   myAppendFilter->Delete();
 
index 8e77ad06cb858afa6315f5a178ecd8375f2c9922..bdcbbf094c66739c94e43c9dd2ad04056fb1d3d2 100644 (file)
@@ -58,6 +58,8 @@ vtkStandardNewMacro(VISU_StreamLinesPL);
 VISU_StreamLinesPL
 ::VISU_StreamLinesPL()
 {
+  SetIsShrinkable(false);
+
   myStream = vtkStreamLine::New();
   myCenters = vtkCellCenters::New();
   myGeomFilter = VTKViewer_GeometryFilter::New();
index 181412c75f07f3a0cf9550cfd1aa95aacd9fe0e2..caa01983ea2d6b3c8a87949268c87106478e9d70 100644 (file)
@@ -2569,8 +2569,7 @@ VisuGUI
   QString aSurfFrameType   = " and $type in {'VISU::TMESH' 'VISU::TSCALARMAP''VISU::TDEFORMEDSHAPE' 'VISU::TSCALARMAPONDEFORMEDSHAPE'}";
   QString aSurfType   = " and $type in {'VISU::TMESH' 'VISU::TSCALARMAP' 'VISU::TSCALARMAP' 'VISU::TISOSURFACE' 'VISU::TDEFORMEDSHAPE' 'VISU::TCUTPLANES' "
                         " 'VISU::TPLOT3D' 'VISU::TSCALARMAPONDEFORMEDSHAPE'}";
-  QString aShrinkType = " and $type in {'VISU::TMESH' 'VISU::TSCALARMAP' 'VISU::TSCALARMAP' 'VISU::TISOSURFACE' "
-                        "'VISU::TDEFORMEDSHAPE' 'VISU::TCUTPLANES' 'VISU::TCUTLINES' 'VISU::TPLOT3D' 'VISU::TSCALARMAPONDEFORMEDSHAPE'}";
+  QString aShrinkType = " and $type in {'VISU::TMESH' 'VISU::TSCALARMAP' 'VISU::TDEFORMEDSHAPE' 'VISU::TSCALARMAPONDEFORMEDSHAPE'}";
   QString aLineType   = " and $type in {'VISU::TMESH' 'VISU::TSCALARMAP' 'VISU::TSCALARMAP' 'VISU::TISOSURFACE' 'VISU::TDEFORMEDSHAPE' "
                         "'VISU::TCUTPLANES' 'VISU::TCUTLINES' 'VISU::TSTREAMLINES' 'VISU::TPLOT3D' 'VISU::TSCALARMAPONDEFORMEDSHAPE' }";