inlib  1.2.0
Public Member Functions | Public Attributes
inlib::sg::text_style Class Reference
Inheritance diagram for inlib::sg::text_style:
Inheritance graph
[legend]
Collaboration diagram for inlib::sg::text_style:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual nodecopy () const
virtual const std::string & s_cls () const
 text_style ()
virtual ~text_style ()
 text_style (const text_style &a_from)
text_styleoperator= (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::hjusthjust
sf_enum< sg::vjustvjust
sf< float > scale
sf_vec< vec3f, float > x_orientation
sf_vec< vec3f, float > y_orientation
sf< bool > rotated
sf< float > line_width
sf< lpatline_pattern
sf< bool > enforced
sf_vec< vec3f, float > translation
sf_enum< winding_typefront_face

Detailed Description

Definition at line 18 of file text_style.


Constructor & Destructor Documentation

inlib::sg::text_style::text_style ( ) [inline]

Definition at line 84 of file text_style.

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();
  }

Member Function Documentation

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]

Implements inlib::sg::node.

Definition at line 82 of file text_style.

{return s_class();}

Member Data Documentation

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.

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.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines