mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-08 14:17:06 +03:00
0027900: Coding rules - drop redundant Name parameter from V3d_Viewer constructor
Removed unused methods AIS_InteractiveContext::DomainOfMainViewer(), V3d_Viewer::NextName(), V3d_Viewer::Domain(). NCollection_List - added methods Contains() and Remove() taking item value. V3d_Viewer now uses V3d_ListOfLight, V3d_ListOfView instead of V3d_ListOfTransient. Removed obsolete ZFit workaround from command XShow.
This commit is contained in:
@@ -329,9 +329,14 @@ static Standard_Integer DDocStd_Close (Draw_Interpretor& /*theDI*/,
|
||||
&& !aDocViewer->GetInteractiveContext().IsNull())
|
||||
{
|
||||
Handle(V3d_Viewer) aViewer = aDocViewer->GetInteractiveContext()->CurrentViewer();
|
||||
for (aViewer->InitDefinedViews(); aViewer->MoreDefinedViews(); aViewer->NextDefinedViews())
|
||||
V3d_ListOfView aViews;
|
||||
for (V3d_ListOfViewIterator aViewIter (aDocViewer->GetInteractiveContext()->CurrentViewer()->DefinedViewIterator()); aViewIter.More(); aViewIter.Next())
|
||||
{
|
||||
Handle(V3d_View) aView = aViewer->DefinedView();
|
||||
aViews.Append (aViewIter.Value());
|
||||
}
|
||||
for (V3d_ListOfViewIterator aViewIter (aViews); aViewIter.More(); aViewIter.Next())
|
||||
{
|
||||
Handle(V3d_View) aView = aViewIter.Value();
|
||||
ViewerTest::RemoveView (aView);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user