Salome HOME
projects
/
modules
/
geom.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Copyright update 2022
[modules/geom.git]
/
src
/
CurveCreator
/
CurveCreator_Displayer.cxx
diff --git
a/src/CurveCreator/CurveCreator_Displayer.cxx
b/src/CurveCreator/CurveCreator_Displayer.cxx
index 61285c96297437177147d53022a4c678289b6580..c1bd7fb1d175fe49510ef30401e6900cc388ac3a 100644
(file)
--- a/
src/CurveCreator/CurveCreator_Displayer.cxx
+++ b/
src/CurveCreator/CurveCreator_Displayer.cxx
@@
-1,4
+1,4
@@
-// Copyright (C) 2013-20
16
CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2013-20
22
CEA/DEN, EDF R&D, OPEN CASCADE
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
@@
-29,7
+29,7
@@
CurveCreator_Displayer::CurveCreator_Displayer( Handle(AIS_InteractiveContext) t
CurveCreator_Displayer::~CurveCreator_Displayer(void)
{
eraseAll( true );
CurveCreator_Displayer::~CurveCreator_Displayer(void)
{
eraseAll( true );
- for( int i = 0 ; i < myObjects.size() ; i++ ){
+ for( int i = 0 ; i <
(int)
myObjects.size() ; i++ ){
myObjects[i].Nullify();
}
myObjects.clear();
myObjects[i].Nullify();
}
myObjects.clear();
@@
-54,14
+54,22
@@
void CurveCreator_Displayer::eraseAll( bool isUpdate )
{
if(myObjects.empty())
return;
{
if(myObjects.empty())
return;
- for( int i = 0 ; i <
myObjects.size() ; i++ ){
+ for( int i = 0 ; i <
(int)myObjects.size() ; i++ )
myContext->Erase(myObjects[i], Standard_False);
myContext->Erase(myObjects[i], Standard_False);
- }
myObjects.clear();
if( isUpdate )
myContext->UpdateCurrentViewer();
}
myObjects.clear();
if( isUpdate )
myContext->UpdateCurrentViewer();
}
+void CurveCreator_Displayer::erase( const Handle(AIS_InteractiveObject)& theObject, bool isUpdate )
+{
+ if(theObject.IsNull())
+ return;
+ myContext->Erase(theObject, Standard_False);
+ if( isUpdate )
+ myContext->UpdateCurrentViewer();
+}
+
Quantity_Color CurveCreator_Displayer::getActiveColor( bool isHL )
{
if( isHL ){
Quantity_Color CurveCreator_Displayer::getActiveColor( bool isHL )
{
if( isHL ){
@@
-70,6
+78,13
@@
Quantity_Color CurveCreator_Displayer::getActiveColor( bool isHL )
return Quantity_Color( 0., 1., 0., Quantity_TOC_RGB );
}
return Quantity_Color( 0., 1., 0., Quantity_TOC_RGB );
}
+void CurveCreator_Displayer::Update()
+{
+ for( int i = 0 ; i < (int)myObjects.size() ; i++ )
+ myContext->Update(myObjects[i], Standard_True);
+ myContext->UpdateCurrentViewer();
+}
+
/*void CurveCreator_Displayer::highlight( const AISObjectsList& theObjects, bool isHL )
{
return;
/*void CurveCreator_Displayer::highlight( const AISObjectsList& theObjects, bool isHL )
{
return;