#include "OCCViewer_ViewWidget.h"
-#include <Basics_OCCTVersion.hxx>
-
#include <SUIT_Desktop.h>
#include <SUIT_Session.h>
#include <SUIT_ResourceMgr.h>
OCCViewer_ViewWidget::~OCCViewer_ViewWidget()
{
+ delete myViewPort;
+
+ myAISContext.Nullify();
+ myV3dViewer.Nullify();
#if OCC_VERSION_LARGE <= 0x06060000
myV3dCollector.Nullify();
#endif
#define OCCVIEWER_VIEWWIDGET_H
#include "CurveCreator_Macro.hxx"
+#include <Basics_OCCTVersion.hxx>
#include <OCCViewer_ViewWindow.h>
#include <QtxAction.h>
myEditorWidget = new CurveCreator_Widget( this, NULL );
addWidget( myEditorWidget, 3 );
- //OCCViewer_ViewWindow* aPreview = new OCCViewer_ViewWindow(
- OCCViewer_ViewWidget* aViewWidget = new OCCViewer_ViewWidget( this );
- addWidget( aViewWidget, 4 );
+ myViewWidget = new OCCViewer_ViewWidget( this );
+ addWidget( myViewWidget, 4 );
//myAddElementBox = new QGroupBox( tr( "ADD_ELEMENT" ), this );
//addWidget( myAddElementBox, 2 );
class QGroupBox;
class QLineEdit;
class CurveCreator_Widget;
+class OCCViewer_ViewWidget;
class CurveCreator_ICurve;
class OCCViewer_Viewer;
QLineEdit* myName;
CurveCreator_Widget* myEditorWidget;
//QGroupBox* myAddElementBox;
+ OCCViewer_ViewWidget* myViewWidget;
};
#endif