0033661: Data Exchange, Step Import - Tessellated GDTs are not imported
[occt.git] / src / AIS / AIS_AnimationObject.cxx
CommitLineData
1beb58d7 1// Created by: Anastasia BORISOVA
2// Copyright (c) 2016 OPEN CASCADE SAS
3//
4// This file is part of Open CASCADE Technology software library.
5//
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.
11//
12// Alternatively, this file may be used under the terms of Open CASCADE
13// commercial license or contractual agreement.
14
15#include <AIS_AnimationObject.hxx>
16
53eae1a9 17IMPLEMENT_STANDARD_RTTIEXT(AIS_AnimationObject, AIS_BaseAnimationObject)
1beb58d7 18
19//=============================================================================
20//function : Constructor
21//purpose :
22//=============================================================================
23AIS_AnimationObject::AIS_AnimationObject (const TCollection_AsciiString& theAnimationName,
24 const Handle(AIS_InteractiveContext)& theContext,
25 const Handle(AIS_InteractiveObject)& theObject,
26 const gp_Trsf& theTrsfStart,
27 const gp_Trsf& theTrsfEnd)
53eae1a9 28: AIS_BaseAnimationObject (theAnimationName, theContext, theObject),
1beb58d7 29 myTrsfLerp (theTrsfStart, theTrsfEnd)
30{
31 //
32}
33
34//=============================================================================
35//function : update
36//purpose :
37//=============================================================================
38void AIS_AnimationObject::update (const AIS_AnimationProgress& theProgress)
39{
40 if (myObject.IsNull())
41 {
42 return;
43 }
44
45 gp_Trsf aTrsf;
46 myTrsfLerp.Interpolate (theProgress.LocalNormalized, aTrsf);
53eae1a9 47 updateTrsf (aTrsf);
1beb58d7 48}