CurveCreator_Displayer::~CurveCreator_Displayer(void)
{
- erase();
+ erase( true );
for( int i = 0 ; i < myObjects.size() ; i++ ){
myObjects[i].Nullify();
}
myObjects.clear();
}
-void CurveCreator_Displayer::display( AISObjectsList theCurveObjects )
+void CurveCreator_Displayer::display( AISObjectsList theCurveObjects, bool isUpdate )
{
myObjects = theCurveObjects;
if(myObjects.empty())
for( int i = 0 ; i < myObjects.size() ; i++ ){
myContext->Display(myObjects[i], Standard_False);
}
- myContext->UpdateCurrentViewer();
+ if( isUpdate )
+ myContext->UpdateCurrentViewer();
}
-void CurveCreator_Displayer::erase()
+void CurveCreator_Displayer::erase( bool isUpdate )
{
if(myObjects.empty())
return;
for( int i = 0 ; i < myObjects.size() ; i++ ){
myContext->Erase(myObjects[i], Standard_False);
}
- myContext->UpdateCurrentViewer();
+ if( isUpdate )
+ myContext->UpdateCurrentViewer();
+}
+
+void CurveCreator_Displayer::displayAIS( Handle(AIS_InteractiveObject) theObject, bool isUpdate )
+{
+ myContext->Display( theObject, Standard_False );
+
+ if( isUpdate )
+ myContext->UpdateCurrentViewer();
+}
+
+void CurveCreator_Displayer::redisplayAIS( Handle(AIS_InteractiveObject) theObject, bool isUpdate )
+{
+ myContext->Redisplay( theObject, Standard_False );
+
+ if( isUpdate )
+ myContext->UpdateCurrentViewer();
}
Quantity_Color CurveCreator_Displayer::getActiveColor( bool isHL )