You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
72 lines
2.8 KiB
C++
72 lines
2.8 KiB
C++
/*
|
|
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
|
|
* its licensors.
|
|
*
|
|
* For complete copyright and license terms please see the LICENSE at the root of this
|
|
* distribution (the "License"). All use of this software is governed by the License,
|
|
* or, if provided, by the license below or the license accompanying this file. Do not
|
|
* remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AzCore/Memory/Memory.h>
|
|
#include <SceneAPI/SceneCore/Containers/RuleContainer.h>
|
|
#include <SceneAPI/SceneCore/DataTypes/Groups/IAnimationGroup.h>
|
|
|
|
|
|
namespace AZ
|
|
{
|
|
class ReflectContext;
|
|
|
|
namespace SceneAPI
|
|
{
|
|
namespace SceneData
|
|
{
|
|
class AnimationGroup
|
|
: public DataTypes::IAnimationGroup
|
|
{
|
|
public:
|
|
AZ_RTTI(AnimationGroup, "{982E0030-8131-43E9-BA8C-23775A3B7219}", DataTypes::IAnimationGroup);
|
|
AZ_CLASS_ALLOCATOR_DECL
|
|
|
|
AnimationGroup();
|
|
~AnimationGroup() override = default;
|
|
|
|
const AZStd::string& GetName() const override;
|
|
void SetName(const AZStd::string& name);
|
|
void SetName(AZStd::string&& name);
|
|
const Uuid& GetId() const override;
|
|
void OverrideId(const Uuid& id);
|
|
|
|
Containers::RuleContainer& GetRuleContainer() override;
|
|
const Containers::RuleContainer& GetRuleContainerConst() const;
|
|
|
|
const AZStd::string& GetSelectedRootBone() const override;
|
|
uint32_t GetStartFrame() const override;
|
|
uint32_t GetEndFrame() const override;
|
|
const float GetDefaultCompressionStrength() const override;
|
|
const DataTypes::IAnimationGroup::PerBoneCompressionList& GetPerBoneCompression() const override;
|
|
void SetSelectedRootBone(const AZStd::string& selectedRootBone) override;
|
|
void SetStartFrame(uint32_t frame) override;
|
|
void SetEndFrame(uint32_t frame) override;
|
|
|
|
static void Reflect(ReflectContext* context);
|
|
static bool VersionConverter(SerializeContext& context, SerializeContext::DataElementNode& classElement);
|
|
|
|
protected:
|
|
DataTypes::IAnimationGroup::PerBoneCompressionList m_perBoneCompression;
|
|
Containers::RuleContainer m_rules;
|
|
AZStd::string m_selectedRootBone;
|
|
AZStd::string m_name;
|
|
Uuid m_id;
|
|
uint32_t m_startFrame;
|
|
uint32_t m_endFrame;
|
|
float m_defaultCompressionStrength;
|
|
};
|
|
}
|
|
}
|
|
}
|