30 bool Load(
const std::string& path)
override;
31 bool Save(
const std::string& path)
override;
57 std::string
ResolvePath(
const std::string& path)
const;
Abstract interface shared by all graph-renderer adapters.
ImNodes-based graph editor for ATS Visual Script graphs (Phase 5).
Polymorphic interface for all graph editor renderers.
ImNodes graph editor for ATS Visual Script v4 graphs.
Adapts the existing VisualScriptEditorPanel to the IGraphRenderer interface.
void Render() override
Renders the graph canvas into the current ImGui child window.
std::string GetCanvasStateJSON() const override
Get canvas state as JSON string for persistence.
VisualScriptEditorPanel & GetPanel()
Direct access to the wrapped panel (for advanced operations).
bool Load(const std::string &path) override
Loads a graph from a file on disk.
std::string GetCurrentPath() const override
Returns the last path successfully loaded/saved, or empty string.
void RestoreCanvasState() override
Restore previously saved canvas viewport state Called when tab is reactivated.
struct Olympe::VisualScriptRenderer::CanvasState m_savedCanvasState
bool Save(const std::string &path) override
Saves the current graph state to disk.
void SaveCanvasState() override
Save the current canvas viewport state (pan, zoom, etc.) Called when tab is deactivated.
std::string ResolvePath(const std::string &path) const
bool IsDirty() const override
Returns true when the graph has unsaved changes.
std::string GetGraphType() const override
Returns the graph type string, e.g.
void SetCanvasStateJSON(const std::string &json) override
Restore canvas state from JSON string.
VisualScriptEditorPanel m_panel
< Provides AssetID and INVALID_ASSET_ID