mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0028088: Visualization, AIS_InteractiveContext - drop default value for Update Viewer parameter
This commit is contained in:
@@ -77,7 +77,7 @@ void Convert_Presentation::DoSample()
|
||||
{
|
||||
((COCCDemoApp*) AfxGetApp())->SetSampleName (L"Convert");
|
||||
((COCCDemoApp*) AfxGetApp())->SetSamplePath (L"..\\..\\10_Convert");
|
||||
getAISContext()->EraseAll();
|
||||
getAISContext()->EraseAll (Standard_True);
|
||||
if (myIndex >=0 && myIndex < myNbFuncs)
|
||||
(this->*SampleFuncs[myIndex])();
|
||||
}
|
||||
@@ -238,7 +238,7 @@ void Convert_Presentation::sampleBezier()
|
||||
//================================================================
|
||||
void Convert_Presentation::sampleBezierSurface()
|
||||
{
|
||||
getAISContext()->EraseAll();
|
||||
getAISContext()->EraseAll (Standard_True);
|
||||
|
||||
Standard_CString aName = "BezierSurface";
|
||||
// Create a BezierSurface
|
||||
@@ -292,7 +292,7 @@ void Convert_Presentation::sampleBezierSurface()
|
||||
//================================================================
|
||||
void Convert_Presentation::sampleCylindricalSurface()
|
||||
{
|
||||
getAISContext()->EraseAll();
|
||||
getAISContext()->EraseAll (Standard_True);
|
||||
|
||||
Standard_CString aName = "Cylindrical Surface";
|
||||
TCollection_AsciiString aText (
|
||||
@@ -332,7 +332,7 @@ void Convert_Presentation::sampleRevolSurface()
|
||||
TranslateView(-176.84682, -102.12892);
|
||||
SetViewScale(0.69326);
|
||||
|
||||
getAISContext()->EraseAll();
|
||||
getAISContext()->EraseAll (Standard_True);
|
||||
|
||||
Standard_CString aName = "Surface of revolution";
|
||||
TCollection_AsciiString aText (
|
||||
@@ -384,7 +384,7 @@ void Convert_Presentation::sampleRevolSurface()
|
||||
//================================================================
|
||||
void Convert_Presentation::sampleToroidalSurface()
|
||||
{
|
||||
getAISContext()->EraseAll();
|
||||
getAISContext()->EraseAll (Standard_True);
|
||||
|
||||
Standard_CString aName = "Toroidal surface";
|
||||
TCollection_AsciiString aText (
|
||||
@@ -407,7 +407,7 @@ void Convert_Presentation::sampleToroidalSurface()
|
||||
//================================================================
|
||||
void Convert_Presentation::sampleConicalSurface()
|
||||
{
|
||||
getAISContext()->EraseAll();
|
||||
getAISContext()->EraseAll (Standard_True);
|
||||
|
||||
Standard_CString aName = "Conical surface";
|
||||
TCollection_AsciiString aText (
|
||||
@@ -440,7 +440,7 @@ void Convert_Presentation::sampleConicalSurface()
|
||||
//================================================================
|
||||
void Convert_Presentation::sampleSphericalSurface()
|
||||
{
|
||||
getAISContext()->EraseAll();
|
||||
getAISContext()->EraseAll (Standard_True);
|
||||
|
||||
Standard_CString aName = "Spherical surface";
|
||||
TCollection_AsciiString aText (
|
||||
|
@@ -102,7 +102,7 @@ Handle(AIS_InteractiveObject) OCCDemo_Presentation::drawSurface
|
||||
COCCDemoDoc::Fit();
|
||||
}
|
||||
else
|
||||
getAISContext()->Display (aGraphicSurface);
|
||||
getAISContext()->Display (aGraphicSurface, Standard_True);
|
||||
}
|
||||
|
||||
return aGraphicSurface;
|
||||
@@ -127,7 +127,7 @@ Handle(AIS_InteractiveObject) OCCDemo_Presentation::drawCurve
|
||||
COCCDemoDoc::Fit();
|
||||
}
|
||||
else
|
||||
getAISContext()->Display (aGraphicCurve);
|
||||
getAISContext()->Display (aGraphicCurve, Standard_True);
|
||||
}
|
||||
|
||||
return aGraphicCurve;
|
||||
@@ -174,7 +174,7 @@ Handle(AIS_Point) OCCDemo_Presentation::drawPoint
|
||||
|
||||
getAISContext()->SetColor (aGraphicPoint, theColor, toDisplay);
|
||||
if (toDisplay) {
|
||||
getAISContext()->Display (aGraphicPoint);
|
||||
getAISContext()->Display (aGraphicPoint, Standard_True);
|
||||
//COCCDemoDoc::Fit();
|
||||
}
|
||||
|
||||
@@ -212,7 +212,7 @@ Handle(AIS_InteractiveObject) OCCDemo_Presentation::drawVector
|
||||
COCCDemoDoc::Fit();
|
||||
}
|
||||
else
|
||||
getAISContext()->Display (aGraphicCurve);
|
||||
getAISContext()->Display (aGraphicCurve, Standard_True);
|
||||
}
|
||||
|
||||
return aGraphicCurve;
|
||||
@@ -233,7 +233,7 @@ Handle(AIS_Shape) OCCDemo_Presentation::drawShape
|
||||
COCCDemoDoc::Fit();
|
||||
}
|
||||
else
|
||||
getAISContext()->Display (aGraphicShape);
|
||||
getAISContext()->Display (aGraphicShape, Standard_True);
|
||||
}
|
||||
|
||||
return aGraphicShape;
|
||||
@@ -253,7 +253,7 @@ Handle(AIS_Shape) OCCDemo_Presentation::drawShape
|
||||
COCCDemoDoc::Fit();
|
||||
}
|
||||
else
|
||||
getAISContext()->Display (aGraphicShape);
|
||||
getAISContext()->Display (aGraphicShape, Standard_True);
|
||||
}
|
||||
|
||||
return aGraphicShape;
|
||||
|
@@ -73,8 +73,8 @@ BOOL COCCDemoDoc::OnNewDocument()
|
||||
// (SDI documents will reuse this document)
|
||||
SetTitle(myPresentation->GetName());
|
||||
|
||||
myAISContext->EraseAll();
|
||||
myAISContext->SetDisplayMode(AIS_Shaded);
|
||||
myAISContext->EraseAll (Standard_False);
|
||||
myAISContext->SetDisplayMode (AIS_Shaded, Standard_True);
|
||||
|
||||
POSITION pos = GetFirstViewPosition();
|
||||
while (pos != NULL)
|
||||
@@ -163,14 +163,14 @@ void COCCDemoDoc::DoSample()
|
||||
|
||||
void COCCDemoDoc::OnBUTTONStart()
|
||||
{
|
||||
myAISContext->EraseAll();
|
||||
myAISContext->EraseAll (Standard_True);
|
||||
myPresentation->FirstSample();
|
||||
DoSample();
|
||||
}
|
||||
|
||||
void COCCDemoDoc::OnBUTTONEnd()
|
||||
{
|
||||
myAISContext->EraseAll();
|
||||
myAISContext->EraseAll (Standard_True);
|
||||
myPresentation->LastSample();
|
||||
DoSample();
|
||||
}
|
||||
|
@@ -494,18 +494,18 @@ void COCCDemoView::RedrawVisMode()
|
||||
switch (myVisMode)
|
||||
{
|
||||
case VIS_WIREFRAME:
|
||||
GetDocument()->GetAISContext()->SetDisplayMode(AIS_WireFrame);
|
||||
GetDocument()->GetAISContext()->SetDisplayMode (AIS_WireFrame, Standard_True);
|
||||
myView->SetComputedMode (Standard_False);
|
||||
break;
|
||||
case VIS_SHADE:
|
||||
GetDocument()->GetAISContext()->SetDisplayMode(AIS_Shaded);
|
||||
GetDocument()->GetAISContext()->SetDisplayMode (AIS_Shaded, Standard_True);
|
||||
myView->SetComputedMode (Standard_False);
|
||||
break;
|
||||
case VIS_HLR:
|
||||
SetCursor(AfxGetApp()->LoadStandardCursor(IDC_WAIT));
|
||||
myView->SetComputedMode (Standard_True);
|
||||
SetCursor(AfxGetApp()->LoadStandardCursor(IDC_ARROW));
|
||||
GetDocument()->GetAISContext()->SetDisplayMode(AIS_WireFrame);
|
||||
GetDocument()->GetAISContext()->SetDisplayMode (AIS_WireFrame, Standard_True);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user