g4tools
5.4.0
|
Public Member Functions | |
virtual bool | draw_in_frame_buffer () const |
virtual void | render (render_action &a_action) |
virtual void | pick (pick_action &a_action) |
virtual void | bbox (bbox_action &a_action) |
text_hershey_marker () | |
virtual | ~text_hershey_marker () |
text_hershey_marker (const text_hershey_marker &a_from) | |
text_hershey_marker & | operator= (const text_hershey_marker &a_from) |
Public Member Functions inherited from tools::sg::text_hershey | |
virtual const desc_fields & | node_desc_fields () const |
text_hershey () | |
virtual | ~text_hershey () |
text_hershey (const text_hershey &a_from) | |
text_hershey & | operator= (const text_hershey &a_from) |
virtual void | get_bounds (float a_height, float &a_mn_x, float &a_mn_y, float &a_mn_z, float &a_mx_x, float &a_mx_y, float &a_mx_z) const |
virtual float | ascent (float a_height) const |
virtual float | y_advance (float a_height) const |
virtual float | descent (float a_height) const |
virtual bool | truncate (const std::string &a_string, float a_height, float a_cut_width, std::string &a_out) const |
Public Member Functions inherited from tools::sg::base_text | |
base_text () | |
virtual | ~base_text () |
Public Member Functions inherited from tools::sg::node | |
virtual void * | cast (const std::string &a_class) const |
virtual const std::string & | s_cls () const =0 |
virtual node * | copy () const =0 |
virtual unsigned int | cls_version () const |
virtual void | search (search_action &a_action) |
virtual void | get_matrix (get_matrix_action &a_action) |
virtual bool | write (write_action &a_action) |
virtual void | event (event_action &) |
virtual bool | read (read_action &a_action) |
virtual void | is_visible (visible_action &) |
virtual void | protocol_one_fields (std::vector< field * > &a_fields) const |
virtual bool | touched () |
virtual void | reset_touched () |
node () | |
virtual | ~node () |
void | touch () |
field & | field_from_desc (const field_desc &a_desc) const |
void | dump_field_descs (std::ostream &a_out) const |
field * | find_field_by_name (const std::string &a_name) const |
Public Member Functions inherited from tools::sg::gstos | |
size_t | num_gstos () const |
Additional Inherited Members | |
Static Public Member Functions inherited from tools::sg::text_hershey | |
static void | get_bounds (float a_height, const std::string &a_encoding, font_type a_font, const std::vector< std::string > &a_ss, float &a_mn_x, float &a_mn_y, float &a_mn_z, float &a_mx_x, float &a_mx_y, float &a_mx_z) |
static void | get_bounds (float a_height, const std::string &a_encoding, font_type a_font, const std::string &a_s, float &a_mn_x, float &a_mn_y, float &a_mn_z, float &a_mx_x, float &a_mx_y, float &a_mx_z) |
Public Attributes inherited from tools::sg::text_hershey | |
sf_string | encoding |
sf_enum< font_type > | font |
Public Attributes inherited from tools::sg::base_text | |
mf_string | strings |
sf< float > | height |
sf_enum< sg::hjust > | hjust |
sf_enum< sg::vjust > | vjust |
Protected Types inherited from tools::sg::text_hershey | |
typedef std::vector< hchar > | sencoded |
Protected Member Functions inherited from tools::sg::text_hershey | |
virtual unsigned int | create_gsto (std::ostream &, sg::render_manager &a_mgr) |
void | update_sg () |
void | get_segments (std::vector< float > &a_segs) const |
Protected Member Functions inherited from tools::sg::base_text | |
base_text (const base_text &a_from) | |
base_text & | operator= (const base_text &a_from) |
Protected Member Functions inherited from tools::sg::node | |
node (const node &) | |
node & | operator= (const node &) |
void | add_field (field *a_field) |
bool | write_fields (write_action &a_action) |
bool | read_fields (read_action &a_action) |
field_desc::offset_t | field_offset (const field *a_field) const |
field * | find_field (const field_desc &a_rdesc) const |
void | check_fields (std::ostream &a_out) const |
Protected Member Functions inherited from tools::sg::gstos | |
gstos () | |
virtual | ~gstos () |
gstos (const gstos &) | |
gstos & | operator= (const gstos &a_from) |
unsigned int | get_tex_id (std::ostream &a_out, render_manager &a_mgr, const img_byte &a_img, bool a_NEAREST) |
unsigned int | get_gsto_id (std::ostream &a_out, render_manager &a_mgr) |
void | clean_gstos () |
void | clean_gstos (render_manager *a_mgr) |
unsigned int | _find (render_manager *a_mgr) |
Static Protected Member Functions inherited from tools::sg::text_hershey | |
static float | _descent (float a_height) |
static bool | _truncate (const std::string &a_string, float a_height, font_type a_font, float a_cut_width, std::string &a_out) |
static void | get_char_bound (char a_char, font_type a_font, float a_scale, bool a_bar, float &a_mn_x, float &a_mn_y, float &a_mn_z, float &a_mx_x, float &a_mx_y, float &a_mx_z) |
static void | string_segs (bool aGEN_POINTS, const std::string &a_string, float a_height, const std::string &a_encoding, font_type a_font, float &aX, float &aY, std::vector< float > &a_segs, bool a_fill_segs) |
static float | char_segs (bool aGEN_POINTS, char a_char, font_type a_font, float a_scale, bool aBar, float aX, float aY, std::vector< float > &a_segs, bool a_fill_segs) |
static void | decode_plain (const std::string &a_s, sencoded &a_sed) |
static void | decode_PAW (const std::string &a_s, sencoded &a_sed) |
PAW encoding //////////////////////////////////////////////////////////. More... | |
Protected Attributes inherited from tools::sg::text_hershey | |
std::vector< float > | m_segs |
size_t | m_gsto_sz |
Protected Attributes inherited from tools::sg::gstos | |
std::vector< std::pair< unsigned int, render_manager * > > | m_gstos |
Definition at line 12 of file text_hershey_marker.
|
inline |
Definition at line 86 of file text_hershey_marker.
|
inlinevirtual |
Definition at line 91 of file text_hershey_marker.
|
inline |
Definition at line 93 of file text_hershey_marker.
|
inlinevirtual |
Reimplemented from tools::sg::text_hershey.
Definition at line 82 of file text_hershey_marker.
|
inlinevirtual |
Reimplemented from tools::sg::node.
Definition at line 15 of file text_hershey_marker.
|
inline |
Definition at line 96 of file text_hershey_marker.
|
inlinevirtual |
|
inlinevirtual |