15GX_CORE_NAMESPACE_BEGIN()
20class GxGuiGraphTime : public GxGuiBase
28 GX_RTTI_CLASS(GxGuiGraphTime, GxGuiBase)
33 static constexpr s32 MARGIN_TOP = 15;
35 static constexpr s32 MARGIN_BOTTOM = 40;
37 static constexpr s32 MARGIN_LEFT = 40;
39 static constexpr s32 MARGIN_RIGHT = 15;
41 static constexpr u32 PLOT_MAX_COUNT = 32;
50 GxGuiGraphTime(
const GxProperty& property,
GxTypedObject* pOwner,
const u32 index,
const u32 recordFrames = 240 );
53 GxGuiGraphTime(
const GxProperty& property,
GxTypedObject* pOwner,
const u32 plotDataCount,
const s32 minFrame,
const s32 maxFrame );
56 b32 initialize(
void )
override;
59 void cleanup(
void )
override;
63 GxGuiGraphTime(
void ){}
72 GX_FORCE_INLINE
void setLabelX(
GxString string ) { _label[0] = string; }
74 GX_FORCE_INLINE
void setLabelY(
GxString string ) { _label[1] = string; }
76 GX_FORCE_INLINE
void setRangeY(
const f32 min,
const f32 max ) { _min = min; _max = max; _labelMin[1].format(
"%.0f", _min); _labelMax[1].format(
"%.0f", _max); }
78 GX_FORCE_INLINE
void setRangeLabelY(
GxString min,
GxString max ) { _labelMin[1] = min; _labelMax[1] = max;}
81 constexpr void setSkipFrame(
const u32 skipFrame ) { _skipFrame = skipFrame; }
84 GX_FORCE_INLINE
void setTitle(
GxString title ) { _title = title; }
87 f32 getValue( u32 index = 0 );
90 GX_FORCE_INLINE
void setLineColor(
const GxColor& color , u32 index ) { _lineColor[index] = color; }
93 GX_FORCE_INLINE
void setLineFocus(
b32 isPlotFocus , u32 index ) { _isPlotFocus[index] = isPlotFocus; }
103 void update(
void )
override;
107 void onDraw(
void )
override;
124 f32* _pPlotData[PLOT_MAX_COUNT];
140 b32 _isPlotFocus[PLOT_MAX_COUNT];
141 GxColor _lineColor[PLOT_MAX_COUNT];
147GX_CORE_NAMESPACE_END()
#define GX_PROHIBIT_CLASS_BASE_REFERENCE(__CLASS__)
GxClassBaseReference継承の禁止宣言(new以外の生成禁止 + コピー禁止)
Definition GxBase.h:244
void GxTypedObject
その他
Definition GxDefine.h:213
static GX_FORCE_INLINE T getMax(const T value0, const T value1)
大きいほうを取得
Definition GxMath.h:174
プロパティクラス
Definition GxProperty.h:48
サイズ
Definition GxStruct.h:730
s32 _width
幅
Definition GxStruct.h:857
s32 _height
高さ
Definition GxStruct.h:858
文字列型クラス
Definition GxString.h:18
32bitブーリアン
Definition GxDefine.h:173