// commercial license or contractual agreement.
+#include <AIS_DisplayMode.hxx>
#include <AIS_GlobalStatus.hxx>
#include <Standard_Type.hxx>
#include <TColStd_ListIteratorOfListOfInteger.hxx>
AIS_GlobalStatus::AIS_GlobalStatus():
myStatus(AIS_DS_None),
+myDispMode(AIS_WireFrame),
myLayerIndex(0),
myIsHilit(Standard_False),
myHiCol(Quantity_NOC_WHITE),
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);
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);