#include "HYDROGUI_Module.h"
#include "HYDROGUI_Tool.h"
+#include "HYDROGUI_AISTrihedron.h"
#include <CurveCreator_Widget.h>
#include <CurveCreator_ICurve.hxx>
anAddElementLayout->setSpacing( 5 );
myViewManager = new OCCViewer_ViewManager( theModule->getApp()->activeStudy(), 0 );
- OCCViewer_Viewer* aViewer = new OCCViewer_Viewer( true );
+ OCCViewer_Viewer* aViewer = new OCCViewer_Viewer( false /*erase trihedron*/);
SUIT_ResourceMgr* aResMgr = SUIT_Session::session()->resourceMgr();
aViewer->setBackground( OCCViewer_ViewFrame::TOP_LEFT,
myViewManager->setViewModel( aViewer );// custom view model, which extends SALOME_View interface
SUIT_ViewWindow* aViewWin = myViewManager->createViewWindow();
+ aViewer->setStaticTrihedronDisplayed( false );
+ Handle(AIS_Trihedron) aTrihedron = HYDROGUI_AISTrihedron::createTrihedron(
+ aResMgr->doubleValue( "3DViewer", "trihedron_size",
+ aViewer->trihedronSize() ));
+ Handle(AIS_InteractiveContext) anAISContext = aViewer->getAISContext();
+ if ( !anAISContext.IsNull() ) {
+ anAISContext->Display( aTrihedron );
+ anAISContext->Deactivate( aTrihedron );
+ }
+
addWidget( aViewWin, 4 );
myEditorWidget->setOCCViewer( aViewer );
}
return HYDROGUI_InputPanel::eventFilter( theObj, theEvent );
-}
\ No newline at end of file
+}