You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
44 lines
1.6 KiB
C++
44 lines
1.6 KiB
C++
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
#include "SharedPointer.h"
|
|
|
|
class FNiagaraConvertNodeViewModel;
|
|
class FNiagaraConvertPinSocketViewModel;
|
|
class UEdGraphPin;
|
|
|
|
/** A view model for a pin in a convert node. */
|
|
class FNiagaraConvertPinViewModel : public TSharedFromThis<FNiagaraConvertPinViewModel>
|
|
{
|
|
public:
|
|
FNiagaraConvertPinViewModel(TSharedRef<FNiagaraConvertNodeViewModel> InOwnerConvertNodeViewModel, UEdGraphPin& InGraphPin);
|
|
|
|
/** Gets the id for the pin. */
|
|
FGuid GetPinId() const;
|
|
|
|
/** Gets the graph pin which is represented by this view model. */
|
|
UEdGraphPin& GetGraphPin();
|
|
|
|
/** Gets the root socket view models for the socket tree which represents the properties on the type this pin represents. */
|
|
const TArray<TSharedRef<FNiagaraConvertPinSocketViewModel>>& GetSocketViewModels();
|
|
|
|
/** Gets the convert node view model which owns this pin view model. */
|
|
TSharedPtr<FNiagaraConvertNodeViewModel> GetOwnerConvertNodeViewModel();
|
|
|
|
private:
|
|
/** Rebuilds the socket view models. */
|
|
void RefreshSocketViewModels();
|
|
|
|
private:
|
|
/** The convert node view model which owns this view model. */
|
|
TWeakPtr<FNiagaraConvertNodeViewModel> OwnerConvertNodeViewModel;
|
|
|
|
/** The graph pin which this view model represents. */
|
|
UEdGraphPin& GraphPin;
|
|
|
|
/** When true the socket view models need to be rebuilt. */
|
|
bool bSocketViewModelsNeedRefresh;
|
|
|
|
/** The root socket view models for the socket tree which represents the properties on the type this pin represents. */
|
|
TArray<TSharedRef<FNiagaraConvertPinSocketViewModel>> SocketViewModels;
|
|
}; |