Files
o3de/Gems/EMotionFX/Code/Tests/Mocks/Node.h
T
Steve Pham 38261d0800 Shorten copyright headers by splitting into 2 lines (#2213)
* Updated all copyright headers to split the longer original copyright line into 2 shorter lines

Signed-off-by: Steve Pham <spham@amazon.com>
2021-07-16 15:25:48 -07:00

73 lines
3.4 KiB
C++

/*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
namespace EMotionFX
{
class Actor;
class Skeleton;
class NodeAttribute;
class Node
{
friend class Actor;
public:
enum
{
TYPE_ID = 0x00000001
};
static Node* Create(const char* name, Skeleton* skeleton);
static Node* Create(uint32 nameID, Skeleton* skeleton);
MOCK_CONST_METHOD1(Clone, Node*(Skeleton* skeleton));
MOCK_METHOD1(SetParentIndex, void(uint32 parentNodeIndex));
MOCK_CONST_METHOD0(GetParentIndex, uint32());
MOCK_CONST_METHOD0(GetParentNode, Node*());
MOCK_CONST_METHOD2(RecursiveCollectParents, void(MCore::Array<uint32>& parents, bool clearParentsArray));
MOCK_METHOD1(SetName, void(const char* name));
MOCK_CONST_METHOD0(GetName, const char*());
MOCK_CONST_METHOD0(GetNameString, const AZStd::string&());
MOCK_METHOD1(SetSemanticName, void(const char* name));
MOCK_CONST_METHOD0(GetSemanticName, const char*());
MOCK_CONST_METHOD0(GetSemanticNameString, const AZStd::string&());
MOCK_CONST_METHOD0(GetID, uint32());
MOCK_CONST_METHOD0(GetSemanticID, uint32());
MOCK_CONST_METHOD0(GetNumChildNodes, uint32());
MOCK_CONST_METHOD0(GetNumChildNodesRecursive, uint32());
MOCK_CONST_METHOD1(GetChildIndex, uint32(uint32 nr));
MOCK_CONST_METHOD1(CheckIfIsChildNode, bool(uint32 nodeIndex));
MOCK_METHOD1(AddChild, void(uint32 nodeIndex));
MOCK_METHOD2(SetChild, void(uint32 childNr, uint32 childNodeIndex));
MOCK_METHOD1(SetNumChildNodes, void(uint32 numChildNodes));
MOCK_METHOD1(PreAllocNumChildNodes, void(uint32 numChildNodes));
MOCK_METHOD1(RemoveChild, void(uint32 nodeIndex));
MOCK_METHOD0(RemoveAllChildNodes, void());
MOCK_CONST_METHOD0(GetIsRootNode, bool());
MOCK_CONST_METHOD0(GetHasChildNodes, bool());
MOCK_CONST_METHOD0(FindRoot, Node*());
MOCK_METHOD1(AddAttribute, void(NodeAttribute* attribute));
MOCK_CONST_METHOD0(GetNumAttributes, uint32());
MOCK_METHOD1(GetAttribute, NodeAttribute*(uint32 attributeNr));
MOCK_METHOD1(GetAttributeByType, NodeAttribute*(uint32 attributeType));
MOCK_CONST_METHOD1(FindAttributeNumber, uint32(uint32 attributeTypeID));
MOCK_METHOD0(RemoveAllAttributes, void());
MOCK_METHOD1(RemoveAttribute, void(uint32 index));
MOCK_METHOD2(RemoveAttributeByType, void(uint32 attributeTypeID, uint32 occurrence));
MOCK_METHOD1(RemoveAllAttributesByType, uint32(uint32 attributeTypeID));
MOCK_METHOD1(SetNodeIndex, void(uint32 index));
MOCK_CONST_METHOD0(GetNodeIndex, uint32());
MOCK_METHOD1(SetSkeletalLODLevelBits, void(uint32 bitValues));
MOCK_METHOD2(SetSkeletalLODStatus, void(uint32 lodLevel, bool enabled));
MOCK_CONST_METHOD1(GetSkeletalLODStatus, bool(uint32 lodLevel));
MOCK_CONST_METHOD0(GetIncludeInBoundsCalc, bool());
MOCK_METHOD1(SetIncludeInBoundsCalc, void(bool includeThisNode));
MOCK_CONST_METHOD0(GetIsAttachmentNode, bool());
MOCK_METHOD1(SetIsAttachmentNode, void(bool isAttachmentNode));
};
} // namespace EMotionFX