Navigation
API > API/Plugins > API/Plugins/NiagaraEditor
A view model for editing a niagara system in a graph editor.
| Name | FNiagaraOverviewGraphViewModel |
| Type | class |
| Header File | /Engine/Plugins/FX/Niagara/Source/NiagaraEditor/Public/ViewModels/NiagaraOverviewGraphViewModel.h |
| Include Path | #include "ViewModels/NiagaraOverviewGraphViewModel.h" |
Syntax
class FNiagaraOverviewGraphViewModel :
public TSharedFromThis< FNiagaraOverviewGraphViewModel > ,
public FEditorUndoClient
Inheritance Hierarchy
- FEditorUndoClient → FNiagaraOverviewGraphViewModel
- FSharedFromThisBase → TSharedFromThis → FNiagaraOverviewGraphViewModel
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FNiagaraOverviewGraphViewModel() |
Create a new view model with the supplied system editor data and graph widget. | ViewModels/NiagaraOverviewGraphViewModel.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FNiagaraOverviewGraphViewModel() |
ViewModels/NiagaraOverviewGraphViewModel.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FOnNodesPasted | TMulticastDelegate_OneParam< void, const TSet< UEdGraphNode * > & > | A multicast delegate which is called when nodes are pasted in the graph which supplies the pasted nodes. | ViewModels/NiagaraOverviewGraphViewModel.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bIsForDataProcessingOnly | bool | Whether or not this view model is going to be used for data processing only and will not be shown in the UI. | ViewModels/NiagaraOverviewGraphViewModel.h | |
| bUpdatingGraphSelectionFromSystem | bool | ViewModels/NiagaraOverviewGraphViewModel.h | ||
| bUpdatingSystemSelectionFromGraph | bool | ViewModels/NiagaraOverviewGraphViewModel.h | ||
| Commands | TSharedRef< FUICommandList > | Commands for editing the graph. | ViewModels/NiagaraOverviewGraphViewModel.h | |
| DisplayNameCache | TOptional< FText > | The display name for the overview graph. | ViewModels/NiagaraOverviewGraphViewModel.h | |
| NodeSelection | TSharedRef< FNiagaraObjectSelection > | The set of nodes objects currently selected in the graph. | ViewModels/NiagaraOverviewGraphViewModel.h | |
| OnNodesPastedDelegate | FOnNodesPasted | A multicast delegate which is called whenever nodes are pasted into the graph. | ViewModels/NiagaraOverviewGraphViewModel.h | |
| OverviewGraph | TWeakObjectPtr< UEdGraph > | ViewModels/NiagaraOverviewGraphViewModel.h | ||
| SystemViewModel | TWeakPtr< FNiagaraSystemViewModel > | The view model to interface with the system being viewed and edited by this view model. | ViewModels/NiagaraOverviewGraphViewModel.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TSharedRef< FUICommandList > GetCommands() |
Gets commands used for editing the graph. | ViewModels/NiagaraOverviewGraphViewModel.h | |
FText GetDisplayName() |
Gets the display text for this graph. | ViewModels/NiagaraOverviewGraphViewModel.h | |
UEdGraph * GetGraph() |
Gets the graph which is used to edit and view the system | ViewModels/NiagaraOverviewGraphViewModel.h | |
TSharedRef< FNiagaraObjectSelection > GetNodeSelection() |
Gets the currently selected graph nodes. | ViewModels/NiagaraOverviewGraphViewModel.h | |
| ViewModels/NiagaraOverviewGraphViewModel.h | |||
const TSharedRef< FNiagaraSystemViewModel > GetSystemViewModel () |
ViewModels/NiagaraOverviewGraphViewModel.h | ||
const FNiagaraGraphViewSettings & GetViewSettings() |
ViewModels/NiagaraOverviewGraphViewModel.h | ||
void Initialize
(
TSharedRef< FNiagaraSystemViewModel > InSystemViewModel |
ViewModels/NiagaraOverviewGraphViewModel.h | ||
FOnNodesPasted & OnNodesPasted() |
Gets a multicast delegate which is called when nodes are pasted in the graph. | ViewModels/NiagaraOverviewGraphViewModel.h | |
void SetViewSettings
(
const FNiagaraGraphViewSettings& InOverviewGraphViewSettings |
ViewModels/NiagaraOverviewGraphViewModel.h | ||
void UpdateOverviewGraphNodes() |
ViewModels/NiagaraOverviewGraphViewModel.h |
Overridden from FEditorUndoClient
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void PostRedo
(
bool bSuccess |
ViewModels/NiagaraOverviewGraphViewModel.h | ||
virtual void PostUndo
(
bool bSuccess |
ViewModels/NiagaraOverviewGraphViewModel.h |