1 #include "CurveCreator_Displayer.h"
3 CurveCreator_Displayer::CurveCreator_Displayer( Handle_AIS_InteractiveContext theContext ) :
4 myContext( theContext )
9 CurveCreator_Displayer::~CurveCreator_Displayer(void)
12 for( int i = 0 ; i < myObjects.size() ; i++ ){
13 myObjects[i].Nullify();
18 void CurveCreator_Displayer::display( const Handle(AIS_InteractiveObject)& theObject, bool isUpdate )
20 if ( theObject.IsNull() )
23 myObjects.push_back( theObject );
24 myContext->Display( theObject, Standard_False );
27 myContext->UpdateCurrentViewer();
30 void CurveCreator_Displayer::eraseAll( bool isUpdate )
34 for( int i = 0 ; i < myObjects.size() ; i++ ){
35 myContext->Erase(myObjects[i], Standard_False);
39 myContext->UpdateCurrentViewer();
42 Quantity_Color CurveCreator_Displayer::getActiveColor( bool isHL )
45 return Quantity_Color( 1., 0., 0., Quantity_TOC_RGB );
47 return Quantity_Color( 0., 1., 0., Quantity_TOC_RGB );
50 /*void CurveCreator_Displayer::highlight( const AISObjectsList& theObjects, bool isHL )
54 Quantity_Color aColor = getActiveColor( isHL );
55 for( int i = 0 ; i < theObjects.size() ; i++ ){
56 theObjects[i]->SetColor(aColor);
57 myContext->Display(theObjects[i], Standard_False);
59 myContext->UpdateCurrentViewer();