#include "SUIT_Desktop.h"
#include "SalomeApp_Study.h"
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
#include "SVTK_Selector.h"
#include "SVTK_ViewWindow.h"
aProp->SetRepresentationToPoints();
float anRGB[3];
- anRGB[0] = GetFloat("SMESH:SettingsNodeColorRed",0)/255.;
- anRGB[1] = GetFloat("SMESH:SettingsNodeColorGreen",255)/255.;
- anRGB[2] = GetFloat("SMESH:SettingsNodeColorBlue",0)/255.;
- aProp->SetColor(anRGB[0],anRGB[1],anRGB[2]);
+ GetColor( "SMESH", "node_color", anRGB[0], anRGB[1], anRGB[2], QColor( 0, 255, 0 ) );
+ aProp->SetColor( anRGB[0], anRGB[1], anRGB[2] );
- float aPointSize = GetFloat("SMESH:SettingsNodesSize",3);
- aProp->SetPointSize(aPointSize);
+ float aPointSize = GetFloat( "SMESH:node_size", 3 );
+ aProp->SetPointSize( aPointSize );
- myPreviewActor->SetProperty(aProp);
+ myPreviewActor->SetProperty( aProp );
aProp->Delete();
myViewWindow->AddActor(myPreviewActor);
WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu | Qt::WDestructiveClose),
mySelector(SMESH::GetViewWindow(theModule)->GetSelector()),
mySelectionMgr(SMESH::GetSelectionMgr(theModule)),
- myViewWindow(SMESH::GetViewWindow(theModule)),
mySMESHGUI(theModule)
{
- mySimulation = new SMESH::TNodeSimulation(myViewWindow);
+ mySimulation = new SMESH::TNodeSimulation(SMESH::GetViewWindow( mySMESHGUI ));
QPixmap image0 (SMESH::GetResourceMgr( mySMESHGUI )->loadPixmap("SMESH", tr("ICON_DLG_NODE")));
if (!name)
// set selection mode
SMESH::SetPointRepresentation(true);
- myViewWindow->SetSelectionMode(NodeSelection);
+ if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
+ aViewWindow->SetSelectionMode(NodeSelection);
SelectionIntoArgument();
}
void SMESHGUI_NodesDlg::ClickOnCancel()
{
disconnect(mySelectionMgr, 0, this, 0);
- myViewWindow->SetSelectionMode(ActorSelection);
+ if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
+ aViewWindow->SetSelectionMode(ActorSelection);
mySimulation->SetVisibility(false);
SMESH::SetPointRepresentation(false);
GroupButtons->setEnabled(true);
SMESH::SetPointRepresentation(true);
- myViewWindow->SetSelectionMode(NodeSelection);
+ if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
+ aViewWindow->SetSelectionMode(NodeSelection);
SelectionIntoArgument();
}