|
inlib
1.2.0
|


| inlib::sg::style::style | ( | ) | [inline] |
Definition at line 109 of file style.
:node() ,color(colorf::black()) ,highlight_color(colorf::black()) ,back_color(colorf::white()) ,line_width(1) ,marker_size(1) ,font_size(10) ,line_pattern(line_solid) ,marker_style(marker_dot) ,area_style(area_solid) ,modeling(modeling_boxes()) ,light_model(light_model_phong()) ,tick_modeling(tick_modeling_hippo()) ,encoding(encoding_none()) ,smoothing(false) ,hinting(false) ,cut("") ,painting(painting_uniform) ,hatching(hatching_none) ,projection(projection_none) ,font(font_hershey()) ,multi_node_limit(style_parser::no_limit()) ,divisions(510) //Same as ROOT/TAttAxis ,rotation_steps(24) //Same as SbPolyhedron default. ,transparency(0) ,back_transparency(0) ,spacing(0.05F) ,angle(fpi()/4.0F) ,scale(1) ,offset(0) ,strip_width(0) ,visible(true) ,bar_offset(0.25F) ,bar_width(0.5F) ,editable(false) ,automated(true) ,options("") ,color_mapping("") ,enforced(false) ,translation(vec3f(0,0,0)) { add_fields(); }
| inlib::sg::style::style | ( | const style & | a_from | ) | [inline] |
Definition at line 155 of file style.
:node(a_from) ,color(a_from.color) ,highlight_color(a_from.highlight_color) ,back_color(a_from.back_color) ,line_width(a_from.line_width) ,marker_size(a_from.marker_size) ,font_size(a_from.font_size) ,line_pattern(a_from.line_pattern) ,marker_style(a_from.marker_style) ,area_style(a_from.area_style) ,modeling (a_from.modeling ) ,light_model(a_from.light_model) ,tick_modeling(a_from.tick_modeling) ,encoding(a_from.encoding) ,smoothing(a_from.smoothing) ,hinting(a_from.hinting) ,cut(a_from.cut) ,painting(a_from.painting) ,hatching(a_from.hatching) ,projection(a_from.projection) ,font(a_from.font) ,multi_node_limit(a_from.multi_node_limit) ,divisions(a_from.divisions) ,rotation_steps(a_from.rotation_steps) ,transparency(a_from.transparency) ,back_transparency(a_from.back_transparency) ,spacing(a_from.spacing) ,angle(a_from.angle) ,scale(a_from.scale) ,offset(a_from.offset) ,strip_width(a_from.strip_width) ,visible(a_from.visible) ,bar_offset(a_from.bar_offset) ,bar_width(a_from.bar_width) ,editable(a_from.editable) ,automated(a_from.automated) ,options(a_from.options) ,color_mapping(a_from.color_mapping) ,enforced(a_from.enforced) ,translation(a_from.translation) { add_fields(); }
| virtual node* inlib::sg::style::copy | ( | ) | const [inline, virtual] |
| bool inlib::sg::style::from_string | ( | std::ostream & | a_out, |
| const cmaps_t & | a_cmaps, | ||
| const std::string & | a_s | ||
| ) | [inline] |
Definition at line 245 of file style.
{
style_parser sp;
sp.color(color.value());
sp.highlight_color(highlight_color.value());
sp.back_color(back_color.value());
sp.line_width(line_width.value());
sp.marker_size(marker_size.value());
sp.font_size(font_size.value());
sp.line_pattern(line_pattern.value());
sp.marker_style(marker_style.value());
sp.area_style(area_style.value());
sp.modeling(modeling.value());
sp.light_model(light_model.value());
sp.tick_modeling(tick_modeling.value());
sp.encoding(encoding.value());
sp.smoothing(smoothing.value());
sp.hinting(hinting.value());
sp.cut(cut.value());
sp.painting(painting.value());
sp.hatching(hatching.value());
sp.projection(projection.value());
sp.font(font.value());
sp.multi_node_limit(multi_node_limit.value());
sp.divisions(divisions.value());
sp.rotation_steps(rotation_steps.value());
sp.transparency(transparency.value());
sp.back_transparency(back_transparency.value());
sp.spacing(spacing.value());
sp.angle(angle.value());
sp.scale(scale.value());
sp.offset(offset.value());
sp.strip_width(strip_width.value());
sp.visible(visible.value());
sp.bar_offset(bar_offset.value());
sp.bar_width(bar_width.value());
sp.editable(editable.value());
sp.automated(automated.value());
sp.options(options.value());
sp.color_mapping(color_mapping.value());
sp.enforced(enforced.value());
sp.translation(translation.value());
//if(!sp.parse(a_s,inlib::sg::style_parser::def_error_func))
// return false;
if(!sp.parse(a_out,a_cmaps,a_s)) {
a_out << "inlib::sg::style::from_string :"
<< " parse failed."
<< std::endl;
return false;
}
color.value(sp.color());
highlight_color.value(sp.highlight_color());
back_color.value(sp.back_color());
line_width.value(sp.line_width());
marker_size.value(sp.marker_size());
font_size.value(sp.font_size());
line_pattern.value(sp.line_pattern());
marker_style.value(sp.marker_style());
area_style.value(sp.area_style());
modeling.value(sp.modeling());
light_model.value(sp.light_model());
tick_modeling.value(sp.tick_modeling());
encoding.value(sp.encoding());
smoothing.value(sp.smoothing());
hinting.value(sp.hinting());
cut.value(sp.cut());
painting.value(sp.painting());
hatching.value(sp.hatching());
projection.value(sp.projection());
font.value(sp.font());
multi_node_limit.value(sp.multi_node_limit());
divisions.value(sp.divisions());
rotation_steps.value(sp.rotation_steps());
transparency.value(sp.transparency());
back_transparency.value(sp.back_transparency());
spacing.value(sp.spacing());
angle.value(sp.angle());
scale.value(sp.scale());
offset.value(sp.offset());
strip_width.value(sp.strip_width());
visible.value(sp.visible());
bar_offset.value(sp.bar_offset());
bar_width.value(sp.bar_width());
editable.value(sp.editable());
automated.value(sp.automated());
options.value(sp.options());
color_mapping.value(sp.color_mapping());
enforced.value(sp.enforced());
translation.value(sp.translation());
return true;
}
Definition at line 199 of file style.
{
node::operator=(a_from);
color = a_from.color;
highlight_color = a_from.highlight_color;
back_color = a_from.back_color;
line_width = a_from.line_width;
marker_size = a_from.marker_size;
font_size = a_from.font_size;
line_pattern = a_from.line_pattern;
marker_style = a_from.marker_style;
area_style = a_from.area_style;
modeling = a_from.modeling ;
light_model = a_from.light_model;
tick_modeling = a_from.tick_modeling;
encoding = a_from.encoding;
smoothing = a_from.smoothing;
hinting = a_from.hinting;
cut = a_from.cut;
painting = a_from.painting;
hatching = a_from.hatching;
projection = a_from.projection;
font = a_from.font;
multi_node_limit = a_from.multi_node_limit;
divisions = a_from.divisions;
rotation_steps = a_from.rotation_steps;
transparency = a_from.transparency;
back_transparency = a_from.back_transparency;
spacing = a_from.spacing;
angle = a_from.angle;
scale = a_from.scale;
offset = a_from.offset;
strip_width = a_from.strip_width;
visible = a_from.visible;
bar_offset = a_from.bar_offset;
bar_width = a_from.bar_width;
editable = a_from.editable;
automated = a_from.automated;
options = a_from.options;
color_mapping = a_from.color_mapping;
enforced = a_from.enforced;
translation = a_from.translation;
return *this;
}
| virtual const std::string& inlib::sg::style::s_cls | ( | ) | const [inline, virtual] |
| sf<float> inlib::sg::style::angle |
| sf<float> inlib::sg::style::bar_offset |
| sf<float> inlib::sg::style::bar_width |
| sf_vec<colorf,float> inlib::sg::style::color |
| sf<bool> inlib::sg::style::editable |
| sf<bool> inlib::sg::style::enforced |
| sf<float> inlib::sg::style::font_size |
| sf<bool> inlib::sg::style::hinting |
| sf<float> inlib::sg::style::line_width |
| sf<float> inlib::sg::style::marker_size |
| sf<float> inlib::sg::style::offset |
| sf<unsigned int> inlib::sg::style::rotation_steps |
| sf<float> inlib::sg::style::scale |
| sf<float> inlib::sg::style::spacing |
| sf<float> inlib::sg::style::strip_width |
| sf<float> inlib::sg::style::transparency |
| sf<bool> inlib::sg::style::visible |
1.7.5.1