Overte C++ Documentation
AnimDefaultPose.h
1 //
2 // AnimDefaultPose.h
3 //
4 // Created by Anthony J. Thibault on 6/26/17.
5 // Copyright (c) 2017 High Fidelity, Inc. All rights reserved.
6 //
7 // Distributed under the Apache License, Version 2.0.
8 // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
9 //
10 
11 #ifndef hifi_AnimDefaultPose_h
12 #define hifi_AnimDefaultPose_h
13 
14 #include <string>
15 #include "AnimNode.h"
16 
17 // Always returns the default pose of the current skeleton.
18 
19 class AnimDefaultPose : public AnimNode {
20 public:
21  AnimDefaultPose(const QString& id);
22  virtual ~AnimDefaultPose() override;
23 
24  virtual const AnimPoseVec& evaluate(const AnimVariantMap& animVars, const AnimContext& context, float dt, AnimVariantMap& triggersOut) override;
25 protected:
26  // for AnimDebugDraw rendering
27  virtual const AnimPoseVec& getPosesInternal() const override;
28 
29  AnimPoseVec _poses;
30 
31  // no copies
32  AnimDefaultPose(const AnimDefaultPose&) = delete;
33  AnimDefaultPose& operator=(const AnimDefaultPose&) = delete;
34 };
35 
36 #endif // hifi_AnimDefaultPose_h