From: vsr Date: Fri, 3 Jun 2011 09:55:41 +0000 (+0000) Subject: Merge from BR_Dev_For_6_3_1 03/06/2011 X-Git-Tag: V6_3_BR_20110607 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=38d0af4062f97c3486b91e99a64a2d7f80bfcde4;p=modules%2Fvisu.git Merge from BR_Dev_For_6_3_1 03/06/2011 --- diff --git a/src/OBJECT/VISU_Actor.cxx b/src/OBJECT/VISU_Actor.cxx index 0b76193f..dc25a52b 100644 --- a/src/OBJECT/VISU_Actor.cxx +++ b/src/OBJECT/VISU_Actor.cxx @@ -33,6 +33,7 @@ #include "VISU_SelectVisiblePoints.h" #include "VISU_PipeLine.hxx" +#include "VISU_UsedPointsFilter.hxx" #include "SVTK_Actor.h" #include "SVTK_Event.h" @@ -165,6 +166,9 @@ VISU_Actor myValCellCenters = VTKViewer_CellCenters::New(); myValCellCenters->SetInput(myValLblDataSet); + myValUsedPoints = VISU_UsedPointsFilter::New(); + myValUsedPoints->SetInput(myValLblDataSet); + myValMaskPoints = vtkMaskPoints::New(); myValMaskPoints->SetInput(myValCellCenters->GetOutput()); myValMaskPoints->SetOnRatio(1); @@ -260,6 +264,7 @@ VISU_Actor myValLabeledDataMapper->Delete(); myValSelectVisiblePoints->Delete(); myValMaskPoints->Delete(); + myValUsedPoints->Delete(); myValCellCenters->Delete(); myValLabels->Delete(); @@ -1278,7 +1283,10 @@ void VISU_Actor::SetValuesLabeled( const bool theIsValLabeled ) myValMaskPoints->SetInput( myValCellCenters->GetOutput() ); } else if ( isOnPnt ) - myValMaskPoints->SetInput( aDataSet ); + { + myValUsedPoints->SetInput( aDataSet ); + myValMaskPoints->SetInput( myValUsedPoints->GetOutput() ); + } myValLabels->SetVisibility( GetVisibility() ); } diff --git a/src/OBJECT/VISU_Actor.h b/src/OBJECT/VISU_Actor.h index b8be8ba8..4ea21ad6 100644 --- a/src/OBJECT/VISU_Actor.h +++ b/src/OBJECT/VISU_Actor.h @@ -59,6 +59,7 @@ class VTKViewer_CellCenters; class VTKViewer_FramedTextActor; class VISU_SelectVisiblePoints; +class VISU_UsedPointsFilter; #if !defined(VTK_XVERSION) #define VTK_XVERSION (VTK_MAJOR_VERSION<<16)+(VTK_MINOR_VERSION<<8)+(VTK_BUILD_VERSION) @@ -417,6 +418,7 @@ class VISU_OBJECT_EXPORT VISU_Actor : public VISU_ActorBase vtkActor2D* myValLabels; vtkMaskPoints* myValMaskPoints; VTKViewer_CellCenters* myValCellCenters; + VISU_UsedPointsFilter* myValUsedPoints; vtkLabeledDataMapper* myValLabeledDataMapper; VISU_SelectVisiblePoints* myValSelectVisiblePoints; }; diff --git a/src/PIPELINE/Makefile.am b/src/PIPELINE/Makefile.am index ff61792a..ab75c060 100644 --- a/src/PIPELINE/Makefile.am +++ b/src/PIPELINE/Makefile.am @@ -44,8 +44,6 @@ salomeinclude_HEADERS= \ VISU_IsoSurfacesPL.hxx \ VISU_DeformedShapePL.hxx \ VISU_VectorsPL.hxx \ - VISU_Streamer.hxx \ - VISU_StreamLine.hxx \ VISU_StreamLinesPL.hxx \ VISU_LookupTable.hxx \ VISU_ScalarBarActor.hxx \ @@ -93,8 +91,6 @@ dist_libVisuPipeLine_la_SOURCES= \ VISU_IsoSurfacesPL.cxx \ VISU_DeformedShapePL.cxx \ VISU_VectorsPL.cxx \ - VISU_Streamer.cxx \ - VISU_StreamLine.cxx \ VISU_StreamLinesPL.cxx \ VISU_LookupTable.cxx \ VISU_ScalarBarActor.cxx \ diff --git a/src/PIPELINE/VISU_StreamLinesPL.cxx b/src/PIPELINE/VISU_StreamLinesPL.cxx index 5eec0b29..1c6632f6 100644 --- a/src/PIPELINE/VISU_StreamLinesPL.cxx +++ b/src/PIPELINE/VISU_StreamLinesPL.cxx @@ -32,7 +32,6 @@ //#include "VISU_UsedPointsFilter.hxx" #include "VISU_MaskPointsFilter.hxx" #include "VISU_PipeLineUtils.hxx" -#include "VISU_StreamLine.hxx" #include "VTKViewer_CellCenters.h" #include "VTKViewer_GeometryFilter.h" @@ -44,6 +43,7 @@ #include #include +#include #ifdef _DEBUG_ static int MYDEBUG = 0; @@ -68,7 +68,7 @@ VISU_StreamLinesPL SetIsShrinkable(false); SetIsFeatureEdgesAllowed(false); - myStream = VISU_StreamLine::New(); + myStream = vtkStreamLine::New(); myCenters = VTKViewer_CellCenters::New(); myGeomFilter = VTKViewer_GeometryFilter::New(); myPointsFilter = VISU_MaskPointsFilter::New(); diff --git a/src/PIPELINE/VISU_StreamLinesPL.hxx b/src/PIPELINE/VISU_StreamLinesPL.hxx index 94db2151..6438ad26 100644 --- a/src/PIPELINE/VISU_StreamLinesPL.hxx +++ b/src/PIPELINE/VISU_StreamLinesPL.hxx @@ -38,7 +38,7 @@ class vtkPointSet; class VTKViewer_CellCenters; class VTKViewer_GeometryFilter; class VISU_MaskPointsFilter; -class VISU_StreamLine; +class vtkStreamLine; //---------------------------------------------------------------------------- @@ -247,7 +247,7 @@ protected: vtkFloatingPointType GetUsedPointsDefault(); - VISU_StreamLine* myStream; + vtkStreamLine* myStream; vtkPointSet* mySource; VTKViewer_CellCenters* myCenters; VTKViewer_GeometryFilter *myGeomFilter; diff --git a/src/PIPELINE/VISU_Streamer.cxx b/src/PIPELINE/VISU_Streamer.cxx index 4b71e409..3efd1aeb 100644 --- a/src/PIPELINE/VISU_Streamer.cxx +++ b/src/PIPELINE/VISU_Streamer.cxx @@ -91,7 +91,7 @@ VISU_Streamer::~VISU_Streamer() { } -static const double VTK_EPSILON=1E-7; +static const double VTK_EPSILON=1E-12; VTK_THREAD_RETURN_TYPE VISU_Streamer::ThreadedIntegrate( void *arg ) { diff --git a/src/VISUGUI/VisuGUI_Module.cxx b/src/VISUGUI/VisuGUI_Module.cxx index 68a09cf6..e1aad77a 100644 --- a/src/VISUGUI/VisuGUI_Module.cxx +++ b/src/VISUGUI/VisuGUI_Module.cxx @@ -432,8 +432,8 @@ void VisuGUI_Module::createPreferences() VisuGUI::createPreferences(); createGaussPointsPreferences(); - createInsideCursorPreferences(); - createOutsideCursorPreferences(); + //createInsideCursorPreferences(); + //createOutsideCursorPreferences(); createPickingPreferences(); // createSpaceMousePreferences(); //createRecorderPreferences(); diff --git a/src/VISUGUI/VisuGUI_SelectionPrefDlg.cxx b/src/VISUGUI/VisuGUI_SelectionPrefDlg.cxx index a9ecb736..741fa360 100644 --- a/src/VISUGUI/VisuGUI_SelectionPrefDlg.cxx +++ b/src/VISUGUI/VisuGUI_SelectionPrefDlg.cxx @@ -230,7 +230,8 @@ void VisuGUI_SelectionPrefDlg::update() ( int )( aColor[2] * 255.0 ) ) ); myInfoWindowGroup->setChecked( aPickingSettings->GetInfoWindowEnabled() ); - myTransparencySpinBox->setValue( int(aPickingSettings->GetInfoWindowTransparency() * 100.0) ); + vtkFloatingPointType transparency = aPickingSettings->GetInfoWindowTransparency() * 100.0; + myTransparencySpinBox->setValue( (int) transparency ); myPositionComboBox->setCurrentIndex( aPickingSettings->GetInfoWindowPosition() ); myCameraGroup->setChecked( aPickingSettings->GetCameraMovementEnabled() ); myZoomFactorSpinBox->setValue( aPickingSettings->GetZoomFactor() ); diff --git a/src/VISUGUI/VisuGUI_SizeBox.cxx b/src/VISUGUI/VisuGUI_SizeBox.cxx index 87c9604b..eb01fe98 100644 --- a/src/VISUGUI/VisuGUI_SizeBox.cxx +++ b/src/VISUGUI/VisuGUI_SizeBox.cxx @@ -276,7 +276,8 @@ float VisuGUI_SizeBox::getOutsideSize() const void VisuGUI_SizeBox::setOutsideSize( float theOutsideSize ) { - myOutsideSizeSpinBox->setValue( ( int )( theOutsideSize * 100 ) ); + theOutsideSize*=100.; + myOutsideSizeSpinBox->setValue( ( int ) theOutsideSize ); } float VisuGUI_SizeBox::getGeomSize() const @@ -286,7 +287,8 @@ float VisuGUI_SizeBox::getGeomSize() const void VisuGUI_SizeBox::setGeomSize( float theGeomSize ) { - myGeomSizeSpinBox->setValue( ( int )( theGeomSize * 100 ) ); + theGeomSize*=100.; + myGeomSizeSpinBox->setValue( ( int ) theGeomSize ); } float VisuGUI_SizeBox::getMinSize() const @@ -296,7 +298,8 @@ float VisuGUI_SizeBox::getMinSize() const void VisuGUI_SizeBox::setMinSize( float theMinSize ) { - myMinSizeSpinBox->setValue( ( int )( theMinSize * 100 ) ); + theMinSize*=100.; + myMinSizeSpinBox->setValue( ( int ) theMinSize ); } float VisuGUI_SizeBox::getMaxSize() const @@ -306,7 +309,8 @@ float VisuGUI_SizeBox::getMaxSize() const void VisuGUI_SizeBox::setMaxSize( float theMaxSize ) { - myMaxSizeSpinBox->setValue( ( int )( theMaxSize * 100 ) ); + theMaxSize*=100.; + myMaxSizeSpinBox->setValue( (int) theMaxSize ); } float VisuGUI_SizeBox::getMagnification() const @@ -316,7 +320,8 @@ float VisuGUI_SizeBox::getMagnification() const void VisuGUI_SizeBox::setMagnification( float theMagnification ) { - myMagnificationSpinBox->setValue( ( int )( theMagnification * 100 ) ); + theMagnification*=100.; + myMagnificationSpinBox->setValue( (int) theMagnification ); } float VisuGUI_SizeBox::getIncrement() const