// This file is generated by WOK (CPPExt). // Please do not edit this file; modify original file instead. // The copyright and license terms as defined for the original file apply to // this header file considered to be the "object code" form of the original source. #ifndef _AIS2D_GlobalStatus_HeaderFile #define _AIS2D_GlobalStatus_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_DefineHandle_HeaderFile #include #endif #ifndef _Handle_AIS2D_GlobalStatus_HeaderFile #include #endif #ifndef _AIS2D_DisplayStatus_HeaderFile #include #endif #ifndef _TColStd_ListOfInteger_HeaderFile #include #endif #ifndef _Standard_Integer_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif #ifndef _Quantity_NameOfColor_HeaderFile #include #endif #ifndef _MMgt_TShared_HeaderFile #include #endif #ifndef _AIS2D_PToListOfInt_HeaderFile #include #endif //! Stores information about objects in graphic context:
//! - Status Of Display : in the main viewer
//! in the collector
//! fully Erased
//! - Displayed Modes
//! - Active Selection Modes
//! - is the Interactive Object Current ?
//! - Layer Index
class AIS2D_GlobalStatus : public MMgt_TShared { public: //! Initialize GlobalStatus the default properties
Standard_EXPORT AIS2D_GlobalStatus(); //! Initialize GlobalStatus the concrete properties
Standard_EXPORT AIS2D_GlobalStatus(const AIS2D_DisplayStatus aStat,const Standard_Integer aDMode,const Standard_Integer aSMode,const Standard_Boolean isHighlight = Standard_False,const Quantity_NameOfColor aHighlCol = Quantity_NOC_WHITE,const Standard_Integer aLayerIndex = 0); //! Sets the graphic status
void SetGraphicStatus(const AIS2D_DisplayStatus aStat) ; //! Adds the display mode to the list of display modes
Standard_EXPORT void AddDisplayMode(const Standard_Integer aMode) ; //! Removes the display mode from the list of display modes
Standard_EXPORT void RemoveDisplayMode(const Standard_Integer aMode) ; //! Returns True if the list of display modes
//! contains the display mode
Standard_EXPORT Standard_Boolean IsDModeIn(const Standard_Integer aMode) const; //! Adds the selection mode to the list of selection modes
Standard_EXPORT void AddSelectionMode(const Standard_Integer aMode) ; //! Removes the selection mode from the list of selection modes
Standard_EXPORT void RemoveSelectionMode(const Standard_Integer aMode) ; //! Removes all selection modes from the list of selection modes
Standard_EXPORT void ClearSelectionModes() ; //! Returns True if the list of selection modes
//! contains the selection mode
Standard_EXPORT Standard_Boolean IsSModeIn(const Standard_Integer aMode) const; //! Sets the layer index
void SetLayerIndex(const Standard_Integer anIndex) ; //! Sets the highlight status
void SetHighlightStatus(const Standard_Boolean aStat) ; //! Sets the color of highight
void SetHighlightColor(const Quantity_NameOfColor aHiCol) ; //! Return True if SubIntensity is on
Standard_Boolean IsSubIntensityOn() const; //! Sets the SubIntensity
void SubIntensityOn() ; //! Unsets the SubIntensity
void SubIntensityOff() ; //! Indicates the display status
AIS2D_DisplayStatus GraphicStatus() const; //! keeps the information of displayed modes in the
//! main viewer.
//! (The convention is that the object is displayed
//! with the mode 0 in the collector...)
AIS2D_PToListOfInt DisplayedModes() ; //! keeps the active selection modes of the object
//! in the main viewer.
//! (The convention is that the active selection mode
//! for an object in the collector is the mode 0).
AIS2D_PToListOfInt SelectionModes() ; //! Returns True if highlight is on
Standard_Boolean IsHighlight() const; //! Returns the color of highlight
Quantity_NameOfColor HighlightColor() const; DEFINE_STANDARD_RTTI(AIS2D_GlobalStatus) protected: private: AIS2D_DisplayStatus myStatus; TColStd_ListOfInteger myDispModes; TColStd_ListOfInteger mySelModes; Standard_Integer myLayerIndex; Standard_Boolean myIsHighl; Quantity_NameOfColor myHiCol; Standard_Boolean mySubInt; }; #include // other Inline functions and methods (like "C++: function call" methods) #endif