Add variable editing (#581)

This commit is contained in:
Pepe Rivera
2019-07-24 11:23:33 -07:00
committed by GitHub
parent a418777f02
commit 46f11c7c72
12 changed files with 519 additions and 6 deletions

View File

@@ -1,6 +1,7 @@
#pragma once
#include <memory>
#include <string>
#ifndef GRAPHINGAPI
#ifdef GRAPHING_ENGINE_IMPL
@@ -38,6 +39,14 @@ namespace Graphing
virtual bool IsEmptySet() const = 0;
};
struct IVariable
{
virtual ~IVariable() = default;
virtual int GetVariableID() const = 0;
virtual const std::wstring& GetVariableName() = 0;
};
struct IExpressible
{
virtual ~IExpressible() = default;

View File

@@ -16,6 +16,10 @@ namespace Graphing
virtual IGraphingOptions& GetOptions() = 0;
virtual std::vector<std::shared_ptr<IVariable>> GetVariables() = 0;
virtual void SetArgValue(std::wstring variableName, double value) = 0;
virtual std::shared_ptr< Renderer::IGraphRenderer > GetRenderer() const = 0;
virtual bool TryResetSelection() = 0;