Clang-format most of the sources (#1467)
This commit is contained in:
committed by
GitHub
parent
f7d0118064
commit
f30e9494ce
@@ -54,7 +54,7 @@ namespace Graphing
|
||||
{
|
||||
virtual ~IExpressible() = default;
|
||||
|
||||
virtual std::shared_ptr< IExpression > GetExpression() const = 0;
|
||||
virtual std::shared_ptr<IExpression> GetExpression() const = 0;
|
||||
};
|
||||
|
||||
class Color
|
||||
|
@@ -7,8 +7,8 @@
|
||||
|
||||
namespace Graphing
|
||||
{
|
||||
struct IBitmap
|
||||
{
|
||||
virtual const std::vector<BYTE>& GetData() const = 0;
|
||||
};
|
||||
struct IBitmap
|
||||
{
|
||||
virtual const std::vector<BYTE>& GetData() const = 0;
|
||||
};
|
||||
}
|
||||
|
@@ -30,6 +30,6 @@ namespace Graphing
|
||||
|
||||
virtual bool TryResetSelection() = 0;
|
||||
|
||||
virtual std::shared_ptr< Graphing::Analyzer::IGraphAnalyzer > GetAnalyzer() const = 0;
|
||||
virtual std::shared_ptr<Graphing::Analyzer::IGraphAnalyzer> GetAnalyzer() const = 0;
|
||||
};
|
||||
}
|
||||
|
@@ -11,14 +11,14 @@
|
||||
|
||||
namespace Graphing::Analyzer
|
||||
{
|
||||
typedef unsigned int NativeAnalysisType; // PerformAnalysisType
|
||||
typedef unsigned int NativeAnalysisType; // PerformAnalysisType
|
||||
|
||||
struct IGraphAnalyzer : public NonCopyable, public NonMoveable
|
||||
{
|
||||
struct IGraphAnalyzer : public NonCopyable, public NonMoveable
|
||||
{
|
||||
virtual ~IGraphAnalyzer() = default;
|
||||
virtual bool CanFunctionAnalysisBePerformed(bool& variableIsNotX) = 0;
|
||||
virtual HRESULT PerformFunctionAnalysis(NativeAnalysisType analysisType) = 0;
|
||||
virtual HRESULT GetAnalysisTypeCaption(const AnalysisType type, std::wstring& captionOut) const = 0;
|
||||
virtual HRESULT GetMessage(const GraphAnalyzerMessage msg, std::wstring& msgOut) const = 0;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
@@ -10,29 +10,40 @@ struct ID2D1RenderTarget;
|
||||
|
||||
namespace Graphing
|
||||
{
|
||||
struct IBitmap;
|
||||
struct IBitmap;
|
||||
}
|
||||
|
||||
namespace Graphing::Renderer
|
||||
{
|
||||
struct IGraphRenderer : public NonCopyable, public NonMoveable
|
||||
{
|
||||
virtual ~IGraphRenderer() = default;
|
||||
struct IGraphRenderer : public NonCopyable, public NonMoveable
|
||||
{
|
||||
virtual ~IGraphRenderer() = default;
|
||||
|
||||
virtual HRESULT SetGraphSize(unsigned int width, unsigned int height) = 0;
|
||||
virtual HRESULT SetDpi(float dpiX, float dpiY) = 0;
|
||||
virtual HRESULT SetGraphSize(unsigned int width, unsigned int height) = 0;
|
||||
virtual HRESULT SetDpi(float dpiX, float dpiY) = 0;
|
||||
|
||||
virtual HRESULT DrawD2D1(ID2D1Factory* pDirect2dFactory, ID2D1RenderTarget* pRenderTarget, bool& hasSomeMissingDataOut) = 0;
|
||||
virtual HRESULT GetClosePointData(double inScreenPointX, double inScreenPointY, double precision, int& formulaIdOut, float& xScreenPointOut, float& yScreenPointOut, double& xValueOut, double& yValueOut, double& rhoValueOut, double& thetaValueOut, double& tValueOut) = 0;
|
||||
virtual HRESULT DrawD2D1(ID2D1Factory* pDirect2dFactory, ID2D1RenderTarget* pRenderTarget, bool& hasSomeMissingDataOut) = 0;
|
||||
virtual HRESULT GetClosePointData(
|
||||
double inScreenPointX,
|
||||
double inScreenPointY,
|
||||
double precision,
|
||||
int& formulaIdOut,
|
||||
float& xScreenPointOut,
|
||||
float& yScreenPointOut,
|
||||
double& xValueOut,
|
||||
double& yValueOut,
|
||||
double& rhoValueOut,
|
||||
double& thetaValueOut,
|
||||
double& tValueOut) = 0;
|
||||
|
||||
virtual HRESULT ScaleRange(double centerX, double centerY, double scale) = 0;
|
||||
virtual HRESULT ChangeRange(ChangeRangeAction action) = 0;
|
||||
virtual HRESULT MoveRangeByRatio(double ratioX, double ratioY) = 0;
|
||||
virtual HRESULT ResetRange() = 0;
|
||||
virtual HRESULT GetDisplayRanges(double& xMin, double& xMax, double& yMin, double& yMax) = 0;
|
||||
virtual HRESULT SetDisplayRanges(double xMin, double xMax, double yMin, double yMax) = 0;
|
||||
virtual HRESULT PrepareGraph() = 0;
|
||||
virtual HRESULT ScaleRange(double centerX, double centerY, double scale) = 0;
|
||||
virtual HRESULT ChangeRange(ChangeRangeAction action) = 0;
|
||||
virtual HRESULT MoveRangeByRatio(double ratioX, double ratioY) = 0;
|
||||
virtual HRESULT ResetRange() = 0;
|
||||
virtual HRESULT GetDisplayRanges(double& xMin, double& xMax, double& yMin, double& yMax) = 0;
|
||||
virtual HRESULT SetDisplayRanges(double xMin, double xMax, double yMin, double yMax) = 0;
|
||||
virtual HRESULT PrepareGraph() = 0;
|
||||
|
||||
virtual HRESULT GetBitmap(std::shared_ptr<Graphing::IBitmap>& bitmapOut, bool& hasSomeMissingDataOut) = 0;
|
||||
};
|
||||
virtual HRESULT GetBitmap(std::shared_ptr<Graphing::IBitmap>& bitmapOut, bool& hasSomeMissingDataOut) = 0;
|
||||
};
|
||||
}
|
||||
|
@@ -10,24 +10,24 @@
|
||||
|
||||
namespace Graphing
|
||||
{
|
||||
struct IGraphFunctionAnalysisData
|
||||
{
|
||||
std::wstring Domain;
|
||||
std::wstring Range;
|
||||
int Parity;
|
||||
int PeriodicityDirection;
|
||||
std::wstring PeriodicityExpression;
|
||||
std::wstring Zeros;
|
||||
std::wstring YIntercept;
|
||||
std::vector<std::wstring> Minima;
|
||||
std::vector<std::wstring> Maxima;
|
||||
std::vector<std::wstring> InflectionPoints;
|
||||
std::vector<std::wstring> VerticalAsymptotes;
|
||||
std::vector<std::wstring> HorizontalAsymptotes;
|
||||
std::vector<std::wstring> ObliqueAsymptotes;
|
||||
std::map<std::wstring, int> MonotoneIntervals;
|
||||
int TooComplexFeatures; // to-do: refactor to remove bitwise flag
|
||||
};
|
||||
struct IGraphFunctionAnalysisData
|
||||
{
|
||||
std::wstring Domain;
|
||||
std::wstring Range;
|
||||
int Parity;
|
||||
int PeriodicityDirection;
|
||||
std::wstring PeriodicityExpression;
|
||||
std::wstring Zeros;
|
||||
std::wstring YIntercept;
|
||||
std::vector<std::wstring> Minima;
|
||||
std::vector<std::wstring> Maxima;
|
||||
std::vector<std::wstring> InflectionPoints;
|
||||
std::vector<std::wstring> VerticalAsymptotes;
|
||||
std::vector<std::wstring> HorizontalAsymptotes;
|
||||
std::vector<std::wstring> ObliqueAsymptotes;
|
||||
std::map<std::wstring, int> MonotoneIntervals;
|
||||
int TooComplexFeatures; // to-do: refactor to remove bitwise flag
|
||||
};
|
||||
|
||||
struct IParsingOptions : public NonCopyable, public NonMoveable
|
||||
{
|
||||
@@ -73,6 +73,6 @@ namespace Graphing
|
||||
|
||||
virtual std::wstring Serialize(const IExpression* expression) = 0;
|
||||
|
||||
virtual Graphing::IGraphFunctionAnalysisData Analyze(const Graphing::Analyzer::IGraphAnalyzer* analyzer) = 0;
|
||||
virtual Graphing::IGraphFunctionAnalysisData Analyze(const Graphing::Analyzer::IGraphAnalyzer* analyzer) = 0;
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user