More documentation.
This commit is contained in:
parent
26c13d4df4
commit
37ba77550c
2 changed files with 11 additions and 3 deletions
|
@ -13,8 +13,12 @@ digraph textrendering {
|
||||||
text_placements -> text_placement_info [label="get_placement_info()", style=dashed]
|
text_placements -> text_placement_info [label="get_placement_info()", style=dashed]
|
||||||
text_placement_info -> text_symbolizer_properties [label="properties"]
|
text_placement_info -> text_symbolizer_properties [label="properties"]
|
||||||
text_placement_info -> text_path [label="placements", style=dashed]
|
text_placement_info -> text_path [label="placements", style=dashed]
|
||||||
|
text_placement_info -> text_placement_info [label="next()"]
|
||||||
text_symbolizer_properties -> text_processor [label="processor"]
|
text_symbolizer_properties -> text_processor [label="processor"]
|
||||||
text_path -> Renderer [label="used by"]
|
text_processor -> processed_text [label="process()", style=dashed]
|
||||||
|
processed_text -> string_info [label="get_string_info()"]
|
||||||
|
text_path -> Renderer [color=red, label="used by"]
|
||||||
Renderer -> text_placement_info [color=red, label="init()"]
|
Renderer -> text_placement_info [color=red, label="init()"]
|
||||||
|
Renderer -> processed_text [color=red, label="initializes"]
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,7 +52,9 @@ DEFINE_ENUM( text_transform_e, text_transform );
|
||||||
struct char_properties
|
struct char_properties
|
||||||
{
|
{
|
||||||
char_properties();
|
char_properties();
|
||||||
|
/** Construct object from XML. */
|
||||||
void set_values_from_xml(boost::property_tree::ptree const &sym, std::map<std::string,font_set> const & fontsets);
|
void set_values_from_xml(boost::property_tree::ptree const &sym, std::map<std::string,font_set> const & fontsets);
|
||||||
|
/** Write object to XML ptree. */
|
||||||
void to_xml(boost::property_tree::ptree &node, bool explicit_defaults, char_properties const &dfl=char_properties()) const;
|
void to_xml(boost::property_tree::ptree &node, bool explicit_defaults, char_properties const &dfl=char_properties()) const;
|
||||||
std::string face_name;
|
std::string face_name;
|
||||||
font_set fontset;
|
font_set fontset;
|
||||||
|
@ -75,7 +77,6 @@ public:
|
||||||
p(properties), str(text) {}
|
p(properties), str(text) {}
|
||||||
char_properties p;
|
char_properties p;
|
||||||
UnicodeString str;
|
UnicodeString str;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
class processed_text
|
class processed_text
|
||||||
|
@ -113,10 +114,13 @@ public:
|
||||||
* The output object has to be created by the caller and passed in for thread safety.
|
* The output object has to be created by the caller and passed in for thread safety.
|
||||||
*/
|
*/
|
||||||
void process(processed_text &output, Feature const& feature);
|
void process(processed_text &output, Feature const& feature);
|
||||||
|
/** Automatically create processing instructions for a single expression. */
|
||||||
void set_old_style_expression(expression_ptr expr);
|
void set_old_style_expression(expression_ptr expr);
|
||||||
/** Add a new formating token. */
|
/** Add a new formating token. */
|
||||||
void push_back(abstract_token *token);
|
void push_back(abstract_token *token);
|
||||||
|
/** Get a list of all expressions used in any placement. This function is used to collect attributes. */
|
||||||
std::set<expression_ptr> get_all_expressions() const;
|
std::set<expression_ptr> get_all_expressions() const;
|
||||||
|
/** Default values for char_properties. */
|
||||||
char_properties defaults;
|
char_properties defaults;
|
||||||
protected:
|
protected:
|
||||||
void from_xml_recursive(boost::property_tree::ptree const& pt, std::map<std::string,font_set> const &fontsets);
|
void from_xml_recursive(boost::property_tree::ptree const& pt, std::map<std::string,font_set> const &fontsets);
|
||||||
|
|
Loading…
Reference in a new issue