MovieSceneAkAudioRTPCTrackEditor.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /*******************************************************************************
  2. The content of this file includes portions of the proprietary AUDIOKINETIC Wwise
  3. Technology released in source code form as part of the game integration package.
  4. The content of this file may not be used without valid licenses to the
  5. AUDIOKINETIC Wwise Technology.
  6. Note that the use of the game engine is subject to the Unreal(R) Engine End User
  7. License Agreement at https://www.unrealengine.com/en-US/eula/unreal
  8. License Usage
  9. Licensees holding valid licenses to the AUDIOKINETIC Wwise Technology may use
  10. this file in accordance with the end user license agreement provided with the
  11. software or, alternatively, in accordance with the terms contained
  12. in a written agreement between you and Audiokinetic Inc.
  13. Copyright (c) 2023 Audiokinetic Inc.
  14. *******************************************************************************/
  15. #pragma once
  16. #include "KeyframeTrackEditor.h"
  17. #include "WwiseUEFeatures.h"
  18. #include "MovieSceneAkAudioRTPCTrack.h"
  19. #include "MovieSceneAkAudioRTPCSection.h"
  20. /**
  21. * Tools for AkAudioRTPC tracks
  22. */
  23. class FMovieSceneAkAudioRTPCTrackEditor
  24. : public FKeyframeTrackEditor<UMovieSceneAkAudioRTPCTrack>
  25. {
  26. public:
  27. /**
  28. * Constructor
  29. *
  30. * @param InSequencer The sequencer instance to be used by this tool
  31. */
  32. FMovieSceneAkAudioRTPCTrackEditor(TSharedRef<ISequencer> InSequencer);
  33. /**
  34. * Creates an instance of this class. Called by a sequencer
  35. *
  36. * @param OwningSequencer The sequencer instance to be used by this tool
  37. * @return The new instance of this class
  38. */
  39. static TSharedRef<ISequencerTrackEditor> CreateTrackEditor(TSharedRef<ISequencer> OwningSequencer);
  40. public:
  41. // ISequencerTrackEditor interface
  42. virtual void BuildObjectBindingTrackMenu(FMenuBuilder& MenuBuilder, const TArray<FGuid>& ObjectBindings, const UClass* ObjectClass) override;
  43. virtual void BuildAddTrackMenu(FMenuBuilder& MenuBuilder) override;
  44. virtual bool SupportsSequence(UMovieSceneSequence* InSequence) const override;
  45. virtual TSharedRef<ISequencerSection> MakeSectionInterface(UMovieSceneSection& SectionObject, UMovieSceneTrack& Track, FGuid ObjectBinding) override;
  46. virtual const FSlateBrush* GetIconBrush() const override;
  47. private:
  48. DECLARE_DELEGATE_RetVal_OneParam(UMovieSceneAkAudioRTPCTrack*, FCreateAkAudioRTPCTrack, UMovieScene*);
  49. void TryAddAkAudioRTPCTrack(FCreateAkAudioRTPCTrack DoCreateAkAudioRTPCTrack);
  50. };