Salome HOME
refs #1493
authorisn <isn@opencascade.com>
Mon, 11 Dec 2017 13:33:12 +0000 (16:33 +0300)
committerisn <isn@opencascade.com>
Mon, 11 Dec 2017 13:33:57 +0000 (16:33 +0300)
src/HYDROGUI/HYDROGUI_ProfileDlg.cxx
src/HYDROGUI/HYDROGUI_ViewerDlg.cxx
src/HYDROGUI/HYDROGUI_ViewerDlg.h

index c6c49c1c682b4101a07831af174d1efbc134bb1f..2fb8b2f6c5fe5aa68bb7bc42693f5b531031e205 100644 (file)
@@ -58,7 +58,7 @@ const QString splitter_key = "HYDROGUI_ProfileDlg::splitter";
 
 HYDROGUI_ProfileDlg::HYDROGUI_ProfileDlg( HYDROGUI_Module* theModule, const QString& theTitle, 
   bool theIsEdit )
-: HYDROGUI_ViewerDlg( theModule, theTitle, true ),
+: HYDROGUI_ViewerDlg( theModule, theTitle, true, false ),
   myName( NULL ), myProfileNames (NULL), myProfilesPointer (NULL),
   myIsEdit (theIsEdit)
 {
@@ -142,6 +142,7 @@ void HYDROGUI_ProfileDlg::reset()
   myEditorWidget->reset();
   myEditorWidget->setActionMode( CurveCreator_Widget::AdditionMode );
   viewer()->setTrihedronShown( false ); // Issue #548
+  viewer()->setStaticTrihedronDisplayed(false);
   if (myProfileNames)
     myProfileNames->clear();
 }
index 78c17941309518f8ecc560fa886f0b6afdecc111..29c307f496348e6e45a6f05514428c1566f539c7 100644 (file)
@@ -43,7 +43,7 @@
 #include <QLineEdit>
 #include <QMouseEvent>
 
-HYDROGUI_ViewerDlg::HYDROGUI_ViewerDlg( HYDROGUI_Module* theModule, const QString& theTitle, bool isSplitter )
+HYDROGUI_ViewerDlg::HYDROGUI_ViewerDlg( HYDROGUI_Module* theModule, const QString& theTitle, bool isSplitter, bool dispTrihedron )
 : HYDROGUI_InputPanel( theModule, theTitle, true, isSplitter )
 {
   SUIT_ResourceMgr* aResMgr = SUIT_Session::session()->resourceMgr();
@@ -53,7 +53,7 @@ HYDROGUI_ViewerDlg::HYDROGUI_ViewerDlg( HYDROGUI_Module* theModule, const QStrin
   SUIT_Study* aStudy = 0;
 #endif
   myViewManager = new OCCViewer_ViewManager( aStudy, 0 );
-  OCCViewer_Viewer* aViewer = new OCCViewer_Viewer( true );
+  OCCViewer_Viewer* aViewer = new OCCViewer_Viewer( dispTrihedron );
 
   aViewer->setBackground( OCCViewer_ViewFrame::TOP_LEFT,
                           aResMgr->backgroundValue( "OCCViewer", "xz_background", aViewer->background(OCCViewer_ViewFrame::TOP_LEFT) ) );
index 8c0f15b1814938324f77b0ee1b28a01dc8cb3171..9059523caebaf2fa37667c662f28dd547c4f74fd 100644 (file)
@@ -35,7 +35,7 @@ class HYDROGUI_ViewerDlg : public HYDROGUI_InputPanel
   Q_OBJECT
 
 public:
-  HYDROGUI_ViewerDlg( HYDROGUI_Module* theModule, const QString& theTitle, bool isSplitter );
+  HYDROGUI_ViewerDlg( HYDROGUI_Module* theModule, const QString& theTitle, bool isSplitter, bool dispTrihedron = true );
   virtual ~HYDROGUI_ViewerDlg();
 
   Handle(AIS_InteractiveContext) getAISContext();