Open 3D Engine GraphCanvas Gem API Reference  24.09
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
GraphCanvas::GraphCanvasGraphicsView Class Reference

#include <GraphCanvasGraphicsView.h>

Inherits QGraphicsView, ViewRequestBus::Handler, GraphCanvas::SceneNotificationBus::Handler, AZ::TickBus::Handler, AssetEditorSettingsNotificationBus::Handler, and AzToolsFramework::EditorEvents::Bus::Handler.

Public Member Functions

 AZ_CLASS_ALLOCATOR (GraphCanvasGraphicsView, AZ::SystemAllocator)
 
 GraphCanvasGraphicsView (QWidget *parent=nullptr, bool registerShortcuts=true)
 
const ViewId & GetViewId () const
 
void SetEditorId (const EditorId &editorId) override
 
EditorId GetEditorId () const override
 
void SetScene (const AZ::EntityId &sceneId) override
 
AZ::EntityId GetScene () const override
 
void ClearScene () override
 
AZ::Vector2 GetViewSceneCenter () const override
 
AZ::Vector2 MapToGlobal (const AZ::Vector2 &scenePoint) override
 
AZ::Vector2 MapToScene (const AZ::Vector2 &view) override
 
AZ::Vector2 MapFromScene (const AZ::Vector2 &scene) override
 
void SetViewParams (const ViewParams &viewParams) override
 
void DisplayArea (const QRectF &viewArea) override
 
void CenterOnArea (const QRectF &viewArea) override
 
void CenterOn (const QPointF &posInSceneCoordinates) override
 
void CenterOnStartOfChain () override
 
void CenterOnEndOfChain () override
 
void CenterOnSelection () override
 
QRectF GetCompleteArea () override
 
void WheelEvent (QWheelEvent *ev) override
 
QRectF GetViewableAreaInSceneCoordinates () override
 
GraphCanvasGraphicsViewAsGraphicsView () override
 
QImage * CreateImageOfGraph () override
 
QImage * CreateImageOfGraphArea (QRectF area) override
 
qreal GetZoomLevel () const override
 
void ScreenshotSelection () override
 
void EnableSelection () override
 
void DisableSelection () override
 
void ShowEntireGraph () override
 
void ZoomIn () override
 
void ZoomOut () override
 
void PanSceneBy (QPointF repositioning, AZStd::chrono::milliseconds duration) override
 
void PanSceneTo (QPointF scenePoint, AZStd::chrono::milliseconds duration) override
 
void RefreshView () override
 
void HideToastNotification (const AzToolsFramework::ToastId &toastId) override
 
AzToolsFramework::ToastId ShowToastNotification (const AzQtComponents::ToastConfiguration &toastConfiguration) override
 
AzToolsFramework::ToastId ShowToastAtCursor (const AzQtComponents::ToastConfiguration &toastConfiguration) override
 
AzToolsFramework::ToastId ShowToastAtPoint (const QPoint &screenPosition, const QPointF &anchorPoint, const AzQtComponents::ToastConfiguration &toastConfiguration) override
 
bool IsShowing () const override
 
void OnTick (float tick, AZ::ScriptTimePoint timePoint) override
 
QRectF GetSelectedArea ()
 
void SelectAll ()
 
void SelectAllRelative (ConnectionType input)
 
void SelectConnectedNodes ()
 
void ClearSelection ()
 
void OnStylesChanged () override
 
void OnNodeIsBeingEdited (bool isEditing) override
 
void keyReleaseEvent (QKeyEvent *event) override
 
void keyPressEvent (QKeyEvent *event) override
 
void contextMenuEvent (QContextMenuEvent *event) override
 
void mousePressEvent (QMouseEvent *event) override
 
void mouseMoveEvent (QMouseEvent *event) override
 
void mouseReleaseEvent (QMouseEvent *event) override
 
void wheelEvent (QWheelEvent *event) override
 
void focusOutEvent (QFocusEvent *event) override
 
void resizeEvent (QResizeEvent *event) override
 
void moveEvent (QMoveEvent *event) override
 
void scrollContentsBy (int dx, int dy) override
 
void showEvent (QShowEvent *showEvent) override
 
void hideEvent (QHideEvent *hideEvent) override
 
void OnSettingsChanged () override
 
void OnEscape () override
 
bool GetIsEditing ()
 

Public Attributes

const int IS_EVENT_HANDLER_ONLY = 100
 

Protected Member Functions

void CreateBookmark (int bookmarkShortcut)
 
void JumpToBookmark (int bookmarkShortcut)
 

Detailed Description

GraphCanvasGraphicsView CanvasWidget that should be used to display GraphCanvas scenes. Will provide a lot of basic UX functionality.


The documentation for this class was generated from the following file: