AIS_InteractiveObject::Redisplay now redirects the execution to interactive context;
All calls to AIS_InteractiveObject::Redisplay were replaced by AIS_InteractiveContext::Redisplay
Small correction of test case
{
if (theIObj->RecomputeEveryPrs())
{
- theIObj->Redisplay();
+ theIObj->Update (Standard_True);
+ theIObj->UpdateSelection();
}
else
{
{
if (theIObj->RecomputeEveryPrs())
{
- theIObj->Redisplay();
+ theIObj->Update (Standard_True);
+ theIObj->UpdateSelection();
}
else
{
if (theIObj->RecomputeEveryPrs())
{
- theIObj->Redisplay();
+ theIObj->Update (Standard_True);
+ theIObj->UpdateSelection();
}
else
{
-- be implemented when the main mode is not mode 0.
- Redisplay (me:mutable; AllModes:Boolean from Standard =Standard_False);
- ---Purpose: Updates the active presentation; if <AllModes> = Standard_True
- -- all the presentations inside are recomputed.
+ Redisplay (me:mutable; AllModes:Boolean from Standard =Standard_False);
+ ---Purpose: Updates the active presentation; if <AllModes> = Standard_True
+ -- all the presentations inside are recomputed.
+ -- IMPORTANT: It is preferable to call Redisplay method of
+ -- corresponding AIS_InteractiveContext instance for cases when it
+ -- is accessible. This method just redirects call to myCTXPtr,
+ -- so this class field must be up to date for proper result.
SetInfiniteState(me:mutable;aFlag:Boolean from Standard = Standard_True);
//=======================================================================
//function : Redisplay
-//purpose :
+//purpose :
//=======================================================================
-
-void AIS_InteractiveObject::Redisplay(const Standard_Boolean AllModes)
+void AIS_InteractiveObject::Redisplay (const Standard_Boolean AllModes)
{
- Update(AllModes);
- UpdateSelection();
+ if (myCTXPtr == NULL)
+ return;
+
+ myCTXPtr->Redisplay (this, Standard_False, AllModes);
}
//=======================================================================
}
else if (!aColoredPrs.IsNull())
{
- aColoredPrs->Redisplay();
+ aCtx->Redisplay (aColoredPrs, Standard_False);
}
}
else
{
continue;
}
- aShape->Redisplay();
+ ViewerTest::GetAISContext()->Redisplay (aShape, Standard_False);
}
}
}
if (aShape->TypeOfHLR() != aTypeOfHLR)
aShape->SetTypeOfHLR (aTypeOfHLR);
if (MyHLRIsOn)
- aShape->Redisplay();
+ ViewerTest::GetAISContext()->Redisplay (aShape, Standard_False);
}
ViewerTest::CurrentView()->Update();
return 0;
continue;
anAISObject->SetTypeOfHLR (aTypeOfHLR);
if (MyHLRIsOn)
- anAISObject->Redisplay();
+ ViewerTest::GetAISContext()->Redisplay (anAISObject, Standard_False);
}
ViewerTest::CurrentView()->Update();
}
aShape->SetTypeOfHLR (Prs3d_TOH_Algo);
else
aShape->SetTypeOfHLR (Prs3d_TOH_PolyAlgo);
- aShape->Redisplay();
+ aContext->Redisplay (aShape, Standard_False);
}
}
else
aShape->SetTypeOfHLR (Prs3d_TOH_Algo);
else
aShape->SetTypeOfHLR (Prs3d_TOH_PolyAlgo);
- aShape->Redisplay();
+ aContext->Redisplay (aShape, Standard_False);
}
}
-puts "TODO OCC23626 Windows: Tcl Exception"
-puts "TODO OCC23626 Windows: TEST INCOMPLETE"
+puts "TODO OCC23626 Debian60-64 Windows: Tcl Exception"
+puts "TODO OCC23626 Debian60-64 Windows: TEST INCOMPLETE"
puts "================"
puts "OCC63"