🛰️航天仿真算法库 SpaceAST 0.0.1
载入中...
搜索中...
未找到
QwtBackend.hpp
浏览该文件的文档.
1
20
21#pragma once
22
23#include "AstGlobal.h"
24A_SUPPRESS_WARNINGS_BEGIN
25#include <matplot/backend/backend_interface.h>
26A_SUPPRESS_WARNINGS_END
27#include <memory>
28#include <string>
29
30class QwtFigure;
31
32AST_NAMESPACE_BEGIN
33
34class UiFigure;
35
36class AST_CHART_API QwtBackend : public matplot::backend::backend_interface {
37public:
38 QwtBackend();
39 virtual ~QwtBackend() override;
40
41 bool consumes_gnuplot_commands() override;
42 bool is_interactive() override;
43
44 const std::string& output() override;
45 const std::string& output_format() override;
46 bool output(const std::string& filename) override;
47 bool output(const std::string& filename,
48 const std::string& file_format) override;
49
50 unsigned int width() override;
51 unsigned int height() override;
52 void width(unsigned int new_width) override;
53 void height(unsigned int new_height) override;
54
55 unsigned int position_x() override;
56 unsigned int position_y() override;
57 void position_x(unsigned int new_position_x) override;
58 void position_y(unsigned int new_position_y) override;
59
60 void window_title(const std::string& title) override;
61 std::string window_title() override;
62
63 bool new_frame() override;
64 bool render_data() override;
65 void show(matplot::figure_type* f) override;
66 bool should_close() override;
67 bool supports_fonts() override;
68
69 void draw(matplot::figure_type* f) override;
70private:
71 struct Impl;
72 std::unique_ptr<Impl> impl_;
73};
74
75AST_CHART_API void aUseQwtBackend();
76
77AST_NAMESPACE_END
定义 QwtBackend.hpp:36
定义 QwtBackend.cpp:60