48 virtual bool Load(
const std::string& path) = 0;
55 virtual bool Save(
const std::string& path) = 0;
ComponentTypeID GetComponentTypeID_Static()
Polymorphic interface for all graph editor renderers.
virtual std::string GetCurrentPath() const =0
Returns the last path successfully loaded/saved, or empty string.
virtual bool Load(const std::string &path)=0
Loads a graph from a file on disk.
virtual void RestoreCanvasState()
Restore previously saved canvas viewport state Called when tab is reactivated.
virtual bool IsDirty() const =0
Returns true when the graph has unsaved changes.
virtual void SetCanvasStateJSON(const std::string &json)
Restore canvas state from JSON string.
virtual void SaveCanvasState()
Save the current canvas viewport state (pan, zoom, etc.) Called when tab is deactivated.
virtual std::string GetCanvasStateJSON() const
Get canvas state as JSON string for persistence.
virtual void Render()=0
Renders the graph canvas into the current ImGui child window.
virtual std::string GetGraphType() const =0
Returns the graph type string, e.g.
virtual ~IGraphRenderer()
virtual bool Save(const std::string &path)=0
Saves the current graph state to disk.
< Provides AssetID and INVALID_ASSET_ID