#include <OCCViewer_ViewManager.h>
#include <OCCViewer_ViewModel.h>
+#include <OCCViewer_ViewWindow.h>
#include <OCCViewer_AISSelector.h>
aViewer->enableMultiselection(true);
Handle_AIS_InteractiveContext aCtx = aViewer->getAISContext();
+ OCCViewer_ViewWindow* vw = (OCCViewer_ViewWindow*)myPreviewViewManager->getActiveView();
+ vw->onTopView();
+
myAISCurve = new HYDROGUI_AISCurve(myCurve, aCtx);
myAISCurve->Display();
}
else{
- myCurve = new CurveCreator_Curve(CurveCreator::Dim3d);
+ myCurve = new CurveCreator_Curve(CurveCreator::Dim2d);
aPanel->setCurve(myCurve);
QString aNewName = HYDROGUI_Tool::GenerateObjectName( module(), "Polyline" );
aPanel->setPolylineName(aNewName);