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.
58 lines
1.9 KiB
C++
58 lines
1.9 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
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AzCore/EBus/EBus.h>
|
|
#include <EMotionFX/Source/Actor.h>
|
|
#include <EMotionFX/Source/ActorInstance.h>
|
|
#include <QMenu>
|
|
#include <QModelIndexList>
|
|
|
|
|
|
namespace EMotionFX
|
|
{
|
|
class SkeletonModel;
|
|
|
|
/**
|
|
* EMotion FX Skeleton Outliner Request Bus
|
|
* Used for making requests to skeleton outliner.
|
|
*/
|
|
class SkeletonOutlinerRequests
|
|
: public AZ::EBusTraits
|
|
{
|
|
public:
|
|
virtual Node* GetSingleSelectedNode() { return nullptr; }
|
|
virtual QModelIndex GetSingleSelectedModelIndex() { return QModelIndex(); }
|
|
virtual AZ::Outcome<const QModelIndexList&> GetSelectedRowIndices() { return AZ::Failure(); }
|
|
virtual SkeletonModel* GetModel() = 0;
|
|
|
|
virtual void DataChanged([[maybe_unused]] const QModelIndex& modelIndex) {}
|
|
virtual void DataListChanged([[maybe_unused]] const QModelIndexList& modelIndexList) {}
|
|
};
|
|
|
|
using SkeletonOutlinerRequestBus = AZ::EBus<SkeletonOutlinerRequests>;
|
|
|
|
/**
|
|
* EMotion FX Skeleton Outliner Notification Bus
|
|
* Used for monitoring events from the skeleton outliner.
|
|
*/
|
|
class SkeletonOutlinerNotifications
|
|
: public AZ::EBusTraits
|
|
{
|
|
public:
|
|
virtual void SingleNodeSelectionChanged([[maybe_unused]] Actor* actor, [[maybe_unused]] Node* node) {}
|
|
virtual void ZoomToJoints([[maybe_unused]] ActorInstance* actorInstance, [[maybe_unused]] const AZStd::vector<Node*>& joints) {}
|
|
virtual void JointSelectionChanged() {}
|
|
|
|
virtual void OnContextMenu([[maybe_unused]] QMenu* menuconst, [[maybe_unused]] const QModelIndexList& selectedRowIndices) {}
|
|
};
|
|
|
|
using SkeletonOutlinerNotificationBus = AZ::EBus<SkeletonOutlinerNotifications>;
|
|
} // namespace EMotionFX
|