Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:02:54

0001 // Created by: Anastasia BORISOVA
0002 // Copyright (c) 2016 OPEN CASCADE SAS
0003 //
0004 // This file is part of Open CASCADE Technology software library.
0005 //
0006 // This library is free software; you can redistribute it and/or modify it under
0007 // the terms of the GNU Lesser General Public License version 2.1 as published
0008 // by the Free Software Foundation, with special exception defined in the file
0009 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0010 // distribution for complete text of the license and disclaimer of any warranty.
0011 //
0012 // Alternatively, this file may be used under the terms of Open CASCADE
0013 // commercial license or contractual agreement.
0014 
0015 #ifndef _AIS_AnimationCamera_HeaderFile
0016 #define _AIS_AnimationCamera_HeaderFile
0017 
0018 #include <AIS_Animation.hxx>
0019 
0020 class Graphic3d_Camera;
0021 class V3d_View;
0022 
0023 //! Camera animation.
0024 class AIS_AnimationCamera : public AIS_Animation
0025 {
0026   DEFINE_STANDARD_RTTIEXT(AIS_AnimationCamera, AIS_Animation)
0027 public:
0028 
0029   //! Main constructor.
0030   Standard_EXPORT AIS_AnimationCamera (const TCollection_AsciiString& theAnimationName,
0031                                        const Handle(V3d_View)& theView);
0032 
0033   //! Return the target view.
0034   const Handle(V3d_View)& View() const { return myView; }
0035 
0036   //! Set target view.
0037   void SetView (const Handle(V3d_View)& theView) { myView = theView; }
0038 
0039   //! Return camera start position.
0040   const Handle(Graphic3d_Camera)& CameraStart() const { return myCamStart; }
0041 
0042   //! Define camera start position.
0043   void SetCameraStart (const Handle(Graphic3d_Camera)& theCameraStart) { myCamStart = theCameraStart; }
0044 
0045   //! Return camera end position.
0046   const Handle(Graphic3d_Camera)& CameraEnd() const { return myCamEnd; }
0047 
0048   //! Define camera end position.
0049   void SetCameraEnd (const Handle(Graphic3d_Camera)& theCameraEnd) { myCamEnd = theCameraEnd; }
0050 
0051 protected:
0052 
0053   //! Update the progress.
0054   Standard_EXPORT virtual void update (const AIS_AnimationProgress& theProgress) Standard_OVERRIDE;
0055 
0056 protected:
0057 
0058   Handle(V3d_View)         myView;        //!< view to setup camera
0059   Handle(Graphic3d_Camera) myCamStart;    //!< starting camera position
0060   Handle(Graphic3d_Camera) myCamEnd;      //!< end camera position
0061 
0062 };
0063 
0064 DEFINE_STANDARD_HANDLE(AIS_AnimationCamera, AIS_Animation)
0065 
0066 #endif // _AIS_AnimationCamera_HeaderFile