mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0028088: Visualization, AIS_InteractiveContext - drop default value for Update Viewer parameter
This commit is contained in:
@@ -20,13 +20,13 @@ void GeomSources::PreProcess(CGeometryDoc* aDoc,DisplayType aDisplayType)
|
||||
{
|
||||
if (aDisplayType == No2D3D )
|
||||
{
|
||||
aDoc->GetAISContext()->EraseAll();
|
||||
aDoc->GetAISContext()->EraseAll (Standard_True);
|
||||
aDoc->Put3DOnTop();
|
||||
}
|
||||
|
||||
if (aDisplayType == a2DNo3D)
|
||||
{
|
||||
aDoc->GetISessionContext()->EraseAll();
|
||||
aDoc->GetISessionContext()->EraseAll (Standard_True);
|
||||
aDoc->Put2DOnTop();
|
||||
}
|
||||
|
||||
@@ -42,8 +42,8 @@ void GeomSources::PreProcess(CGeometryDoc* aDoc,DisplayType aDisplayType)
|
||||
|
||||
if (aDisplayType == a2D3D)
|
||||
{
|
||||
aDoc->GetAISContext()->EraseAll();
|
||||
aDoc->GetISessionContext()->EraseAll();
|
||||
aDoc->GetAISContext()->EraseAll (Standard_True);
|
||||
aDoc->GetISessionContext()->EraseAll (Standard_True);
|
||||
aDoc->Put3DOnTop(false);
|
||||
aDoc->Put2DOnTop(false);
|
||||
|
||||
@@ -986,7 +986,7 @@ if(NbResults>0){ \n\
|
||||
Handle(Prs3d_Drawer) CurDrawer = aSurface->Attributes();
|
||||
CurDrawer->UIsoAspect()->SetNumber(10);
|
||||
CurDrawer->VIsoAspect()->SetNumber(10);
|
||||
aDoc->GetAISContext()->SetLocalAttributes(aSurface, CurDrawer);
|
||||
aDoc->GetAISContext()->SetLocalAttributes(aSurface, CurDrawer, Standard_False);
|
||||
aDoc->GetAISContext()->Display(aSurface, Standard_False);
|
||||
|
||||
if(NbResults>0)
|
||||
@@ -2495,13 +2495,13 @@ else
|
||||
}
|
||||
|
||||
Handle(ISession_Curve) aCurve = new ISession_Curve(SPL1);
|
||||
aDoc->GetAISContext()->SetDisplayMode(aCurve,1);
|
||||
aDoc->GetAISContext()->SetDisplayMode(aCurve,1, Standard_False);
|
||||
aDoc->GetAISContext()->Display(aCurve, Standard_False);
|
||||
|
||||
if (anInterpolation.IsDone())
|
||||
{
|
||||
Handle(ISession_Curve) aCurve2 = new ISession_Curve(SPL2);
|
||||
aDoc->GetAISContext()->SetDisplayMode(aCurve2,1);
|
||||
aDoc->GetAISContext()->SetDisplayMode(aCurve2,1, Standard_False);
|
||||
aDoc->GetAISContext()->Display(aCurve2, Standard_False);
|
||||
}
|
||||
|
||||
@@ -4140,12 +4140,12 @@ aBox.Get( aXmin, aYmin,aZmin, aXmax,aYmax,aZmax); \n\
|
||||
|
||||
Quantity_NameOfColor aNameOfColor= Quantity_NOC_GREEN;
|
||||
Handle(ISession_Surface) aGraphicalSurface = new ISession_Surface(aSurf);
|
||||
aDoc->GetAISContext()->SetColor(aGraphicalSurface,aNameOfColor);
|
||||
aDoc->GetAISContext()->SetColor (aGraphicalSurface, aNameOfColor, Standard_False);
|
||||
aGraphicalSurface->Attributes()->FreeBoundaryAspect()->SetColor(aNameOfColor);
|
||||
aGraphicalSurface->Attributes()->UIsoAspect()->SetColor(aNameOfColor);
|
||||
aGraphicalSurface->Attributes()->VIsoAspect()->SetColor(aNameOfColor);
|
||||
|
||||
aDoc->GetAISContext()->SetDisplayMode(aGraphicalSurface,1);
|
||||
aDoc->GetAISContext()->SetDisplayMode (aGraphicalSurface, 1, Standard_False);
|
||||
aDoc->GetAISContext()->Display(aGraphicalSurface,false);
|
||||
// DisplaySurface(aDoc,aSurf,Quantity_NOC_GREEN);
|
||||
|
||||
|
@@ -261,7 +261,7 @@ void CGeometryDoc::MoveEvent2D(const Standard_Integer x,
|
||||
//View is not updated automatically in ConvertToGrid
|
||||
aView->Update();
|
||||
}
|
||||
this->myAISContext2D->MoveTo(x, y, aView);
|
||||
this->myAISContext2D->MoveTo (x, y, aView, Standard_True);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------------------
|
||||
@@ -352,7 +352,7 @@ void CGeometryDoc::InputEvent (const Standard_Integer /*theMouseX*/,
|
||||
const Standard_Integer /*theMouseY*/,
|
||||
const Handle(V3d_View)& /*theView*/)
|
||||
{
|
||||
myAISContext->Select();
|
||||
myAISContext->Select (Standard_True);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------------------
|
||||
@@ -1177,7 +1177,7 @@ void CGeometryDoc::OnSimplify()
|
||||
myCResultDialog.SetText(initfile);
|
||||
return;
|
||||
}
|
||||
myAISContext->SetDisplayMode(AIS_Shaded);
|
||||
myAISContext->SetDisplayMode(AIS_Shaded, Standard_True);
|
||||
simplify(aShape);
|
||||
}
|
||||
|
||||
@@ -1541,7 +1541,7 @@ Handle(AIS_InteractiveObject) CGeometryDoc::drawSurface
|
||||
Fit();
|
||||
}
|
||||
else
|
||||
myAISContext->Display (aGraphicSurface);
|
||||
myAISContext->Display (aGraphicSurface, Standard_True);
|
||||
}
|
||||
|
||||
return aGraphicSurface;
|
||||
@@ -1578,7 +1578,7 @@ Handle(AIS_Point) CGeometryDoc::drawPoint
|
||||
myAISContext->SetColor (aGraphicPoint, theColor, toDisplay);
|
||||
if (toDisplay)
|
||||
{
|
||||
myAISContext->Display (aGraphicPoint);
|
||||
myAISContext->Display (aGraphicPoint, Standard_True);
|
||||
//COCCDemoDoc::Fit();
|
||||
}
|
||||
|
||||
@@ -1601,7 +1601,7 @@ Handle(AIS_Shape) CGeometryDoc::drawShape
|
||||
Fit();
|
||||
}
|
||||
else
|
||||
myAISContext->Display (aGraphicShape);
|
||||
myAISContext->Display (aGraphicShape, Standard_True);
|
||||
}
|
||||
|
||||
return aGraphicShape;
|
||||
|
Reference in New Issue
Block a user