ARCS6 AR6-REV.24062600
読み取り中…
検索中…
一致する文字列を見つけられません
ARCS::CuiPlot クラス

CuiPlot(新型きゅいプロットV2) [詳解]

#include <ARCS6/lib/CuiPlot.hh>

公開メンバ関数

 CuiPlot (FrameGraphics &Frame, int Left, int Top, int Width, int Height)
 コンストラクタ
 
 CuiPlot (CuiPlot &&r)=delete
 ムーブコンストラクタ
 
 ~CuiPlot ()
 デストラクタ
 
void SetColors (FGcolors Axis, FGcolors Grid, FGcolors Text, FGcolors Back, FGcolors Cursor)
 グラフの各部の色を設定する関数
 
void SetRanges (double xmin, double xmax, double ymin, double ymax)
 グラフの範囲を設定する関数
 
void SetAxisLabels (const std::string &xlabel, const std::string &ylabel)
 軸ラベルを設定する関数
 
void SetGridLabelFormat (const std::string &xformat, const std::string &yformat)
 グリッドラベルの書式を設定する関数
 
void SetGridDivision (size_t xdiv, size_t ydiv)
 グリッドの分割数を設定する関数
 
void DrawAxis (void)
 グラフの軸を描画する関数
 
void ClearAxis (void)
 グラフの軸をクリアする関数
 
void DrawLegend (size_t i, const std::string &name, const FGcolors &color)
 凡例を描画する関数
 
template<size_t N>
void DrawLegends (const std::array< std::string, N > &names, const std::array< FGcolors, N > &colors)
 凡例を描画する関数(std::array版)
 
template<size_t N>
void DrawLegends (const std::array< std::string, N > &names, const std::array< FGcolors, N > &colors, size_t num)
 凡例を描画する関数(std::array, 個数指定版)
 
void DrawCursorX (const double x)
 x軸カーソルを描画する関数
 
void DrawText (const double x, const double y, const std::string &text)
 文字列を描画する関数
 
void DrawValue (const double x, const double y, const std::string &format, const double val)
 数値を描画する関数
 
void Plot (const double x, const double y, const CuiPlotTypes type, const uint32_t color)
 1点のデータをプロットする関数(バイナリ色データ版)
 
void Plot (const double x, const double y, const CuiPlotTypes type, const double r, const double g, const double b)
 1点のデータをプロットする関数(RGB輝度値版)
 
void Plot (const double x, const double y, const CuiPlotTypes type, const FGcolors color)
 1点のデータをプロットする関数(色の名前版)
 
void Plot (const double x1, const double y1, const double x2, const double y2, const CuiPlotTypes type, const uint32_t color)
 2点のデータをプロットする関数(バイナリ色データ版)
 
void Plot (const double x1, const double y1, const double x2, const double y2, const CuiPlotTypes type, const double r, const double g, const double b)
 2点のデータをプロットする関数(RGB輝度値版)
 
void Plot (const double x1, const double y1, const double x2, const double y2, const CuiPlotTypes type, const FGcolors color)
 2点のデータをプロットする関数(色の名前版)
 
template<size_t N>
void Plot (const std::array< double, N > &x, const std::array< double, N > &y, const CuiPlotTypes type, const uint32_t color)
 std::array配列データをプロットする関数(バイナリ色データ版)
 
template<size_t N>
void Plot (const std::array< double, N > &x, const std::array< double, N > &y, const CuiPlotTypes type, const double r, const double g, const double b)
 std::array配列データをプロットする関数(RGB輝度値版)
 
template<size_t N>
void Plot (const std::array< double, N > &x, const std::array< double, N > &y, const CuiPlotTypes type, const FGcolors color)
 std::array配列データをプロットする関数(色の名前版)
 
template<size_t N>
void Plot (const Matrix< 1, N > &x, const Matrix< 1, N > &y, const CuiPlotTypes type, const uint32_t color)
 Matrix縦ベクトルデータをプロットする関数(バイナリ色データ版)
 
template<size_t N>
void Plot (const Matrix< 1, N > &x, const Matrix< 1, N > &y, const CuiPlotTypes type, const double r, const double g, const double b)
 Matrix縦ベクトルデータをプロットする関数(RGB輝度値版)
 
template<size_t N>
void Plot (const Matrix< 1, N > &x, const Matrix< 1, N > &y, const CuiPlotTypes type, const FGcolors color)
 Matrix縦ベクトルデータをプロットする関数(色の名前版)
 
template<unsigned long N, bool M = false>
void TimeSeriesPlot (RingBuffer< double, N, M > &t, RingBuffer< double, N, M > &y, const CuiPlotTypes type, const uint32_t color)
 リングバッファの時系列データをプロットする関数(バイナリ色データ版)
 
template<unsigned long N, bool M = false>
void TimeSeriesPlot (RingBuffer< double, N, M > &t, RingBuffer< double, N, M > &y, const CuiPlotTypes type, const double r, const double g, const double b)
 リングバッファの時系列データをプロットする関数(RGB輝度値版)
 
template<unsigned long N, bool M = false>
void TimeSeriesPlot (RingBuffer< double, N, M > &t, RingBuffer< double, N, M > &y, const CuiPlotTypes type, const FGcolors color)
 リングバッファの時系列データをプロットする関数(色の名前版)
 
void Disp (void)
 画面に表示する関数
 
void StorePlaneInBuffer (void)
 現在のプロット平面の状態を背景バッファに保存する関数
 
void LoadPlaneFromBuffer (void)
 背景バッファからプロット平面の状態を読み込む関数
 
void Visible (bool visible)
 グラフを表示するかどうか
 

詳解

CuiPlot(新型きゅいプロットV2)

構築子と解体子

◆ CuiPlot() [1/2]

ARCS::CuiPlot::CuiPlot ( FrameGraphics & Frame,
int Left,
int Top,
int Width,
int Height )
inline

コンストラクタ

引数
[in]Frameフレームバッファへの参照
[in]Left左位置 [px]
[in]Top上位置 [px]
[in]Width幅 [px]
[in]Height高さ [px]

◆ CuiPlot() [2/2]

ARCS::CuiPlot::CuiPlot ( CuiPlot && r)
delete

ムーブコンストラクタ

引数
[in]r右辺値

関数詳解

◆ DrawCursorX()

void ARCS::CuiPlot::DrawCursorX ( const double x)
inline

x軸カーソルを描画する関数

引数
[in]xx座標

◆ DrawLegend()

void ARCS::CuiPlot::DrawLegend ( size_t i,
const std::string & name,
const FGcolors & color )
inline

凡例を描画する関数

引数
[in]i変数の番号(1始まり)
[in]name凡例の名前s
[in]color凡例の色

◆ DrawLegends() [1/2]

template<size_t N>
void ARCS::CuiPlot::DrawLegends ( const std::array< std::string, N > & names,
const std::array< FGcolors, N > & colors )
inline

凡例を描画する関数(std::array版)

引数
[in]names凡例の名前
[in]colors凡例の色

◆ DrawLegends() [2/2]

template<size_t N>
void ARCS::CuiPlot::DrawLegends ( const std::array< std::string, N > & names,
const std::array< FGcolors, N > & colors,
size_t num )
inline

凡例を描画する関数(std::array, 個数指定版)

引数
[in]names凡例の名前
[in]colors凡例の色
[in]num凡例の数

◆ DrawText()

void ARCS::CuiPlot::DrawText ( const double x,
const double y,
const std::string & text )
inline

文字列を描画する関数

引数
[in]xx座標
[in]yy座標
[in]text文字列

◆ DrawValue()

void ARCS::CuiPlot::DrawValue ( const double x,
const double y,
const std::string & format,
const double val )
inline

数値を描画する関数

引数
[in]xx座標
[in]yy座標
[in]format書式指定子(printfの書式と同一)
[in]val数値

◆ Plot() [1/12]

void ARCS::CuiPlot::Plot ( const double x,
const double y,
const CuiPlotTypes type,
const double r,
const double g,
const double b )
inline

1点のデータをプロットする関数(RGB輝度値版)

引数
[in]xx座標
[in]yy座標
[in]typeプロットタイプ
[in]r,g,b赤緑青色の輝度値

◆ Plot() [2/12]

void ARCS::CuiPlot::Plot ( const double x,
const double y,
const CuiPlotTypes type,
const FGcolors color )
inline

1点のデータをプロットする関数(色の名前版)

引数
[in]xx座標
[in]yy座標
[in]typeプロットタイプ
[in]color色の名前

◆ Plot() [3/12]

void ARCS::CuiPlot::Plot ( const double x,
const double y,
const CuiPlotTypes type,
const uint32_t color )
inline

1点のデータをプロットする関数(バイナリ色データ版)

引数
[in]xx座標
[in]yy座標
[in]typeプロットタイプ
[in]colorバイナリ色データ

◆ Plot() [4/12]

void ARCS::CuiPlot::Plot ( const double x1,
const double y1,
const double x2,
const double y2,
const CuiPlotTypes type,
const double r,
const double g,
const double b )
inline

2点のデータをプロットする関数(RGB輝度値版)

引数
[in]x1,x2x座標
[in]y1,y2y座標
[in]typeプロットタイプ
[in]r,g,b赤緑青色の輝度値

◆ Plot() [5/12]

void ARCS::CuiPlot::Plot ( const double x1,
const double y1,
const double x2,
const double y2,
const CuiPlotTypes type,
const FGcolors color )
inline

2点のデータをプロットする関数(色の名前版)

引数
[in]x1,x2x座標
[in]y1,y2y座標
[in]typeプロットタイプ
[in]color色の名前

◆ Plot() [6/12]

void ARCS::CuiPlot::Plot ( const double x1,
const double y1,
const double x2,
const double y2,
const CuiPlotTypes type,
const uint32_t color )
inline

2点のデータをプロットする関数(バイナリ色データ版)

引数
[in]x1,x2x座標
[in]y1,y2y座標
[in]typeプロットタイプ
[in]colorバイナリ色データ

◆ Plot() [7/12]

template<size_t N>
void ARCS::CuiPlot::Plot ( const Matrix< 1, N > & x,
const Matrix< 1, N > & y,
const CuiPlotTypes type,
const double r,
const double g,
const double b )
inline

Matrix縦ベクトルデータをプロットする関数(RGB輝度値版)

テンプレート引数
Nベクトルの長さ
引数
[in]xx座標Matrix縦ベクトル
[in]yy座標Matrix縦ベクトル
[in]typeプロットタイプ
[in]r,g,b赤緑青色の輝度値

◆ Plot() [8/12]

template<size_t N>
void ARCS::CuiPlot::Plot ( const Matrix< 1, N > & x,
const Matrix< 1, N > & y,
const CuiPlotTypes type,
const FGcolors color )
inline

Matrix縦ベクトルデータをプロットする関数(色の名前版)

テンプレート引数
Nベクトルの長さ
引数
[in]xx座標Matrix縦ベクトル
[in]yy座標Matrix縦ベクトル
[in]typeプロットタイプ
[in]color色の名前

◆ Plot() [9/12]

template<size_t N>
void ARCS::CuiPlot::Plot ( const Matrix< 1, N > & x,
const Matrix< 1, N > & y,
const CuiPlotTypes type,
const uint32_t color )
inline

Matrix縦ベクトルデータをプロットする関数(バイナリ色データ版)

テンプレート引数
Nベクトルの長さ
引数
[in]xx座標Matrix縦ベクトル
[in]yy座標Matrix縦ベクトル
[in]typeプロットタイプ
[in]colorバイナリ色データ

◆ Plot() [10/12]

template<size_t N>
void ARCS::CuiPlot::Plot ( const std::array< double, N > & x,
const std::array< double, N > & y,
const CuiPlotTypes type,
const double r,
const double g,
const double b )
inline

std::array配列データをプロットする関数(RGB輝度値版)

テンプレート引数
N配列の長さ
引数
[in]xx座標配列
[in]yy座標配列
[in]typeプロットタイプ
[in]r,g,b赤緑青色の輝度値

◆ Plot() [11/12]

template<size_t N>
void ARCS::CuiPlot::Plot ( const std::array< double, N > & x,
const std::array< double, N > & y,
const CuiPlotTypes type,
const FGcolors color )
inline

std::array配列データをプロットする関数(色の名前版)

テンプレート引数
N配列の長さ
引数
[in]xx座標配列
[in]yy座標配列
[in]typeプロットタイプ
[in]color色の名前

◆ Plot() [12/12]

template<size_t N>
void ARCS::CuiPlot::Plot ( const std::array< double, N > & x,
const std::array< double, N > & y,
const CuiPlotTypes type,
const uint32_t color )
inline

std::array配列データをプロットする関数(バイナリ色データ版)

テンプレート引数
N配列の長さ
引数
[in]xx座標配列
[in]yy座標配列
[in]typeプロットタイプ
[in]colorバイナリ色データ

◆ SetAxisLabels()

void ARCS::CuiPlot::SetAxisLabels ( const std::string & xlabel,
const std::string & ylabel )
inline

軸ラベルを設定する関数

引数
[in]xlabelX軸ラベル
[in]ylabelY軸ラベル

◆ SetColors()

void ARCS::CuiPlot::SetColors ( FGcolors Axis,
FGcolors Grid,
FGcolors Text,
FGcolors Back,
FGcolors Cursor )
inline

グラフの各部の色を設定する関数

引数
[in]Axis主軸の色
[in]Gridグリッドの色
[in]Text文字の色
[in]Back背景の色
[in]Cursorカーソルの色

◆ SetGridDivision()

void ARCS::CuiPlot::SetGridDivision ( size_t xdiv,
size_t ydiv )
inline

グリッドの分割数を設定する関数

引数
[in]xdivX軸グリッドの分割数
[in]ydivY軸グリッドの分割数

◆ SetGridLabelFormat()

void ARCS::CuiPlot::SetGridLabelFormat ( const std::string & xformat,
const std::string & yformat )
inline

グリッドラベルの書式を設定する関数

引数
[in]xformatX軸書式指定子(prtinf関数の書式指定子と同じ)
[in]yformatX軸書式指定子(prtinf関数の書式指定子と同じ)

◆ SetRanges()

void ARCS::CuiPlot::SetRanges ( double xmin,
double xmax,
double ymin,
double ymax )
inline

グラフの範囲を設定する関数

引数
[in]xminX軸最小値
[in]xmaxX軸最大値
[in]yminY軸最小値
[in]ymaxY軸最大値

◆ TimeSeriesPlot() [1/3]

template<unsigned long N, bool M = false>
void ARCS::CuiPlot::TimeSeriesPlot ( RingBuffer< double, N, M > & t,
RingBuffer< double, N, M > & y,
const CuiPlotTypes type,
const double r,
const double g,
const double b )
inline

リングバッファの時系列データをプロットする関数(RGB輝度値版)

テンプレート引数
Nバッファサイズ
MMutexロックを使うかどうか(デフォルトはfalse)
引数
[in]t時刻ベクトルが入ったリングバッファへの参照
[in]yyデータベクトルが入ったリングバッファへの参照
[in]r,g,b赤緑青色の輝度値

◆ TimeSeriesPlot() [2/3]

template<unsigned long N, bool M = false>
void ARCS::CuiPlot::TimeSeriesPlot ( RingBuffer< double, N, M > & t,
RingBuffer< double, N, M > & y,
const CuiPlotTypes type,
const FGcolors color )
inline

リングバッファの時系列データをプロットする関数(色の名前版)

テンプレート引数
Nバッファサイズ
MMutexロックを使うかどうか(デフォルトはfalse)
引数
[in]t時刻ベクトルが入ったリングバッファへの参照
[in]yyデータベクトルが入ったリングバッファへの参照
[in]color色の名前

◆ TimeSeriesPlot() [3/3]

template<unsigned long N, bool M = false>
void ARCS::CuiPlot::TimeSeriesPlot ( RingBuffer< double, N, M > & t,
RingBuffer< double, N, M > & y,
const CuiPlotTypes type,
const uint32_t color )
inline

リングバッファの時系列データをプロットする関数(バイナリ色データ版)

テンプレート引数
Nバッファサイズ
MMutexロックを使うかどうか(デフォルトはfalse)
引数
[in]t時刻ベクトルが入ったリングバッファへの参照
[in]yyデータベクトルが入ったリングバッファへの参照

◆ Visible()

void ARCS::CuiPlot::Visible ( bool visible)
inline

グラフを表示するかどうか

引数
[in]visible可視化フラグ

このクラス詳解は次のファイルから抽出されました: