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