GaitGeneration by Graph Search
読み取り中…
検索中…
一致する文字列を見つけられません
dxlib_gui_camera.h
[詳解]
1
3
4// Copyright(c) 2023-2025 Design Engineering Laboratory, Saitama University
5// Released under the MIT license
6// https://opensource.org/licenses/mit-license.php
7
8#ifndef DESIGNLAB_DXLIB_GUI_CAMERA_H_
9#define DESIGNLAB_DXLIB_GUI_CAMERA_H_
10
11#include <map>
12#include <memory>
13#include <string>
14#include <vector>
15
16#include "abstract_dxlib_gui.h"
17#include "dxlib_camera.h"
18#include "math_vector3.h"
20#include "simple_button.h"
21
22
23namespace designlab
24{
25
28class DxlibGuiCamera final :
29 public AbstractDxlibGui,
30 public IDxlibNodeSetter
31{
32public:
33 DxlibGuiCamera() = delete;
34
41 int window_x, int window_y, const std::shared_ptr<DxlibCamera> camera);
42
43 void SetNode(const RobotStateNode& node) override;
44
45 void Update() override;
46
47 void Draw() const override;
48
49private:
50 static constexpr int kWidth{ 245 };
51 static constexpr int kHeight{ 410 };
52
54 void DrawString() const;
55
56 bool IsInWindow() const;
57
58 const int window_x_;
59 const int window_y_;
60
61 const std::shared_ptr<DxlibCamera> camera_;
62};
63
64} // namespace designlab
65
66
67#endif // DESIGNLAB_DXLIB_GUI_CAMERA_H_
Dxlibを使ったGUIの抽象クラス.
カメラの操作・管理を行うGUIの処理・描画を行うクラス.
void Update() override
GUIの更新,毎フレーム実行すること.
void SetNode(const RobotStateNode &node) override
ノードをセットする.
void Draw() const override
GUIの描画.
DxlibGuiCamera()=delete
デフォルトコンストラクタは生成できない.
DxLibのGuiやRendererでノードのセットを行うためのインターフェース.
グラフ構造のためのノード(頂点).旧名 LNODE