more code cleanup

This commit is contained in:
mbs 2023-03-26 00:43:13 +00:00
parent 1026c29d39
commit 104da2cf24
4 changed files with 4 additions and 16 deletions

View File

@ -112,7 +112,6 @@ IF(SALOME_BUILD_GUI)
IF(EXISTS ${GUI_ROOT_DIR})
FIND_PACKAGE(SalomeGUI)
SALOME_GUI_WITH_CORBA() #check whether GUI built with CORBA
#MBS:
SALOME_GUI_MODE(SALOME_USE_OCCVIEWER SALOME_USE_VTKVIEWER SALOME_USE_PV3DVIEWER SALOME_USE_SALOMEOBJECT
OPTIONAL SALOME_USE_PLOT2DVIEWER SALOME_USE_GRAPHICSVIEW SALOME_USE_PYCONSOLE)
ADD_DEFINITIONS(${GUI_DEFINITIONS})

View File

@ -78,7 +78,6 @@
#include <SVTK_Prs.h>
#include <SVTK_ViewModel.h>
//MBS:
#include <SPV3D_Prs.h>
#include <SPV3D_ViewModel.h>
@ -1741,7 +1740,6 @@ void GEOM_Displayer::Update( SALOME_VTKPrs* prs )
}
}
//MBS:
//=================================================================
/*!
* GEOM_Displayer::Update
@ -2562,7 +2560,7 @@ bool GEOM_Displayer::canBeDisplayed( const QString& entry, const QString& viewer
GEOM::GEOM_Gen_var aCompObj = GEOM::GEOM_Gen::_narrow(anOrbObj); // enable displaying of whole GEOM component
bool isGeomObj = (!CORBA::is_nil( aGeomObj ) || !CORBA::is_nil( aFieldStepObj ) || !CORBA::is_nil( aCompObj ));
bool ret = ( isGeomObj ) &&
(viewer_type == SOCC_Viewer::Type() || viewer_type == SVTK_Viewer::Type() || viewer_type == SPV3D_ViewModel::Type());//MBS:
(viewer_type == SOCC_Viewer::Type() || viewer_type == SVTK_Viewer::Type() || viewer_type == SPV3D_ViewModel::Type());
MSGEL("..... --> isCorbaObj=" << YesNo(isCorbaObj) << ", isGeomObj=" << YesNo(isGeomObj) << ", canBeDisp=" << YesNo(ret));
return ret;
}

View File

@ -38,7 +38,7 @@ class SALOME_View;
class SALOME_Prs;
class SALOME_OCCPrs;
class SALOME_VTKPrs;
class SALOME_PV3DPrs;//MBS:
class SALOME_PV3DPrs;
class SALOME_OCCViewType;
#include <TopoDS_Shape.hxx>
@ -188,7 +188,7 @@ public:
/* Reimplemented from SALOME_Displayer */
virtual void Update( SALOME_OCCPrs* );
virtual void Update( SALOME_VTKPrs* );
virtual void Update( SALOME_PV3DPrs* ); // MBS:
virtual void Update( SALOME_PV3DPrs* );
virtual void BeforeDisplay( SALOME_View*, const SALOME_OCCPrs* );
virtual void AfterDisplay ( SALOME_View*, const SALOME_OCCPrs* );
virtual void BeforeErase ( SALOME_View*, const SALOME_OCCPrs* );

View File

@ -60,7 +60,6 @@
#include <OCCViewer_ViewModel.h>
#include <OCCViewer_ViewManager.h>
//MBS:
#include <PV3DViewer_ViewWindow.h>
#include <PV3DViewer_ViewModel.h>
#include <PV3DViewer_ViewManager.h>
@ -394,7 +393,7 @@ void GeometryGUI::ActiveWorkingPlane()
SUIT_ViewWindow* window = application()->desktop()->activeWindow();
bool ViewOCC = ( window && window->getViewManager()->getType() == OCCViewer_Viewer::Type() );
bool ViewVTK = ( window && window->getViewManager()->getType() == SVTK_Viewer::Type() );
bool ViewPV3D = ( window && window->getViewManager()->getType() == PV3DViewer_ViewModel::Type() ); //MBS:
bool ViewPV3D = ( window && window->getViewManager()->getType() == PV3DViewer_ViewModel::Type() );
if ( ViewOCC ) {
OCCViewer_ViewWindow* vw = dynamic_cast<OCCViewer_ViewWindow*>( window );
@ -418,18 +417,10 @@ void GeometryGUI::ActiveWorkingPlane()
vw->onFitAll();
}
}
//MBS:
else if ( ViewPV3D ) {
PV3DViewer_ViewWindow* vw = dynamic_cast<PV3DViewer_ViewWindow*>( window );
if ( vw ) {
MSGEL("...(NYI) => orient view to active plane");
// vtkCamera* camera = vw->getRenderer()->GetActiveCamera();
//
// camera->SetPosition(DZ.X(), DZ.Y(), DZ.Z());
// camera->SetViewUp(DY.X(), DY.Y(), DY.Z());
// camera->SetFocalPoint(0,0,0);
//
//vw->onFitAll();
}
}
}