if (anAnswer == Graphic3d_TOA_YES
|| anAnswer == Graphic3d_TOA_COMPUTE)
{
- Display (aStruct, Aspect_TOU_WAIT);
+ Display (aStruct);
}
}
}
- Update (myStructureManager->UpdateMode());
+ Update();
}
// =======================================================================
if (anAnswer == Graphic3d_TOA_YES
|| anAnswer == Graphic3d_TOA_COMPUTE)
{
- Erase (aStruct, Aspect_TOU_WAIT);
+ Erase (aStruct);
}
}
- Update (myStructureManager->UpdateMode());
+ Update();
myIsActive = Standard_False;
}
}
for (Graphic3d_MapIteratorOfMapOfStructure aStructIter (aDisplayedStructs); aStructIter.More(); aStructIter.Next())
{
- Erase (aStructIter.Value(), Aspect_TOU_WAIT);
+ Erase (aStructIter.Value());
}
myStructsToCompute.Clear();
eraseStructure (aStruct->CStructure());
displayStructure (myStructsComputed.Value (anIndex)->CStructure(), aStruct->DisplayPriority());
- Display (aStruct, Aspect_TOU_WAIT);
+ Display (aStruct);
if (aStruct->IsHighlighted())
{
const Handle(Graphic3d_Structure)& aCompStruct = myStructsComputed.Value (anIndex);
displayStructure (aCompStruct->CStructure(), aStruct->DisplayPriority());
}
}
- Update (myStructureManager->UpdateMode());
+ Update();
}
// =======================================================================
// function : Update
// purpose :
// =======================================================================
-void Graphic3d_CView::Update (const Aspect_TypeOfUpdate theUpdateMode,
- const Graphic3d_ZLayerId theLayerId)
+void Graphic3d_CView::Update (const Graphic3d_ZLayerId theLayerId)
{
InvalidateZLayerBoundingBox (theLayerId);
-
- if (theUpdateMode == Aspect_TOU_ASAP)
- {
- Compute();
- Redraw();
- }
}
// =======================================================================
void Graphic3d_CView::Compute()
{
// force HLRValidation to False on all structures calculated in the view
- const Standard_Integer aNbCompStructs = myStructsComputed.Length();
- for (Standard_Integer aStructIter = 1; aStructIter <= aNbCompStructs; ++aStructIter)
+ for (Graphic3d_SequenceOfStructure::Iterator aStructIter (myStructsComputed); aStructIter.More(); aStructIter.Next())
{
- myStructsComputed.Value (aStructIter)->SetHLRValidation (Standard_False);
+ aStructIter.Value()->SetHLRValidation (Standard_False);
}
if (!ComputedMode())
for (NCollection_Sequence<Handle(Graphic3d_Structure)>::Iterator aStructIter (aStructsSeq); aStructIter.More(); aStructIter.Next())
{
- Display (aStructIter.ChangeValue(), Aspect_TOU_WAIT);
+ Display (aStructIter.ChangeValue());
}
}
// purpose :
// =======================================================================
void Graphic3d_CView::Display (const Handle(Graphic3d_Structure)& theStructure)
-{
- Display (theStructure, myStructureManager->UpdateMode());
-}
-
-// =======================================================================
-// function : Display
-// purpose :
-// =======================================================================
-void Graphic3d_CView::Display (const Handle(Graphic3d_Structure)& theStructure,
- const Aspect_TypeOfUpdate theUpdateMode)
{
if (!IsActive())
{
theStructure->CalculateBoundBox();
displayStructure (theStructure->CStructure(), theStructure->DisplayPriority());
- Update (theUpdateMode, theStructure->GetZLayer());
+ Update (theStructure->GetZLayer());
return;
}
else if (anAnswer != Graphic3d_TOA_COMPUTE)
}
displayStructure (anOldStruct->CStructure(), theStructure->DisplayPriority());
- Update (theUpdateMode, anOldStruct->GetZLayer());
+ Update (anOldStruct->GetZLayer());
return;
}
else
const Handle(Graphic3d_Structure)& aNewStruct = myStructsComputed.Value (aNewIndex);
myStructsComputed.SetValue (anIndex, aNewStruct);
displayStructure (aNewStruct->CStructure(), theStructure->DisplayPriority());
- Update (theUpdateMode, aNewStruct->GetZLayer());
+ Update (aNewStruct->GetZLayer());
return;
}
else
myStructsDisplayed.Add (theStructure);
displayStructure (aStruct->CStructure(), theStructure->DisplayPriority());
- Update (theUpdateMode, aStruct->GetZLayer());
+ Update (aStruct->GetZLayer());
}
// =======================================================================
// purpose :
// =======================================================================
void Graphic3d_CView::Erase (const Handle(Graphic3d_Structure)& theStructure)
-{
- Erase (theStructure, myStructureManager->UpdateMode());
-}
-
-// =======================================================================
-// function : Erase
-// purpose :
-// =======================================================================
-void Graphic3d_CView::Erase (const Handle(Graphic3d_Structure)& theStructure,
- const Aspect_TypeOfUpdate theUpdateMode)
{
if (!IsDisplayed (theStructure))
{
}
}
myStructsDisplayed.Remove (theStructure);
- Update (theUpdateMode, theStructure->GetZLayer());
+ Update (theStructure->GetZLayer());
}
// =======================================================================