X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FAIS%2FAIS_GlobalStatus.cxx;h=28ae7bef15ea2dc5ddf398342f68455e5dc24ab7;hp=a8744c0fa8d687cc2819d703764a2402f2ba1ec3;hb=4c7a3faef5f292475c23ee615ad49d57fc039b58;hpb=d5f74e42d6160fc451ef4e464a93a0de9b384adc diff --git a/src/AIS/AIS_GlobalStatus.cxx b/src/AIS/AIS_GlobalStatus.cxx index a8744c0fa8..28ae7bef15 100644 --- a/src/AIS/AIS_GlobalStatus.cxx +++ b/src/AIS/AIS_GlobalStatus.cxx @@ -14,14 +14,19 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -#include +#include + +#include +#include #include +IMPLEMENT_STANDARD_RTTIEXT(AIS_GlobalStatus, Standard_Transient) + AIS_GlobalStatus::AIS_GlobalStatus(): myStatus(AIS_DS_None), +myDispMode(AIS_WireFrame), myLayerIndex(0), myIsHilit(Standard_False), -myHiCol(Quantity_NOC_WHITE), mySubInt(Standard_False) { } @@ -30,31 +35,16 @@ AIS_GlobalStatus::AIS_GlobalStatus(const AIS_DisplayStatus DS, const Standard_Integer DMode, const Standard_Integer SMode, const Standard_Boolean /*ishilighted*/, - const Quantity_NameOfColor TheHiCol, const Standard_Integer Layer): myStatus(DS), +myDispMode(DMode), myLayerIndex(Layer), myIsHilit(Standard_False), -myHiCol(TheHiCol), mySubInt(Standard_False) { - myDispModes.Append(DMode); mySelModes.Append(SMode); } -void AIS_GlobalStatus::RemoveDisplayMode(const Standard_Integer aMode) -{ - TColStd_ListIteratorOfListOfInteger anIt (myDispModes); - for (; anIt.More(); anIt.Next()) - { - if (anIt.Value() == aMode) - { - myDispModes.Remove (anIt); - return; - } - } -} - void AIS_GlobalStatus::RemoveSelectionMode(const Standard_Integer aMode) { TColStd_ListIteratorOfListOfInteger anIt (mySelModes); @@ -73,19 +63,6 @@ void AIS_GlobalStatus::ClearSelectionModes() mySelModes.Clear(); } -Standard_Boolean AIS_GlobalStatus::IsDModeIn(const Standard_Integer aMode) const -{ - TColStd_ListIteratorOfListOfInteger anIt (myDispModes); - for (; anIt.More(); anIt.Next()) - { - if (anIt.Value() == aMode) - { - return Standard_True; - } - } - return Standard_False; -} - Standard_Boolean AIS_GlobalStatus::IsSModeIn(const Standard_Integer aMode) const { TColStd_ListIteratorOfListOfInteger anIt (mySelModes);