Advanced Robot Control System  5.1-REV.51SF170515
ARCS::FrameGraphics クラス

#include <FrameGraphics.hh>

公開型

enum  FGcolors {
  RED, GREEN, BLUE, CYAN,
  MAGENTA, YELLOW, ORANGE, WHITE,
  GRAY75, GRAY50, GRAY25, BLACK
}
 
enum  FGalign { ALIGN_LEFT, ALIGN_CENTER, ALIGN_RIGHT }
 

公開メンバ関数

 FrameGraphics (const char *device)
 
 ~FrameGraphics (void)
 
void ShowParam (void)
 
void DrawPoint (int x, int y, FGcolors color)
 
void DrawPoint (int x, int y, double r, double g, double b)
 
void DrawLine (int x1, int y1, int x2, int y2, FGcolors color)
 
void DrawLine (int x1, int y1, int x2, int y2, double r, double g, double b)
 
void DrawRect (int x, int y, int w, int h, FGcolors color)
 
void DrawRect (int x, int y, int w, int h, double r, double g, double b)
 
void DrawRectFill (int x, int y, int w, int h, FGcolors color)
 
void DrawRectFill (int x, int y, int w, int h, double r, double g, double b)
 
void DrawCircle (int cx, int cy, int radius, unsigned int N, FGcolors color)
 
void DrawCircle (int cx, int cy, int radius, unsigned int N, double r, double g, double b)
 
void ClearScreen (void)
 
void ClearRect (int x, int y, int w, int h)
 
int GetWidth (void) const
 
int GetHeight (void) const
 
int GetDepth (void) const
 
void PrintValue (int x, int y, FGalign align, std::string format, double val)
 
void PrintText (int x, int y, FGalign align, std::string text)
 
void WriteFont (int x, int y, unsigned int ascii)
 
void PrepareFontData (FGcolors fore_color, FGcolors back_color)
 
void PrintAllFontData ()
 

非公開メンバ関数

 FrameGraphics (const FrameGraphics &)
 
const FrameGraphicsoperator= (const FrameGraphics &)
 

静的非公開メンバ関数

static int16_t RGBcolorToData16 (double Red, double Green, double Blue)
 
static int16_t DoubleToIntensity16 (double u)
 
static int16_t DoubleToRedIntensity16 (double u)
 
static int16_t DoubleToGreenIntensity16 (double u)
 
static int16_t DoubleToBlueIntensity16 (double u)
 
static int32_t RGBcolorToData32 (double Red, double Green, double Blue)
 
static int32_t DoubleToIntensity32 (double u)
 
static int32_t DoubleToRedIntensity32 (double u)
 
static int32_t DoubleToGreenIntensity32 (double u)
 
static int32_t DoubleToBlueIntensity32 (double u)
 

非公開変数類

int FBfd
 
int16_t * FBptr16
 
int32_t * FBptr32
 
struct fb_fix_screeninfo finfo
 
struct fb_var_screeninfo vinfo
 
int width
 
int height
 
int depth
 
long size
 
long length
 
int xofst
 
int yofst
 
int xlen
 
int bppx
 
int16_t FontPrepared16 [FONT_NUM][FONT_HEIGHT][FONT_WIDTH]
 
int32_t FontPrepared32 [FONT_NUM][FONT_HEIGHT][FONT_WIDTH]
 
bool IsFontDataLocked
 

静的非公開変数類

static const unsigned int NUM_COLOR_SET = 12
 
static const int16_t ColorSet16 [NUM_COLOR_SET]
 
static const int32_t ColorSet32 [NUM_COLOR_SET]
 
static const unsigned int FONT_NUM = 96
 
static const unsigned int FONT_WIDTH = 5
 
static const unsigned int FONT_HEIGHT = 9
 
static const unsigned int FONT_FST_ASCII = 32
 
static const unsigned int FONT_END_ASCII = 126
 
static const int FONT_DATA [FONT_NUM][FONT_HEIGHT][FONT_WIDTH]
 
static const unsigned int TEXT_INTERVAL = 1
 
static const unsigned int TEXT_MAXLEN = 256
 

列挙型メンバ詳解

§ FGalign

列挙値
ALIGN_LEFT 
ALIGN_CENTER 
ALIGN_RIGHT 

§ FGcolors

列挙値
RED 
GREEN 
BLUE 
CYAN 
MAGENTA 
YELLOW 
ORANGE 
WHITE 
GRAY75 
GRAY50 
GRAY25 
BLACK 

構築子と解体子

§ FrameGraphics() [1/2]

FrameGraphics::FrameGraphics ( const char *  device)
explicit
呼び出し関係図:

§ ~FrameGraphics()

FrameGraphics::~FrameGraphics ( void  )

§ FrameGraphics() [2/2]

ARCS::FrameGraphics::FrameGraphics ( const FrameGraphics )
private

関数詳解

§ ClearRect()

void FrameGraphics::ClearRect ( int  x,
int  y,
int  w,
int  h 
)
呼び出し関係図:

§ ClearScreen()

void FrameGraphics::ClearScreen ( void  )

§ DoubleToBlueIntensity16()

int16_t FrameGraphics::DoubleToBlueIntensity16 ( double  u)
staticprivate
被呼び出し関係図:

§ DoubleToBlueIntensity32()

int32_t FrameGraphics::DoubleToBlueIntensity32 ( double  u)
staticprivate
被呼び出し関係図:

§ DoubleToGreenIntensity16()

int16_t FrameGraphics::DoubleToGreenIntensity16 ( double  u)
staticprivate
被呼び出し関係図:

§ DoubleToGreenIntensity32()

int32_t FrameGraphics::DoubleToGreenIntensity32 ( double  u)
staticprivate
被呼び出し関係図:

§ DoubleToIntensity16()

int16_t FrameGraphics::DoubleToIntensity16 ( double  u)
staticprivate

§ DoubleToIntensity32()

int32_t FrameGraphics::DoubleToIntensity32 ( double  u)
staticprivate

§ DoubleToRedIntensity16()

int16_t FrameGraphics::DoubleToRedIntensity16 ( double  u)
staticprivate
被呼び出し関係図:

§ DoubleToRedIntensity32()

int32_t FrameGraphics::DoubleToRedIntensity32 ( double  u)
staticprivate
被呼び出し関係図:

§ DrawCircle() [1/2]

void FrameGraphics::DrawCircle ( int  cx,
int  cy,
int  radius,
unsigned int  N,
FGcolors  color 
)
呼び出し関係図:

§ DrawCircle() [2/2]

void FrameGraphics::DrawCircle ( int  cx,
int  cy,
int  radius,
unsigned int  N,
double  r,
double  g,
double  b 
)
呼び出し関係図:

§ DrawLine() [1/2]

void FrameGraphics::DrawLine ( int  x1,
int  y1,
int  x2,
int  y2,
FGcolors  color 
)
呼び出し関係図:
被呼び出し関係図:

§ DrawLine() [2/2]

void FrameGraphics::DrawLine ( int  x1,
int  y1,
int  x2,
int  y2,
double  r,
double  g,
double  b 
)
呼び出し関係図:

§ DrawPoint() [1/2]

void FrameGraphics::DrawPoint ( int  x,
int  y,
FGcolors  color 
)
被呼び出し関係図:

§ DrawPoint() [2/2]

void FrameGraphics::DrawPoint ( int  x,
int  y,
double  r,
double  g,
double  b 
)
呼び出し関係図:

§ DrawRect() [1/2]

void FrameGraphics::DrawRect ( int  x,
int  y,
int  w,
int  h,
FGcolors  color 
)
呼び出し関係図:
被呼び出し関係図:

§ DrawRect() [2/2]

void FrameGraphics::DrawRect ( int  x,
int  y,
int  w,
int  h,
double  r,
double  g,
double  b 
)
呼び出し関係図:

§ DrawRectFill() [1/2]

void FrameGraphics::DrawRectFill ( int  x,
int  y,
int  w,
int  h,
FGcolors  color 
)
呼び出し関係図:
被呼び出し関係図:

§ DrawRectFill() [2/2]

void FrameGraphics::DrawRectFill ( int  x,
int  y,
int  w,
int  h,
double  r,
double  g,
double  b 
)
呼び出し関係図:

§ GetDepth()

int FrameGraphics::GetDepth ( void  ) const

§ GetHeight()

int FrameGraphics::GetHeight ( void  ) const

§ GetWidth()

int FrameGraphics::GetWidth ( void  ) const

§ operator=()

const FrameGraphics& ARCS::FrameGraphics::operator= ( const FrameGraphics )
private

§ PrepareFontData()

void FrameGraphics::PrepareFontData ( FGcolors  fore_color,
FGcolors  back_color 
)
被呼び出し関係図:

§ PrintAllFontData()

void FrameGraphics::PrintAllFontData ( )
呼び出し関係図:

§ PrintText()

void FrameGraphics::PrintText ( int  x,
int  y,
FGalign  align,
std::string  text 
)
呼び出し関係図:
被呼び出し関係図:

§ PrintValue()

void FrameGraphics::PrintValue ( int  x,
int  y,
FGalign  align,
std::string  format,
double  val 
)
呼び出し関係図:
被呼び出し関係図:

§ RGBcolorToData16()

int16_t FrameGraphics::RGBcolorToData16 ( double  Red,
double  Green,
double  Blue 
)
staticprivate
呼び出し関係図:
被呼び出し関係図:

§ RGBcolorToData32()

int32_t FrameGraphics::RGBcolorToData32 ( double  Red,
double  Green,
double  Blue 
)
staticprivate
呼び出し関係図:
被呼び出し関係図:

§ ShowParam()

void FrameGraphics::ShowParam ( void  )

§ WriteFont()

void FrameGraphics::WriteFont ( int  x,
int  y,
unsigned int  ascii 
)
被呼び出し関係図:

メンバ詳解

§ bppx

int ARCS::FrameGraphics::bppx
private

§ ColorSet16

const int16_t FrameGraphics::ColorSet16
staticprivate
初期値:
= {
(int16_t)0xF800,
(int16_t)0x07E0,
(int16_t)0x001F,
(int16_t)0x07FF,
(int16_t)0xF81F,
(int16_t)0xFFE0,
(int16_t)0xF800,
(int16_t)0xFFFF,
(int16_t)0xB4F6,
(int16_t)0x7BEF,
(int16_t)0x39E7,
(int16_t)0x0000
}

§ ColorSet32

const int32_t FrameGraphics::ColorSet32
staticprivate
初期値:
= {
0x00FF0000,
0x0000FF00,
0x000000FF,
0x0000FFFF,
0x00FF00FF,
0x00FFFF00,
0x00FF8000,
0x00FFFFFF,
0x00C0C0C0,
0x00808080,
0x00404040,
0x00000000
}

§ depth

int ARCS::FrameGraphics::depth
private

§ FBfd

int ARCS::FrameGraphics::FBfd
private

§ FBptr16

int16_t* ARCS::FrameGraphics::FBptr16
private

§ FBptr32

int32_t* ARCS::FrameGraphics::FBptr32
private

§ finfo

struct fb_fix_screeninfo ARCS::FrameGraphics::finfo
private

§ FONT_DATA

const int FrameGraphics::FONT_DATA
staticprivate

§ FONT_END_ASCII

const unsigned int ARCS::FrameGraphics::FONT_END_ASCII = 126
staticprivate

§ FONT_FST_ASCII

const unsigned int ARCS::FrameGraphics::FONT_FST_ASCII = 32
staticprivate

§ FONT_HEIGHT

const unsigned int ARCS::FrameGraphics::FONT_HEIGHT = 9
staticprivate

§ FONT_NUM

const unsigned int ARCS::FrameGraphics::FONT_NUM = 96
staticprivate

§ FONT_WIDTH

const unsigned int ARCS::FrameGraphics::FONT_WIDTH = 5
staticprivate

§ FontPrepared16

int16_t ARCS::FrameGraphics::FontPrepared16[FONT_NUM][FONT_HEIGHT][FONT_WIDTH]
private

§ FontPrepared32

int32_t ARCS::FrameGraphics::FontPrepared32[FONT_NUM][FONT_HEIGHT][FONT_WIDTH]
private

§ height

int ARCS::FrameGraphics::height
private

§ IsFontDataLocked

bool ARCS::FrameGraphics::IsFontDataLocked
private

§ length

long ARCS::FrameGraphics::length
private

§ NUM_COLOR_SET

const unsigned int ARCS::FrameGraphics::NUM_COLOR_SET = 12
staticprivate

§ size

long ARCS::FrameGraphics::size
private

§ TEXT_INTERVAL

const unsigned int ARCS::FrameGraphics::TEXT_INTERVAL = 1
staticprivate

§ TEXT_MAXLEN

const unsigned int ARCS::FrameGraphics::TEXT_MAXLEN = 256
staticprivate

§ vinfo

struct fb_var_screeninfo ARCS::FrameGraphics::vinfo
private

§ width

int ARCS::FrameGraphics::width
private

§ xlen

int ARCS::FrameGraphics::xlen
private

§ xofst

int ARCS::FrameGraphics::xofst
private

§ yofst

int ARCS::FrameGraphics::yofst
private

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