Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-12 09:16:29

0001 // Copyright (c) 2020 OPEN CASCADE SAS
0002 //
0003 // This file is part of Open CASCADE Technology software library.
0004 //
0005 // This library is free software; you can redistribute it and/or modify it under
0006 // the terms of the GNU Lesser General Public License version 2.1 as published
0007 // by the Free Software Foundation, with special exception defined in the file
0008 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0009 // distribution for complete text of the license and disclaimer of any warranty.
0010 //
0011 // Alternatively, this file may be used under the terms of Open CASCADE
0012 // commercial license or contractual agreement.
0013 
0014 #ifndef _Aspect_XRActionSet_HeaderFile
0015 #define _Aspect_XRActionSet_HeaderFile
0016 
0017 #include <Aspect_XRAction.hxx>
0018 
0019 //! XR action set.
0020 class Aspect_XRActionSet : public Standard_Transient
0021 {
0022   DEFINE_STANDARD_RTTIEXT(Aspect_XRActionSet, Standard_Transient)
0023 public:
0024   //! Return action id.
0025   const TCollection_AsciiString& Id() const { return myId; }
0026 
0027   //! Return action handle.
0028   uint64_t RawHandle() const { return myRawHandle; }
0029 
0030   //! Set action handle.
0031   void SetRawHandle(uint64_t theHande) { myRawHandle = theHande; }
0032 
0033   //! Add action.
0034   void AddAction(const occ::handle<Aspect_XRAction>& theAction)
0035   {
0036     myActions.Add(theAction->Id(), theAction);
0037   }
0038 
0039   //! Return map of actions.
0040   const NCollection_IndexedDataMap<TCollection_AsciiString, occ::handle<Aspect_XRAction>>& Actions()
0041     const
0042   {
0043     return myActions;
0044   }
0045 
0046   //! Main constructor.
0047   Aspect_XRActionSet(const TCollection_AsciiString& theId)
0048       : myId(theId),
0049         myRawHandle(0)
0050   {
0051   }
0052 
0053 protected:
0054   TCollection_AsciiString myId;        //!< action set id
0055   uint64_t                myRawHandle; //!< action set handle
0056   NCollection_IndexedDataMap<TCollection_AsciiString, occ::handle<Aspect_XRAction>>
0057     myActions; //!< map of actions
0058 };
0059 
0060 #endif // _Aspect_XRActionSet_HeaderFile