mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0023523: In session DRAW it is impossible to close document having name already once closed document.
Added destructor for TDocStd_Document which performs destruction of document in logical order in order to avoid exception when Undo and Redo fields are destructed after THF_Data field. Added removing name of closed document from tcl variables in the DRAW in order to avoid exception during use the same name for new document. Modification to avoid compilation error class ViewerTest Minor correction in test caf basic G3
This commit is contained in:
@@ -135,7 +135,7 @@ is
|
||||
GetCollectorFromContext returns Viewer from V3d;
|
||||
|
||||
GetAISContext returns InteractiveContext from AIS;
|
||||
|
||||
---C++: return const &
|
||||
GetNISContext returns InteractiveContext from NIS;
|
||||
---C++: return &
|
||||
|
||||
@@ -144,7 +144,8 @@ is
|
||||
SetNISContext (aContext: InteractiveContext from NIS);
|
||||
|
||||
CurrentView returns View from V3d;
|
||||
|
||||
---C++: return const &
|
||||
|
||||
CurrentView (aViou:View from V3d);
|
||||
|
||||
Clear ;
|
||||
|
@@ -334,17 +334,19 @@ static void VwrTst_InitEventMgr(const Handle(NIS_View)& aView,
|
||||
theEventMgrs.Prepend(new ViewerTest_EventManager(aView, Ctx));
|
||||
}
|
||||
|
||||
static Handle(V3d_View)& a3DView(){
|
||||
static Handle(V3d_View)& a3DView()
|
||||
{
|
||||
static Handle(V3d_View) Viou;
|
||||
return Viou;
|
||||
}
|
||||
|
||||
|
||||
Standard_EXPORT Handle(AIS_InteractiveContext)& TheAISContext(){
|
||||
static Handle(AIS_InteractiveContext) aContext;
|
||||
return aContext;
|
||||
}
|
||||
|
||||
Handle(V3d_View) ViewerTest::CurrentView()
|
||||
const Handle(V3d_View)& ViewerTest::CurrentView()
|
||||
{
|
||||
return a3DView();
|
||||
}
|
||||
@@ -363,7 +365,7 @@ Standard_EXPORT const Handle(NIS_InteractiveContext)& TheNISContext()
|
||||
return aContext;
|
||||
}
|
||||
|
||||
Handle(AIS_InteractiveContext) ViewerTest::GetAISContext()
|
||||
const Handle(AIS_InteractiveContext)& ViewerTest::GetAISContext()
|
||||
{
|
||||
return TheAISContext();
|
||||
}
|
||||
|
Reference in New Issue
Block a user