// 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 _AIS_Selection_HeaderFile #define _AIS_Selection_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_DefineHandle_HeaderFile #include #endif #ifndef _Handle_AIS_Selection_HeaderFile #include #endif #ifndef _TCollection_AsciiString_HeaderFile #include #endif #ifndef _Standard_Integer_HeaderFile #include #endif #ifndef _AIS_NListTransient_HeaderFile #include #endif #ifndef _AIS_NListIteratorOfListTransient_HeaderFile #include #endif #ifndef _AIS_NDataMapOfTransientIteratorOfListTransient_HeaderFile #include #endif #ifndef _MMgt_TShared_HeaderFile #include #endif #ifndef _Standard_CString_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif #ifndef _AIS_SelectStatus_HeaderFile #include #endif #ifndef _Handle_Standard_Transient_HeaderFile #include #endif class Standard_NoSuchObject; class Standard_MultiplyDefined; class Standard_TypeMismatch; class Standard_Transient; class AIS_Selection : public MMgt_TShared { public: //! creates a new selection and make it current in the session.
//! the selection will be accessible later through its name
//! to make it again current.
//!
//! Note that if a session has been created, a session with
//! the name "default" is created.
//!
//! In this case, the is always a current selection which
//! is the last one created until SetCurrentSelection is used.
//!
//! The class methods deals with the current selection.
//!
//! Warning : Better Call AIS_Selection::CreateSelection.
//!
Standard_EXPORT AIS_Selection(const Standard_CString aName); Standard_EXPORT static void Remove(const Standard_CString aName) ; //! returns True if a selection having this name exsits.
Standard_EXPORT static Standard_Boolean Find(const Standard_CString aName) ; //! calls the private constructor and puts the new Selection
//! in the list of existing selections.
//! returns False if the selection exists.
Standard_EXPORT static Standard_Boolean CreateSelection(const Standard_CString aName) ; Standard_EXPORT static Handle_AIS_Selection Selection(const Standard_CString aName) ; //! returns False if There is no selection of name
Standard_EXPORT static Standard_Boolean SetCurrentSelection(const Standard_CString aName) ; Standard_EXPORT static Handle_AIS_Selection CurrentSelection() ; //! removes all the object of the currentselection.
Standard_EXPORT static void Select() ; //! if the object is not yet in the current selection, it will be added.
//! if the object is already in the current selection, it will be removed.
Standard_EXPORT static AIS_SelectStatus Select(const Handle(Standard_Transient)& anObject) ; //! the object is always add int the selection.
//! faster when the number of objects selected is great.
Standard_EXPORT static AIS_SelectStatus AddSelect(const Handle(Standard_Transient)& anObject) ; //! clears the selection and adds the object in the selection.
Standard_EXPORT static void ClearAndSelect(const Handle(Standard_Transient)& anObject) ; Standard_EXPORT static Standard_Boolean IsSelected(const Handle(Standard_Transient)& anObject) ; //! returns the number of objects selected.
Standard_EXPORT static Standard_Integer Extent() ; //! returns the single object selected.
//! Warning: raises TypeMismatch from Standard if Extent is not equal to 1.
Standard_EXPORT static Handle_Standard_Transient Single() ; void Init() ; Standard_Boolean More() const; void Next() ; const Handle_Standard_Transient& Value() const; Standard_Integer NbStored() const; const AIS_NListTransient& Objects() const; Standard_EXPORT static Standard_Integer Index(const Standard_CString aName) ; DEFINE_STANDARD_RTTI(AIS_Selection) protected: private: TCollection_AsciiString myName; Standard_Integer mycuri; AIS_NListTransient myresult; AIS_NListIteratorOfListTransient myIterator; AIS_NDataMapOfTransientIteratorOfListTransient myResultMap; Standard_Integer myNb; }; #include // other Inline functions and methods (like "C++: function call" methods) #endif