Salome HOME
refs #550: fix crash when myObject is NULL
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_ProfileDlg.cxx
index ea9bfd8a00c8f91149fe38c99c5edeee0949f317..1f98c732f78ce140c9f58accef36780766057d05 100644 (file)
@@ -1,8 +1,4 @@
-// Copyright (C) 2007-2015  CEA/DEN, EDF R&D, OPEN CASCADE
-//
-// Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-//
+// Copyright (C) 2014-2015  EDF-R&D
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 // License as published by the Free Software Foundation; either
@@ -154,3 +150,11 @@ void HYDROGUI_ProfileDlg::processFinishedSubOperation( QWidget* theWidget )
   theWidget->hide();
   myAddElementBox->hide();
 }
+
+Handle(AIS_Trihedron) HYDROGUI_ProfileDlg::trihedron()
+{
+    SUIT_ResourceMgr* aResMgr = SUIT_Session::session()->resourceMgr();
+    Handle(AIS_Trihedron) aTrihedron =
+        HYDROGUI_AISTrihedron::createTrihedron( aResMgr->doubleValue( "3DViewer", "trihedron_size", viewer()->trihedronSize() ) );
+    return aTrihedron;
+}