Added ndi receiver and sdi outputs
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
Copyright (C) 2024 Vizrt NDI AB. All rights reserved.
|
||||
|
||||
This file and its use within a Product is bound by the terms of NDI SDK license that was provided
|
||||
as part of the NDI SDK. For more information, please review the license and the NDI SDK documentation.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <CoreMinimal.h>
|
||||
#include <Factories/Factory.h>
|
||||
#include <UObject/Object.h>
|
||||
|
||||
#include "NDIMediaReceiverFactory.generated.h"
|
||||
|
||||
/**
|
||||
Factory Class used to create assets via content browser for NDI Receiver objects
|
||||
*/
|
||||
UCLASS()
|
||||
class NDIIOEDITOR_API UNDIMediaReceiverFactory : public UFactory
|
||||
{
|
||||
GENERATED_UCLASS_BODY()
|
||||
|
||||
public:
|
||||
virtual FText GetDisplayName() const override;
|
||||
virtual uint32 GetMenuCategories() const override;
|
||||
|
||||
virtual bool ShouldShowInNewMenu() const override { return true; }
|
||||
virtual UObject* FactoryCreateNew(UClass* InClass, UObject* InParent, FName InName, EObjectFlags Flags, UObject* Context, FFeedbackContext* Warn) override;
|
||||
};
|
||||
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
Copyright (C) 2024 Vizrt NDI AB. All rights reserved.
|
||||
|
||||
This file and its use within a Product is bound by the terms of NDI SDK license that was provided
|
||||
as part of the NDI SDK. For more information, please review the license and the NDI SDK documentation.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <CoreMinimal.h>
|
||||
#include <Factories/Factory.h>
|
||||
#include <UObject/Object.h>
|
||||
|
||||
#include "NDIMediaSenderFactory.generated.h"
|
||||
|
||||
/**
|
||||
Factory Class used to create assets via content browser for NDI Sender objects
|
||||
*/
|
||||
UCLASS()
|
||||
class NDIIOEDITOR_API UNDIMediaSenderFactory : public UFactory
|
||||
{
|
||||
GENERATED_UCLASS_BODY()
|
||||
|
||||
public:
|
||||
virtual FText GetDisplayName() const override;
|
||||
virtual uint32 GetMenuCategories() const override;
|
||||
|
||||
virtual UObject* FactoryCreateNew(UClass* InClass, UObject* InParent, FName InName, EObjectFlags Flags, UObject* Context, FFeedbackContext* Warn) override;
|
||||
};
|
||||
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
Copyright (C) 2024 Vizrt NDI AB. All rights reserved.
|
||||
|
||||
This file and its use within a Product is bound by the terms of NDI SDK license that was provided
|
||||
as part of the NDI SDK. For more information, please review the license and the NDI SDK documentation.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <CoreMinimal.h>
|
||||
#include <Factories/Factory.h>
|
||||
#include <UObject/Object.h>
|
||||
|
||||
#include "NDIMediaSoundWaveFactory.generated.h"
|
||||
|
||||
/**
|
||||
Factory Class used to create assets via content browser for NDI Sound Wave objects
|
||||
*/
|
||||
UCLASS()
|
||||
class NDIIOEDITOR_API UNDIMediaSoundWaveFactory : public UFactory
|
||||
{
|
||||
GENERATED_UCLASS_BODY()
|
||||
|
||||
public:
|
||||
virtual FText GetDisplayName() const override;
|
||||
virtual uint32 GetMenuCategories() const override;
|
||||
|
||||
virtual UObject* FactoryCreateNew(UClass* InClass, UObject* InParent, FName InName, EObjectFlags Flags, UObject* Context, FFeedbackContext* Warn) override;
|
||||
};
|
||||
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
Copyright (C) 2024 Vizrt NDI AB. All rights reserved.
|
||||
|
||||
This file and its use within a Product is bound by the terms of NDI SDK license that was provided
|
||||
as part of the NDI SDK. For more information, please review the license and the NDI SDK documentation.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <CoreMinimal.h>
|
||||
#include <Factories/Factory.h>
|
||||
#include <UObject/Object.h>
|
||||
|
||||
#include "NDIMediaTexture2DFactory.generated.h"
|
||||
|
||||
/**
|
||||
Factory Class used to create assets via content browser for NDI Texture2D objects
|
||||
*/
|
||||
UCLASS()
|
||||
class NDIIOEDITOR_API UNDIMediaTexture2DFactory : public UFactory
|
||||
{
|
||||
GENERATED_UCLASS_BODY()
|
||||
|
||||
public:
|
||||
virtual FText GetDisplayName() const override;
|
||||
virtual uint32 GetMenuCategories() const override;
|
||||
|
||||
virtual UObject* FactoryCreateNew(UClass* InClass, UObject* InParent, FName InName, EObjectFlags Flags, UObject* Context, FFeedbackContext* Warn) override;
|
||||
};
|
||||
12
Plugins/NDIIO/Source/Editor/Public/NDIIOEditorAPI.h
Normal file
12
Plugins/NDIIO/Source/Editor/Public/NDIIOEditorAPI.h
Normal file
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (C) 2024 Vizrt NDI AB. All rights reserved.
|
||||
|
||||
This file and its use within a Product is bound by the terms of NDI SDK license that was provided
|
||||
as part of the NDI SDK. For more information, please review the license and the NDI SDK documentation.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <CoreMinimal.h>
|
||||
|
||||
#define NDIIO_EDITOR_MODULE_NAME FName(TEXT("NDIIOEditor"))
|
||||
25
Plugins/NDIIO/Source/Editor/Public/NDIIOEditorModule.h
Normal file
25
Plugins/NDIIO/Source/Editor/Public/NDIIOEditorModule.h
Normal file
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
Copyright (C) 2024 Vizrt NDI AB. All rights reserved.
|
||||
|
||||
This file and its use within a Product is bound by the terms of NDI SDK license that was provided
|
||||
as part of the NDI SDK. For more information, please review the license and the NDI SDK documentation.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <CoreMinimal.h>
|
||||
|
||||
#include <Modules/ModuleManager.h>
|
||||
#include <Styling/SlateStyle.h>
|
||||
|
||||
class NDIIOEDITOR_API FNDIIOEditorModule : public IModuleInterface
|
||||
{
|
||||
public:
|
||||
virtual void StartupModule() override;
|
||||
virtual void ShutdownModule() override;
|
||||
|
||||
private:
|
||||
TUniquePtr<FSlateStyleSet> StyleInstance;
|
||||
};
|
||||
|
||||
IMPLEMENT_MODULE(FNDIIOEditorModule, NDIIOEditor)
|
||||
29
Plugins/NDIIO/Source/Editor/Public/Widgets/NDIWidgets.h
Normal file
29
Plugins/NDIIO/Source/Editor/Public/Widgets/NDIWidgets.h
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
Copyright (C) 2024 Vizrt NDI AB. All rights reserved.
|
||||
|
||||
This file and its use within a Product is bound by the terms of NDI SDK license that was provided
|
||||
as part of the NDI SDK. For more information, please review the license and the NDI SDK documentation.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <CoreMinimal.h>
|
||||
|
||||
#include <IPropertyTypeCustomization.h>
|
||||
|
||||
|
||||
/**
|
||||
Customization of NDIConnectionInformation property
|
||||
by including a menu to select from currently available NDI sources
|
||||
*/
|
||||
class FNDIConnectionInformationCustomization : public IPropertyTypeCustomization
|
||||
{
|
||||
public:
|
||||
static TSharedRef<IPropertyTypeCustomization> MakeInstance();
|
||||
|
||||
// IDetailCustomization interface
|
||||
virtual void CustomizeHeader(TSharedRef<IPropertyHandle> PropertyHandle, FDetailWidgetRow& HeaderRow, IPropertyTypeCustomizationUtils& CustomizationUtils) override;
|
||||
virtual void CustomizeChildren(TSharedRef<IPropertyHandle> PropertyHandle, IDetailChildrenBuilder& ChildBuilder, IPropertyTypeCustomizationUtils& CustomizationUtils) override;
|
||||
|
||||
private:
|
||||
};
|
||||
Reference in New Issue
Block a user