inlib
1.2.0
|
Public Member Functions | |
virtual node * | copy () const |
virtual const std::string & | s_cls () const |
text_style () | |
virtual | ~text_style () |
text_style (const text_style &a_from) | |
text_style & | operator= (const text_style &a_from) |
bool | from_string (std::ostream &a_out, const cmaps_t &a_cmaps, const std::string &a_s) |
Public Attributes | |
sf< bool > | visible |
sf_vec< colorf, float > | color |
sf< float > | transparency |
sf_vec< colorf, float > | back_color |
sf< float > | back_transparency |
sf< float > | back_shadow |
sf_string | modeling |
sf_string | font |
sf< float > | font_size |
sf_string | encoding |
sf< bool > | smoothing |
sf< bool > | hinting |
sf_enum< sg::hjust > | hjust |
sf_enum< sg::vjust > | vjust |
sf< float > | scale |
sf_vec< vec3f, float > | x_orientation |
sf_vec< vec3f, float > | y_orientation |
sf< bool > | rotated |
sf< float > | line_width |
sf< lpat > | line_pattern |
sf< bool > | enforced |
sf_vec< vec3f, float > | translation |
sf_enum< winding_type > | front_face |
Definition at line 18 of file text_style.
inlib::sg::text_style::text_style | ( | ) | [inline] |
Definition at line 84 of file text_style.
:node() ,visible(true) ,color(colorf::black()) ,transparency(0) ,back_color(colorf::white()) ,back_transparency(0) ,back_shadow(0) ,modeling() ,font(font_hershey()) ,font_size(10) ,encoding(encoding_none()) ,smoothing(false) ,hinting(false) ,hjust(left) ,vjust(bottom) ,scale(1) ,x_orientation(vec3f(1,0,0)) ,y_orientation(vec3f(0,1,0)) ,rotated(false) ,line_width(1) ,line_pattern(line_solid) ,enforced(false) ,translation(vec3f(0,0,0)) ,front_face(winding_ccw) { add_fields(); }
virtual inlib::sg::text_style::~text_style | ( | ) | [inline, virtual] |
Definition at line 112 of file text_style.
{}
inlib::sg::text_style::text_style | ( | const text_style & | a_from | ) | [inline] |
Definition at line 114 of file text_style.
:node(a_from),visible(a_from.visible) ,color(a_from.color) ,transparency(a_from.transparency) ,back_color(a_from.back_color) ,back_transparency(a_from.back_transparency) ,back_shadow(a_from.back_shadow) ,modeling(a_from.modeling) ,font(a_from.font) ,font_size(a_from.font_size) ,encoding(a_from.encoding) ,smoothing(a_from.smoothing) ,hinting(a_from.hinting) ,hjust(a_from.hjust) ,vjust(a_from.vjust) ,scale(a_from.scale) ,x_orientation(a_from.x_orientation) ,y_orientation(a_from.y_orientation) ,rotated(a_from.rotated) ,line_width(a_from.line_width) ,line_pattern(a_from.line_pattern) ,enforced(a_from.enforced) ,translation(a_from.translation) ,front_face(a_from.front_face) { add_fields(); }
virtual node* inlib::sg::text_style::copy | ( | ) | const [inline, virtual] |
Implements inlib::sg::node.
Definition at line 81 of file text_style.
{return new text_style(*this);}
bool inlib::sg::text_style::from_string | ( | std::ostream & | a_out, |
const cmaps_t & | a_cmaps, | ||
const std::string & | a_s | ||
) | [inline] |
Definition at line 168 of file text_style.
{ style_parser sp; sp.visible(visible.value()); sp.color(color.value()); sp.transparency(transparency.value()); sp.back_color(back_color.value()); sp.back_transparency(back_transparency.value()); sp.back_shadow(back_shadow.value()); sp.modeling(modeling.value()); sp.font(font.value()); sp.font_size(font_size.value()); sp.encoding(encoding.value()); sp.smoothing(smoothing.value()); sp.hinting(hinting.value()); sp.scale(scale.value()); //sp.angle(angle.value()); //sp.x_orientation(x_orientation.value()); //sp.y_orientation(y_orientation.value()); //sp.rotated(rotated.value()); sp.line_width(line_width.value()); sp.line_pattern(line_pattern.value()); sp.enforced(enforced.value()); sp.translation(translation.value()); sp.front_face(front_face.value()); if(!sp.parse(a_out,a_cmaps,a_s)) { a_out << "inlib::sg::text_style::from_string :" << " parse failed." << std::endl; return false; } visible.value(sp.visible()); color.value(sp.color()); transparency.value(sp.transparency()); back_color.value(sp.back_color()); back_transparency.value(sp.back_transparency()); back_shadow.value(sp.back_shadow()); modeling.value(sp.modeling()); font.value(sp.font()); font_size.value(sp.font_size()); encoding.value(sp.encoding()); smoothing.value(sp.smoothing()); hinting.value(sp.hinting()); scale.value(sp.scale()); //angle.value(sp.angle()); //x_orientation.value(sp.x_orientation()); //y_orientation.value(sp.y_orientation()); //rotated.value(sp.rotated()); line_width.value(sp.line_width()); line_pattern.value(sp.line_pattern()); enforced.value(sp.enforced()); translation.value(sp.translation()); front_face = sp.front_face(); return true; }
text_style& inlib::sg::text_style::operator= | ( | const text_style & | a_from | ) | [inline] |
Definition at line 141 of file text_style.
{ visible = a_from.visible; color = a_from.color; transparency = a_from.transparency; back_color = a_from.back_color; back_transparency = a_from.back_transparency; back_shadow = a_from.back_shadow; modeling = a_from.modeling; font = a_from.font; font_size = a_from.font_size; encoding = a_from.encoding; smoothing = a_from.smoothing; hinting = a_from.hinting; hjust = a_from.hjust; vjust = a_from.vjust; scale = a_from.scale; x_orientation = a_from.x_orientation; y_orientation = a_from.y_orientation; rotated = a_from.rotated; line_width = a_from.line_width; line_pattern = a_from.line_pattern; enforced = a_from.enforced; translation = a_from.translation; front_face = a_from.front_face; return *this; }
virtual const std::string& inlib::sg::text_style::s_cls | ( | ) | const [inline, virtual] |
Definition at line 27 of file text_style.
Definition at line 29 of file text_style.
Definition at line 28 of file text_style.
Definition at line 25 of file text_style.
Definition at line 34 of file text_style.
Definition at line 49 of file text_style.
Definition at line 32 of file text_style.
Definition at line 33 of file text_style.
Definition at line 53 of file text_style.
Definition at line 36 of file text_style.
Definition at line 37 of file text_style.
Definition at line 48 of file text_style.
Definition at line 47 of file text_style.
Definition at line 31 of file text_style.
Definition at line 44 of file text_style.
sf<float> inlib::sg::text_style::scale |
Definition at line 39 of file text_style.
Definition at line 35 of file text_style.
Definition at line 50 of file text_style.
Definition at line 26 of file text_style.
Definition at line 24 of file text_style.
Definition at line 38 of file text_style.
Definition at line 41 of file text_style.
Definition at line 42 of file text_style.