Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-10-04 09:13:28

0001 // Copyright (c) 2023 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 _AIS_BaseAnimationObject_HeaderFile
0015 #define _AIS_BaseAnimationObject_HeaderFile
0016 
0017 #include <AIS_Animation.hxx>
0018 #include <AIS_InteractiveContext.hxx>
0019 
0020 //! Animation defining object transformation.
0021 class AIS_BaseAnimationObject : public AIS_Animation
0022 {
0023   DEFINE_STANDARD_RTTIEXT(AIS_BaseAnimationObject, AIS_Animation)
0024 protected:
0025   //! Constructor with initialization.
0026   //! @param[in] theAnimationName animation identifier
0027   //! @param[in] theContext       interactive context where object have been displayed
0028   //! @param[in] theObject        object to apply local transformation
0029   Standard_EXPORT AIS_BaseAnimationObject(const TCollection_AsciiString& theAnimationName,
0030                                           const occ::handle<AIS_InteractiveContext>& theContext,
0031                                           const occ::handle<AIS_InteractiveObject>&  theObject);
0032 
0033   //! Update the transformation.
0034   Standard_EXPORT void updateTrsf(const gp_Trsf& theTrsf);
0035 
0036 private:
0037   //! Invalidate the viewer for proper update.
0038   Standard_EXPORT void invalidateViewer();
0039 
0040 protected:
0041   occ::handle<AIS_InteractiveContext> myContext; //!< context where object is displayed
0042   occ::handle<AIS_InteractiveObject>  myObject;  //!< presentation object to set location
0043 };
0044 
0045 #endif // _AIS_BaseAnimationObject_HeaderFile