1 // Created by: Anastasia BORISOVA
2 // Copyright (c) 2016 OPEN CASCADE SAS
4 // This file is part of Open CASCADE Technology software library.
6 // This library is free software; you can redistribute it and/or modify it under
7 // the terms of the GNU Lesser General Public License version 2.1 as published
8 // by the Free Software Foundation, with special exception defined in the file
9 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
10 // distribution for complete text of the license and disclaimer of any warranty.
12 // Alternatively, this file may be used under the terms of Open CASCADE
13 // commercial license or contractual agreement.
15 #ifndef _AIS_AnimationCamera_HeaderFile
16 #define _AIS_AnimationCamera_HeaderFile
18 #include <AIS_Animation.hxx>
20 class Graphic3d_Camera;
24 class AIS_AnimationCamera : public AIS_Animation
26 DEFINE_STANDARD_RTTIEXT(AIS_AnimationCamera, AIS_Animation)
30 Standard_EXPORT AIS_AnimationCamera (const TCollection_AsciiString& theAnimationName,
31 const Handle(V3d_View)& theView);
33 //! Return the target view.
34 const Handle(V3d_View)& View() const { return myView; }
37 void SetView (const Handle(V3d_View)& theView) { myView = theView; }
39 //! Return camera start position.
40 const Handle(Graphic3d_Camera)& CameraStart() const { return myCamStart; }
42 //! Define camera start position.
43 void SetCameraStart (const Handle(Graphic3d_Camera)& theCameraStart) { myCamStart = theCameraStart; }
45 //! Return camera end position.
46 const Handle(Graphic3d_Camera)& CameraEnd() const { return myCamEnd; }
48 //! Define camera end position.
49 void SetCameraEnd (const Handle(Graphic3d_Camera)& theCameraEnd) { myCamEnd = theCameraEnd; }
53 //! Update the progress.
54 Standard_EXPORT virtual void update (const AIS_AnimationProgress& theProgress) Standard_OVERRIDE;
58 Handle(V3d_View) myView; //!< view to setup camera
59 Handle(Graphic3d_Camera) myCamStart; //!< starting camera position
60 Handle(Graphic3d_Camera) myCamEnd; //!< end camera position
64 DEFINE_STANDARD_HANDLE(AIS_AnimationCamera, AIS_Animation)
66 #endif // _AIS_AnimationCamera_HeaderFile