#include <OCCViewer_ViewWidget.h>
#include <OCCViewer_ViewPort3d.h>
+#include <OCCViewer_Utilities.h>
#include <SUIT_Session.h>
#include <SUIT_ResourceMgr.h>
myEditorWidget = new CurveCreator_Widget( this, NULL );
addWidget( myEditorWidget, 3 );
- myViewWidget = new OCCViewer_ViewWidget( this );
+ myViewWidget = new OCCViewer_ViewWidget( this, false );
OCCViewer_ViewPort3d* aViewPort = myViewWidget->getViewPort();
SUIT_ResourceMgr* aResMgr = SUIT_Session::session()->resourceMgr();
if ( aResMgr )
aViewPort->setBackground( aResMgr->backgroundValue( "OCCViewer", "background",
Qtx::BackgroundData( Qt::black ) ) );
+ OCCViewer_Utilities::setViewWidget2DMode( myViewWidget, OCCViewer_ViewWidget::XZPlane );
addWidget( myViewWidget, 4 );
//myAddElementBox = new QGroupBox( tr( "ADD_ELEMENT" ), this );
connect( myEditorWidget, SIGNAL( subOperationFinished(QWidget*) ), this, SLOT( processFinishedSubOperation(QWidget*) ) );
//myAddElementBox->hide();
-}
-HYDROGUI_ProfileDlg::~HYDROGUI_ProfileDlg()
-{
+ myEditorWidget->setOCCViewWidget( myViewWidget );
}
-void HYDROGUI_ProfileDlg::setOCCViewer( OCCViewer_Viewer* theViewer )
+HYDROGUI_ProfileDlg::~HYDROGUI_ProfileDlg()
{
- myEditorWidget->setOCCViewer( theViewer );
}
void HYDROGUI_ProfileDlg::processStartedSubOperation( QWidget* theWidget )
void HYDROGUI_ProfileDlg::reset()
{
+ myEditorWidget->reset();
+}
+
+Handle(AIS_InteractiveContext) HYDROGUI_ProfileDlg::getAISContext()
+{
+ return myViewWidget->getAISContext();
}
void HYDROGUI_ProfileDlg::setProfileName( const QString& theName )
return myName->text();
}
-void HYDROGUI_ProfileDlg::setCurve( CurveCreator_ICurve* theCurve )
+void HYDROGUI_ProfileDlg::setProfile( CurveCreator_ICurve* theProfile )
{
- myEditorWidget->setCurve( theCurve );
+ myEditorWidget->setCurve( theProfile );
}
QList<int> HYDROGUI_ProfileDlg::getSelectedSections()