GaitGeneration by Graph Search
読み取り中…
検索中…
一致する文字列を見つけられません
graphic_const.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_GRAPHIC_CONST_H_
9#define DESIGNLAB_GRAPHIC_CONST_H_
10
11#include <string>
12
13#include "cassert_define.h"
14
15
16namespace designlab
17{
18
21class GraphicConst final
22{
23public:
25 GraphicConst() = delete;
26 GraphicConst(const GraphicConst& other) = delete;
27 GraphicConst(GraphicConst&& other) = delete;
28 GraphicConst& operator=(const GraphicConst& other) = delete;
29
30 static const char kWindowName[];
31
33 static const int kColorBit;
34
35
37 static const int kBackColorRed;
38
40 static const int kBackColorGreen;
41
43 static const int kBackColorBlue;
44
45 static const float kCameraToTargetMax;
46 static const float kCameraToTargetMin;
47};
48
49} // namespace designlab
50
51
52#endif // DESIGNLAB_GRAPHIC_CONST_H_
画像表示処理用の定数クラス.
GraphicConst & operator=(const GraphicConst &other)=delete
static const float kCameraToTargetMax
カメラと注視目標の最大距離.
GraphicConst(GraphicConst &&other)=delete
static const float kCameraToTargetMin
カメラと注視目標の最小距離.
static const int kBackColorBlue
ウィンドウ背景色. 青色成分.0~255の範囲で指定.
static const int kBackColorGreen
ウィンドウ背景色. 緑色成分.0~255の範囲で指定.
static const char kWindowName[]
ウィンドウの名前.
static const int kBackColorRed
ウィンドウ背景色. 赤色成分.0~255の範囲で指定.
GraphicConst(const GraphicConst &other)=delete
GraphicConst()=delete
コンストラクタを削除して,実体を生成できないようにする.
static const int kColorBit
色を表現するビット数.通常32で良いが軽くするなら16にする.