#include <team_graphic.h>
Public メソッド | |
XpmTile (const int width, const int height, const int cpp) | |
initialize xpm header information | |
int | width () const |
get the xpm width | |
int | height () const |
get the xpm height | |
int | cpp () const |
get the value of characters per pixel. | |
const std::vector< boost::shared_ptr< std::string > > & | colors () const |
get used color strings | |
const std::vector< std::string > & | pixelLines () const |
get pixel lines | |
void | addColor (boost::shared_ptr< std::string > color) |
add xpm color data string | |
void | addPixelLine (const std::string &line) |
add pixel line data | |
std::ostream & | print (std::ostream &os) const |
output xpm lines |
rcsc::TeamGraphic::XpmTile::XpmTile | ( | const int | width, | |
const int | height, | |||
const int | cpp | |||
) |
initialize xpm header information
width | xpm width | |
height | xpm height | |
n_color | number of | |
cpp | characters per pixel |
int rcsc::TeamGraphic::XpmTile::width | ( | ) | const [inline] |
get the xpm width
int rcsc::TeamGraphic::XpmTile::height | ( | ) | const [inline] |
get the xpm height
int rcsc::TeamGraphic::XpmTile::cpp | ( | ) | const [inline] |
get the value of characters per pixel.
const std::vector< boost::shared_ptr< std::string > >& rcsc::TeamGraphic::XpmTile::colors | ( | ) | const [inline] |
get used color strings
const std::vector< std::string >& rcsc::TeamGraphic::XpmTile::pixelLines | ( | ) | const [inline] |
get pixel lines
void rcsc::TeamGraphic::XpmTile::addColor | ( | boost::shared_ptr< std::string > | color | ) | [inline] |
add xpm color data string
line | pointer to the color data string |
void rcsc::TeamGraphic::XpmTile::addPixelLine | ( | const std::string & | line | ) | [inline] |
add pixel line data
line | pixel line string |
std::ostream & rcsc::TeamGraphic::XpmTile::print | ( | std::ostream & | os | ) | const |
output xpm lines
os | refrence to the output stream |