// Class: VisuGUI
//////////////////////////////////////////////////
-VisuGUI::VisuGUI():
+VisuGUI
+::VisuGUI():
SalomeApp_Module( "VISU" ),
myDisplayer( 0 )
{
}
-VisuGUI::~VisuGUI()
+VisuGUI
+::~VisuGUI()
{
}
void
-VisuGUI::
-OnImportFromFile()
+VisuGUI
+::OnImportFromFile()
{
if(MYDEBUG) MESSAGE("VisuGUI::OnImportFromFile()");
if ( CheckLock(GetCStudy(GetAppStudy(this)),GetDesktop(this)) )
}
void
-VisuGUI::
-OnImportTableFromFile()
+VisuGUI
+::OnImportTableFromFile()
{
if(MYDEBUG) MESSAGE("VisuGUI::OnImportTableFromFile()");
if ( CheckLock(GetCStudy(GetAppStudy(this)),GetDesktop(this)) )
}
void
-VisuGUI::
-OnExportTableToFile()
+VisuGUI
+::OnExportTableToFile()
{
if(MYDEBUG) MESSAGE("VisuGUI::OnExportTableToFile()");
}
void
-VisuGUI::
-OnImportMedField()
+VisuGUI
+::OnImportMedField()
{
_PTR(Study) aCStudy = GetCStudy(GetAppStudy(this));
if (CheckLock(aCStudy,GetDesktop(this)))
}
void
-VisuGUI::
-OnCreateMesh()
+VisuGUI
+::OnCreateMesh()
{
_PTR(Study) aStudy = GetCStudy(GetAppStudy(this));
if (CheckLock(aStudy,GetDesktop(this)))
}
void
-VisuGUI::
-OnCreateManyMesh()
+VisuGUI
+::OnCreateManyMesh()
{
_PTR(Study) aStudy = GetCStudy(GetAppStudy(this));
if (CheckLock(aStudy,GetDesktop(this)))
}
void
-VisuGUI::
-OnCreateScalarMap()
+VisuGUI
+::OnCreateScalarMap()
{
CreatePrs3d<VISU::ScalarMap_i,VisuGUI_ScalarBarDlg,1>(this);
}
void
-VisuGUI::
-OnCreateDeformedShape()
+VisuGUI
+::OnCreateDeformedShape()
{
CreatePrs3d<VISU::DeformedShape_i,VisuGUI_DeformedShapeDlg,1>(this);
}
void
-VisuGUI::
-OnCreateScalarMapOnDeformedShape()
+VisuGUI
+::OnCreateScalarMapOnDeformedShape()
{
CreatePrs3d<VISU::ScalarMapOnDeformedShape_i,VisuGUI_ScalarMapOnDeformedShapeDlg,1>(this);
}
void
-VisuGUI::
-OnCreateVectors()
+VisuGUI
+::OnCreateVectors()
{
CreatePrs3d<VISU::Vectors_i,VisuGUI_VectorsDlg,1>(this);
}
void
-VisuGUI::
-OnCreateIsoSurfaces()
+VisuGUI
+::OnCreateIsoSurfaces()
{
CreatePrs3d<VISU::IsoSurfaces_i,VisuGUI_IsoSurfacesDlg,1>(this);
}
void
-VisuGUI::
-OnCreateCutPlanes()
+VisuGUI
+::OnCreateCutPlanes()
{
CreatePrs3d<VISU::CutPlanes_i,VisuGUI_CutPlanesDlg,0>(this);
}
void
-VisuGUI::
-OnCreateCutLines()
+VisuGUI
+::OnCreateCutLines()
{
CreatePrs3d<VISU::CutLines_i,VisuGUI_CutLinesDlg,0>(this);
}
void
-VisuGUI::
-OnCreateStreamLines()
+VisuGUI
+::OnCreateStreamLines()
{
CreatePrs3d<VISU::StreamLines_i,VisuGUI_StreamLinesDlg,1>(this);
}
void
-VisuGUI::
-OnCreatePlot3D()
+VisuGUI
+::OnCreatePlot3D()
{
CreatePrs3d<VISU::Plot3D_i,VisuGUI_Plot3DDlg,0>(this);
}
void
-VisuGUI::
-OnCreatePlot2dView()
+VisuGUI
+::OnCreatePlot2dView()
{
CheckLock(GetCStudy(GetAppStudy(this)),GetDesktop(this));
GetVisuGen( this )->CreateContainer();
}
void
-VisuGUI::
-OnDisplayPrs()
+VisuGUI
+::OnDisplayPrs()
{
if(MYDEBUG) MESSAGE("VisuGUI::OnDisplayPrs");
}
void
-VisuGUI::
-OnDisplayOnlyPrs()
+VisuGUI
+::OnDisplayOnlyPrs()
{
OnEraseAll();
OnDisplayPrs();
}
void
-VisuGUI::
-OnErasePrs()
+VisuGUI
+::OnErasePrs()
{
if(MYDEBUG) MESSAGE("OnErasePrs");
}
void
-VisuGUI::
-OnEraseAll()
+VisuGUI
+::OnEraseAll()
{
startOperation( myEraseAll );
if (SVTK_ViewWindow* vw = GetActiveViewWindow<SVTK_ViewWindow>(this)) {
void
-VisuGUI::
-OnEditScalarMap()
+VisuGUI
+::OnEditScalarMap()
{
Handle(SALOME_InteractiveObject) anIO;
if (VISU::Prs3d_i* aPrs3d = GetPrsToModify(this, &anIO))
}
void
-VisuGUI::
-OnEditDeformedShape()
+VisuGUI
+::OnEditDeformedShape()
{
Handle(SALOME_InteractiveObject) anIO;
if (VISU::Prs3d_i* aPrs3d = GetPrsToModify(this, &anIO))
}
void
-VisuGUI::
-OnEditScalarMapOnDeformedShape()
+VisuGUI
+::OnEditScalarMapOnDeformedShape()
{
Handle(SALOME_InteractiveObject) anIO;
if (VISU::Prs3d_i* aPrs3d = GetPrsToModify(this, &anIO))
}
void
-VisuGUI::
-OnEditCutPlanes()
+VisuGUI
+::OnEditCutPlanes()
{
Handle(SALOME_InteractiveObject) anIO;
if (VISU::Prs3d_i* aPrs3d = GetPrsToModify(this, &anIO))
}
void
-VisuGUI::
-OnEditCutLines()
+VisuGUI
+::OnEditCutLines()
{
Handle(SALOME_InteractiveObject) anIO;
if (VISU::Prs3d_i* aPrs3d = GetPrsToModify(this, &anIO))
}
void
-VisuGUI::
-OnEditIsoSurfaces()
+VisuGUI
+::OnEditIsoSurfaces()
{
Handle(SALOME_InteractiveObject) anIO;
if (VISU::Prs3d_i* aPrs3d = GetPrsToModify(this, &anIO))
}
void
-VisuGUI::
-OnEditVectors()
+VisuGUI
+::OnEditVectors()
{
Handle(SALOME_InteractiveObject) anIO;
if (VISU::Prs3d_i* aPrs3d = GetPrsToModify(this, &anIO))
}
void
-VisuGUI::
-OnEditStreamLines()
+VisuGUI
+::OnEditStreamLines()
{
Handle(SALOME_InteractiveObject) anIO;
if (VISU::Prs3d_i* aPrs3d = GetPrsToModify(this, &anIO))
}
void
-VisuGUI::
-OnEditPlot3D()
+VisuGUI
+::OnEditPlot3D()
{
Handle(SALOME_InteractiveObject) anIO;
if (VISU::Prs3d_i* aPrs3d = GetPrsToModify(this, &anIO))
void
-VisuGUI::
-OnMakeSurfaceframe()
+VisuGUI
+::OnMakeSurfaceframe()
{
ChangeRepresentation(this, VISU::SURFACEFRAME);
}
void
-VisuGUI::
-OnMakeInsideframe()
+VisuGUI
+::OnMakeInsideframe()
{
ChangeRepresentation(this, VISU::INSIDEFRAME);
}
void
-VisuGUI::
-OnMakeWireframe()
+VisuGUI
+::OnMakeWireframe()
{
ChangeRepresentation(this, VISU::WIREFRAME);
}
void
-VisuGUI::
-OnMakeSurface()
+VisuGUI
+::OnMakeSurface()
{
ChangeRepresentation(this, VISU::SHADED);
}
void
-VisuGUI::
-OnMakePoints()
+VisuGUI
+::OnMakePoints()
{
ChangeRepresentation(this, VISU::POINT);
}
void
-VisuGUI::
-OnMakeShrink()
+VisuGUI
+::OnMakeShrink()
{
ChangeRepresentation(this, VISU::SHRINK);
}
void
-VisuGUI::
-OnSetShadingOn()
+VisuGUI
+::OnSetShadingOn()
{
SetShading(this, true);
}
void
-VisuGUI::
-OnSetShadingOff()
+VisuGUI
+::OnSetShadingOff()
{
SetShading(this, false);
}
void
-VisuGUI::
-OnChangeColor()
+VisuGUI
+::OnChangeColor()
{
- Handle(SALOME_InteractiveObject) anIO;
- CORBA::Object_var anObject = GetSelectedObj(this, &anIO);
- if (CORBA::is_nil(anObject)) return;
- PortableServer::ServantBase_var aServant = VISU::GetServant(anObject);
- if (!aServant.in()) return;
-
- VISU::Prs3d_i* aPrs3d = dynamic_cast<VISU::Prs3d_i*>(aServant.in());
- if (!aPrs3d) return;
-
- SVTK_ViewWindow* vw = GetActiveViewWindow<SVTK_ViewWindow>(this);
- if (!vw) return;
-
- VISU_Actor* anActor = GetActor(aPrs3d, vw);
- if (!anActor) return;
-
+ SVTK_ViewWindow* aViewWindow = GetActiveViewWindow<SVTK_ViewWindow>(this);
+ if(!aViewWindow)
+ return;
+ VISU::Prs3d_i* aPrs3d = GetPrsToModify(this);
+ if(!aPrs3d)
+ return;
+ VISU_Actor* anActor = VISU::FindActor(aViewWindow, aPrs3d);
+ if(!anActor)
+ return;
VISU::Mesh_i* aMesh = dynamic_cast<VISU::Mesh_i*>(aPrs3d);
VISU::DeformedShape_i* aDeformedShape = dynamic_cast<VISU::DeformedShape_i*>(aPrs3d);
+
SALOMEDS::Color anOldColor, aNewColor;
int aRepresent = anActor->GetRepresentation();
if (aMesh) {
}
void
-VisuGUI::
-OnChangeWireframeColor()
+VisuGUI
+::OnChangeWireframeColor()
{
- Handle(SALOME_InteractiveObject) anIO;
- CORBA::Object_var anObject = GetSelectedObj(this, &anIO);
- if (CORBA::is_nil(anObject)) return;
- PortableServer::ServantBase_var aServant = VISU::GetServant(anObject);
- if (!aServant.in()) return;
-
- VISU::Prs3d_i* aPrs3d = dynamic_cast<VISU::Prs3d_i*>(aServant.in());
- if (!aPrs3d) return;
-
- SVTK_ViewWindow* vw = GetActiveViewWindow<SVTK_ViewWindow>(this);
- if (!vw) return;
-
- VISU_Actor* anActor = GetActor(aPrs3d, vw);
- if (!anActor) return;
-
- if (VISU::Mesh_i* aMesh = dynamic_cast<VISU::Mesh_i*>(aPrs3d)) {
- SALOMEDS::Color anOldColor = aMesh->GetLinkColor(), aNewColor;
- QColor aColor (int(255*anOldColor.R),
- int(255*anOldColor.G),
- int(255*anOldColor.B));
- QColor aColorNew = QColorDialog::getColor(aColor, GetDesktop(this));
- if (aColorNew.isValid()) {
- aNewColor.R = aColorNew.red()/255.;
- aNewColor.G = aColorNew.green()/255.;
- aNewColor.B = aColorNew.blue()/255.;
- aMesh->SetLinkColor(aNewColor);
- RecreateActor(this, aMesh);
- }
+ SVTK_ViewWindow* aViewWindow = GetActiveViewWindow<SVTK_ViewWindow>(this);
+ if(!aViewWindow)
+ return;
+ VISU::Prs3d_i* aPrs3d = GetPrsToModify(this);
+ if(!aPrs3d)
+ return;
+ VISU_Actor* anActor = VISU::FindActor(aViewWindow, aPrs3d);
+ if(!anActor)
+ return;
+ if(aPrs3d->GetType() != VISU::TMESH)
+ return;
+ VISU::Mesh_i* aMesh = dynamic_cast<VISU::Mesh_i*>(aPrs3d);
+ if(!aMesh)
+ return;
+ SALOMEDS::Color anOldColor = aMesh->GetLinkColor(), aNewColor;
+ QColor aColor (int(255*anOldColor.R),
+ int(255*anOldColor.G),
+ int(255*anOldColor.B));
+ QColor aColorNew = QColorDialog::getColor(aColor, GetDesktop(this));
+ if (aColorNew.isValid()) {
+ aNewColor.R = aColorNew.red()/255.;
+ aNewColor.G = aColorNew.green()/255.;
+ aNewColor.B = aColorNew.blue()/255.;
+ aMesh->SetLinkColor(aNewColor);
+ RecreateActor(this, aMesh);
}
}
void
-VisuGUI::
-OnChangeOpacity()
+VisuGUI
+::OnChangeOpacity()
{
- Handle(SALOME_InteractiveObject) anIO;
- CORBA::Object_var anObject = GetSelectedObj(this, &anIO);
- if (CORBA::is_nil(anObject)) return;
- PortableServer::ServantBase_var aServant = VISU::GetServant(anObject);
- if (!aServant.in()) return;
-
- VISU::Prs3d_i* aPrsObject = dynamic_cast<VISU::Prs3d_i*>(aServant.in());
- if (!aPrsObject) return;
-
- SVTK_ViewWindow* vw = GetActiveViewWindow<SVTK_ViewWindow>(this);
- if (!vw) return;
-
- VISU_Actor* anActor = GetActor(aPrsObject, vw);
- if (!anActor) return;
-
- VisuGUI_TransparencyDlg* aTransparencyDlg = new VisuGUI_TransparencyDlg( this );
- aTransparencyDlg->show();
+ SVTK_ViewWindow* aViewWindow = GetActiveViewWindow<SVTK_ViewWindow>(this);
+ if(!aViewWindow)
+ return;
+ VISU::Prs3d_i* aPrs3d = GetPrsToModify(this);
+ if(!aPrs3d)
+ return;
+ VISU_Actor* anActor = VISU::FindActor(aViewWindow, aPrs3d);
+ if(!anActor)
+ return;
+ VisuGUI_TransparencyDlg* aDialog = new VisuGUI_TransparencyDlg( this );
+ aDialog->show();
}
void
-VisuGUI::
-OnChangeLines()
+VisuGUI
+::OnChangeLines()
{
- Handle(SALOME_InteractiveObject) anIO;
- CORBA::Object_var anObject = GetSelectedObj(this, &anIO);
- if (CORBA::is_nil(anObject)) return;
- PortableServer::ServantBase_var aServant = VISU::GetServant(anObject);
- if (!aServant.in()) return;
-
- VISU::Prs3d_i* aPrsObject = dynamic_cast<VISU::Prs3d_i*>(aServant.in());
- if (!aPrsObject) return;
-
- SVTK_ViewWindow* vw = GetActiveViewWindow<SVTK_ViewWindow>(this);
- if (!vw) return;
-
- VISU_Actor* anActor = GetActor(aPrsObject, vw);
- if (!anActor) return;
+ SVTK_ViewWindow* aViewWindow = GetActiveViewWindow<SVTK_ViewWindow>(this);
+ if(!aViewWindow)
+ return;
+ VISU::Prs3d_i* aPrs3d = GetPrsToModify(this);
+ if(!aPrs3d)
+ return;
+ VISU_Actor* anActor = VISU::FindActor(aViewWindow, aPrs3d);
+ if(!anActor)
+ return;
VisuGUI_CursorDlg* CursorDlg =
new VisuGUI_CursorDlg (GetDesktop(this), tr("DLG_LINEWIDTH_TITLE"), TRUE);
}
void
-VisuGUI::
-OnShowTable()
+VisuGUI
+::OnShowTable()
{
Handle(SALOME_InteractiveObject) anIO;
CORBA::Object_var anObject = GetSelectedObj( this, &anIO );
}
void
-VisuGUI::
-OnCreateTable()
+VisuGUI
+::OnCreateTable()
{
Handle(SALOME_InteractiveObject) anIO;
CORBA::Object_var anObject = GetSelectedObj( this, &anIO );
}
void
-VisuGUI::
-OnDeleteObjects()
+VisuGUI
+::OnDeleteObjects()
{
SalomeApp_Study* anAppStudy = GetAppStudy(this);
_PTR(Study) aCStudy = GetCStudy(anAppStudy);
}
void
-VisuGUI::
-OnPlotData()
+VisuGUI
+::OnPlotData()
{
Handle(SALOME_InteractiveObject) anIO;
CORBA::Object_var anObject = GetSelectedObj( this, &anIO );
}
void
-VisuGUI::
-OnCurveProperties()
+VisuGUI
+::OnCurveProperties()
{
LightApp_SelectionMgr* aSelectionMgr = GetSelectionMgr(this);
SALOME_ListIO aListIO;
}
void
-VisuGUI::
-OnClearContainer()
+VisuGUI
+::OnClearContainer()
{
_PTR(Study) aCStudy = GetCStudy(GetAppStudy(this));
if (CheckLock(aCStudy,GetDesktop(this)))
}
void
-VisuGUI::
-OnEditContainer()
+VisuGUI
+::OnEditContainer()
{
Handle(SALOME_InteractiveObject) anIO;
CORBA::Object_var anObject = GetSelectedObj(this, &anIO);
}
void
-VisuGUI::
-OnSaveViewParams()
+VisuGUI
+::OnSaveViewParams()
{
_PTR(Study) aCStudy = GetCStudy(GetAppStudy(this));
if (CheckLock(aCStudy,GetDesktop(this)))
}
void
-VisuGUI::
-OnRestoreViewParams()
+VisuGUI
+::OnRestoreViewParams()
{
SUIT_ViewManager* aViewMgr = getApp()->activeViewManager();
if (aViewMgr->getType() != SVTK_Viewer::Type())
}
void
-VisuGUI::
-OnRename()
+VisuGUI
+::OnRename()
{
_PTR(Study) aCStudy = GetCStudy(GetAppStudy(this));
if (CheckLock(aCStudy,GetDesktop(this)))
}
void
-VisuGUI::
-OnClippingPlanes()
+VisuGUI
+::OnClippingPlanes()
{
new VisuGUI_ClippingDlg (this, "", false);
}
void
-VisuGUI::
-OnSweep()
+VisuGUI
+::OnSweep()
{
- // GetSelectedPrs3d
- Handle(SALOME_InteractiveObject) anIO;
- CORBA::Object_var anObject = GetSelectedObj(this, &anIO);
- if (CORBA::is_nil(anObject)) return;
- PortableServer::ServantBase_var aServant = VISU::GetServant(anObject);
- if (!aServant.in()) return;
-
- VISU::ScalarMap_i* aPrsObject = dynamic_cast<VISU::ScalarMap_i*>(aServant.in());
- if (!aPrsObject) return;
-
- SVTK_ViewWindow* vw = GetActiveViewWindow<SVTK_ViewWindow>(this);
- if (!vw) return;
-
- VISU_Actor* aActor = GetActor(aPrsObject, vw);
- if (!aActor) return;
-
- if (!aActor->GetVisibility()) {
- aActor->VisibilityOn();
- }
+ SVTK_ViewWindow* aViewWindow = GetActiveViewWindow<SVTK_ViewWindow>(this);
+ if(!aViewWindow)
+ return;
+ VISU::Prs3d_i* aPrs3d = GetPrsToModify(this);
+ if(!aPrs3d)
+ return;
+ VISU::ScalarMap_i* aScalarMap = dynamic_cast<VISU::ScalarMap_i*>(aPrs3d);
+ if(!aScalarMap)
+ return;
+ VISU_Actor* anActor = VISU::FindActor(aViewWindow, aPrs3d);
+ if(!anActor)
+ return;
+ if(!anActor->GetVisibility())
+ anActor->VisibilityOn();
// Get sweep parameters
SUIT_ResourceMgr* aResourceMgr = GetResourceMgr();
for (int i = 0; i <= aSteps; i++) {
try {
float aPercents = float(i)/aSteps;
- aPrsObject->SetMapScale(aPercents);
- aPrsObject->UpdateActor(aActor);
- vw->getRenderWindow()->Render();
+ aScalarMap->SetMapScale(aPercents);
+ aScalarMap->UpdateActor(anActor);
+ aViewWindow->getRenderWindow()->Render();
usleep(aTemp);
} catch (std::exception& exc) {
INFOS("Follow exception was occured :\n" << exc.what());
}
void
-VisuGUI::
-OnTimeAnimation()
+VisuGUI
+::OnTimeAnimation()
{
if (!VISU::GetActiveViewWindow<SVTK_ViewWindow>(this))
return;
//************************************************************************
void
-VisuGUI::
-OnShowAnimation()
+VisuGUI
+::OnShowAnimation()
{
if (!VISU::GetActiveViewWindow<SVTK_ViewWindow>(this))
return;
//----------------------------------------------------------------------------
void
-VisuGUI::
-OnCopyPresentation()
+VisuGUI
+::OnCopyPresentation()
{
_PTR(Study) aCStudy = GetCStudy(GetAppStudy(this));
if (CheckLock(aCStudy,GetDesktop(this)))
}
void
-VisuGUI::
-OnSelectionInfo()
+VisuGUI
+::OnSelectionInfo()
{
if (GetActiveViewWindow<SVTK_ViewWindow>(this))
(new VisuGUI_SelectionDlg(this))->show();
}
void
-VisuGUI::
-OnMergeScalarBars()
+VisuGUI
+::OnMergeScalarBars()
{
LightApp_SelectionMgr* aSelectionMgr = GetSelectionMgr(this);
SALOME_ListIO aListIO;
}
void
-VisuGUI::
-OnFreeScalarBars()
+VisuGUI
+::OnFreeScalarBars()
{
LightApp_SelectionMgr* aSelectionMgr = GetSelectionMgr(this);
SALOME_ListIO aListIO;
}
void
-VisuGUI::
-OnTranslatePrs()
+VisuGUI
+::OnTranslatePrs()
{
if(MYDEBUG) MESSAGE("VisuGUI::OnTranslatePrs");
VisuGUI_OffsetDlg* aDlg = new VisuGUI_OffsetDlg (this);
- _PTR(Study) aCStudy = GetCStudy(GetAppStudy(this));
-
LightApp_SelectionMgr* aSelectionMgr = GetSelectionMgr(this);
SALOME_ListIO aListIO;
aSelectionMgr->selectedObjects(aListIO);
- SALOME_ListIteratorOfListIO It (aListIO);
- for (; It.More(); It.Next()) {
- Handle(SALOME_InteractiveObject)& anIO = It.Value();
+ SalomeApp_Study* aStudy = GetAppStudy(this);
+ SALOME_ListIteratorOfListIO anIter(aListIO);
+ for (; anIter.More(); anIter.Next()) {
+ Handle(SALOME_InteractiveObject) anIO = anIter.Value();
if (anIO->hasEntry()) {
- _PTR(SObject) aSObject = aCStudy->FindObjectID(anIO->getEntry());
- if (aSObject) {
- CORBA::Object_var aCORBAObject = VISU::ClientSObjectToObject(aSObject);
- if (!CORBA::is_nil(aCORBAObject)) {
- PortableServer::ServantBase_var aServant = VISU::GetServant(aCORBAObject);
- if (VISU::Prs3d_i* aPrsObject = dynamic_cast<VISU::Prs3d_i*>(aServant.in())) {
- aDlg->addPresentation(aPrsObject);
- }
- }
- }
+ QString anEntry(anIO->getEntry());
+ CORBA::Object_var anObject = VISU::GetSelectedObj(aStudy, anEntry);
+ if(VISU::Prs3d_i* aPrsObject = VISU::GetPrsToModify(anObject))
+ aDlg->addPresentation(aPrsObject);
}
}
if (aDlg->getPrsCount() > 0)
}
void
-VisuGUI::
-OnArrangeActors()
+VisuGUI
+::OnArrangeActors()
{
SVTK_ViewWindow* vw = GetActiveViewWindow<SVTK_ViewWindow>(this);
if (vw) {
void
-VisuGUI::
-initialize( CAM_Application* theApp )
+VisuGUI
+::initialize( CAM_Application* theApp )
{
SalomeApp_Module::initialize( theApp );
}
void
-VisuGUI::
-createActions()
+VisuGUI
+::createActions()
{
QPixmap aPixmap;
QWidget* aParent = application()->desktop();
}
void
-VisuGUI::
-createMenus()
+VisuGUI
+::createMenus()
{
// Add actions to menus
int aMenuId;
}
void
-VisuGUI::
-createToolBars()
+VisuGUI
+::createToolBars()
{
int aToolId = createTool( tr("TOOL_IMPORT") );
createTool( VISU_IMPORT_FROM_FILE, aToolId );
}
void
-VisuGUI::
-createPopupMenus()
+VisuGUI
+::createPopupMenus()
{
// Prepare popup menus
QtxPopupMgr* mgr = popupMgr();
//***************************************************************************
void
-VisuGUI::
-windows( QMap<int, int>& theMap ) const
+VisuGUI
+::windows( QMap<int, int>& theMap ) const
{
theMap.clear();
theMap.insert( SalomeApp_Application::WT_ObjectBrowser, Qt::DockLeft );
void
-VisuGUI::
-viewManagers( QStringList& theList ) const
+VisuGUI
+::viewManagers( QStringList& theList ) const
{
theList.clear();
// append SVTK viewer only if there is no opened VVTK
QString
-VisuGUI::
-engineIOR() const
+VisuGUI
+::engineIOR() const
{
CORBA::String_var anIOR = GetVisuGen(this)->GetID();
return QString(anIOR.in());
bool
-VisuGUI::
-activateModule( SUIT_Study* theStudy )
+VisuGUI
+::activateModule( SUIT_Study* theStudy )
{
SalomeApp_Module::activateModule( theStudy );
studyActivated();
bool
-VisuGUI::
-deactivateModule( SUIT_Study* theStudy )
+VisuGUI
+::deactivateModule( SUIT_Study* theStudy )
{
setMenuShown( false );
setToolShown( false );
}
LightApp_Selection*
-VisuGUI::
-createSelection() const
+VisuGUI
+::createSelection() const
{
return new VisuGUI_Selection( (SalomeApp_Module*)this );
}