Swiftray  1.0
Parser::BaseContext Class Reference

#include <base-context.h>

Inheritance diagram for Parser::BaseContext:
Parser::StylableContext Parser::ObjectContext Parser::TransformableContext Parser::PaintContext< svgpp::tag::attribute::stroke > Parser::PaintContext< svgpp::tag::attribute::fill > Parser::CSSContext Parser::GroupContext Parser::ImageContext Parser::ReferencedSymbolOrSvgContext Parser::ShapeContext Parser::TextContext Parser::UseContext

Public Types

typedef factory::length::unitless length_factory_type
 
- Public Types inherited from Parser::StylableContext
typedef PaintContext< svgpp::tag::attribute::fill > fill_paint
 
typedef PaintContext< svgpp::tag::attribute::stroke > stroke_paint
 

Public Member Functions

 BaseContext (SVGPPDoc &svgpp_doc, double resolutionDPI)
 
void disable_rendering ()
 
length_factory_type const & length_factory () const
 
void on_exit_element ()
 
template<class IRI >
void set (svgpp::tag::attribute::clip_path, IRI const &)
 
template<class IRI >
void set (svgpp::tag::attribute::clip_path, svgpp::tag::iri_fragment, IRI const &fragment)
 
void set (svgpp::tag::attribute::clip_path, svgpp::tag::value::inherit val)
 
void set (svgpp::tag::attribute::clip_path, svgpp::tag::value::none val)
 
void set (svgpp::tag::attribute::color, color_t val)
 
void set (svgpp::tag::attribute::data_original_layer, RangedChar fragment)
 
template<class IRI >
void set (svgpp::tag::attribute::data_original_layer, tag::iri_fragment, IRI const &fragment)
 
void set (svgpp::tag::attribute::display, svgpp::tag::value::inherit)
 
void set (svgpp::tag::attribute::display, svgpp::tag::value::none)
 
template<class ValueTag >
void set (svgpp::tag::attribute::display, ValueTag)
 
void set (svgpp::tag::attribute::fill_opacity, double val)
 
void set (svgpp::tag::attribute::fill_rule, svgpp::tag::value::evenodd)
 
void set (svgpp::tag::attribute::fill_rule, svgpp::tag::value::nonzero)
 
template<class IRI >
void set (svgpp::tag::attribute::filter, IRI const &)
 
template<class IRI >
void set (svgpp::tag::attribute::filter, svgpp::tag::iri_fragment, IRI const &fragment)
 
void set (svgpp::tag::attribute::filter, svgpp::tag::value::inherit)
 
void set (svgpp::tag::attribute::filter, svgpp::tag::value::none val)
 
template<class IRI >
void set (svgpp::tag::attribute::marker, IRI const &)
 
template<class IRI >
void set (svgpp::tag::attribute::marker, svgpp::tag::iri_fragment, IRI const &fragment)
 
void set (svgpp::tag::attribute::marker, svgpp::tag::value::none)
 
template<class IRI >
void set (svgpp::tag::attribute::marker_end, IRI const &)
 
template<class IRI >
void set (svgpp::tag::attribute::marker_end, svgpp::tag::iri_fragment, IRI const &fragment)
 
void set (svgpp::tag::attribute::marker_end, svgpp::tag::value::none)
 
template<class IRI >
void set (svgpp::tag::attribute::marker_mid, IRI const &)
 
template<class IRI >
void set (svgpp::tag::attribute::marker_mid, svgpp::tag::iri_fragment, IRI const &fragment)
 
void set (svgpp::tag::attribute::marker_mid, svgpp::tag::value::none)
 
template<class IRI >
void set (svgpp::tag::attribute::marker_start, IRI const &)
 
template<class IRI >
void set (svgpp::tag::attribute::marker_start, svgpp::tag::iri_fragment, IRI const &fragment)
 
void set (svgpp::tag::attribute::marker_start, svgpp::tag::value::none)
 
template<class IRI >
void set (svgpp::tag::attribute::mask, IRI const &)
 
template<class IRI >
void set (svgpp::tag::attribute::mask, svgpp::tag::iri_fragment, IRI const &fragment)
 
void set (svgpp::tag::attribute::mask, svgpp::tag::value::inherit val)
 
void set (svgpp::tag::attribute::mask, svgpp::tag::value::none val)
 
void set (svgpp::tag::attribute::opacity, double val)
 
void set (svgpp::tag::attribute::opacity, svgpp::tag::value::inherit)
 
void set (svgpp::tag::attribute::overflow, svgpp::tag::value::auto_)
 
void set (svgpp::tag::attribute::overflow, svgpp::tag::value::hidden)
 
void set (svgpp::tag::attribute::overflow, svgpp::tag::value::inherit)
 
void set (svgpp::tag::attribute::overflow, svgpp::tag::value::scroll)
 
void set (svgpp::tag::attribute::overflow, svgpp::tag::value::visible)
 
template<class Range >
void set (svgpp::tag::attribute::stroke_dasharray, Range const &range)
 
void set (svgpp::tag::attribute::stroke_dasharray, svgpp::tag::value::none)
 
void set (svgpp::tag::attribute::stroke_dashoffset, double val)
 
void set (svgpp::tag::attribute::stroke_linecap, svgpp::tag::value::butt)
 
void set (svgpp::tag::attribute::stroke_linecap, svgpp::tag::value::round)
 
void set (svgpp::tag::attribute::stroke_linecap, svgpp::tag::value::square)
 
void set (svgpp::tag::attribute::stroke_linejoin, svgpp::tag::value::bevel)
 
void set (svgpp::tag::attribute::stroke_linejoin, svgpp::tag::value::miter)
 
void set (svgpp::tag::attribute::stroke_linejoin, svgpp::tag::value::round)
 
void set (svgpp::tag::attribute::stroke_miterlimit, double val)
 
void set (svgpp::tag::attribute::stroke_opacity, double val)
 
void set (svgpp::tag::attribute::stroke_width, double val)
 
void set (tag::attribute::class_, RangedChar class_)
 
void set (tag::attribute::height, double val)
 
void set (tag::attribute::id, RangedChar id)
 
template<typename MinMax , typename SliceMeet >
void set (tag::attribute::preserveAspectRatio, bool, MinMax, SliceMeet)
 
void set (tag::attribute::preserveAspectRatio, bool, tag::value::none)
 
void set (tag::attribute::width, double val)
 
void set (tag::attribute::xlink::href, RangedChar fragment)
 
template<class IRI >
void set (tag::attribute::xlink::href, tag::iri_fragment, IRI const &fragment)
 
template<class Range >
void set_text (Range const &text)
 
void set_viewbox_size (double viewbox_width, double viewbox_height)
 
void set_viewport (double viewport_x, double viewport_y, double viewport_width, double viewport_height)
 
SVGPPDocsvgppDoc () const
 
virtual string type ()
 
- Public Member Functions inherited from Parser::StylableContext
 StylableContext ()
 
 StylableContext (StylableContext const &src)
 
QString fillColor ()
 
template<class IRI >
void set (svgpp::tag::attribute::clip_path, IRI const &)
 
template<class IRI >
void set (svgpp::tag::attribute::clip_path, svgpp::tag::iri_fragment, IRI const &fragment)
 
void set (svgpp::tag::attribute::clip_path, svgpp::tag::value::inherit val)
 
void set (svgpp::tag::attribute::clip_path, svgpp::tag::value::none val)
 
void set (svgpp::tag::attribute::color, color_t val)
 
void set (svgpp::tag::attribute::display, svgpp::tag::value::inherit)
 
void set (svgpp::tag::attribute::display, svgpp::tag::value::none)
 
template<class ValueTag >
void set (svgpp::tag::attribute::display, ValueTag)
 
void set (svgpp::tag::attribute::fill_opacity, double val)
 
void set (svgpp::tag::attribute::fill_rule, svgpp::tag::value::evenodd)
 
void set (svgpp::tag::attribute::fill_rule, svgpp::tag::value::nonzero)
 
template<class IRI >
void set (svgpp::tag::attribute::filter, IRI const &)
 
template<class IRI >
void set (svgpp::tag::attribute::filter, svgpp::tag::iri_fragment, IRI const &fragment)
 
void set (svgpp::tag::attribute::filter, svgpp::tag::value::inherit)
 
void set (svgpp::tag::attribute::filter, svgpp::tag::value::none val)
 
template<class IRI >
void set (svgpp::tag::attribute::marker, IRI const &)
 
template<class IRI >
void set (svgpp::tag::attribute::marker, svgpp::tag::iri_fragment, IRI const &fragment)
 
void set (svgpp::tag::attribute::marker, svgpp::tag::value::none)
 
template<class IRI >
void set (svgpp::tag::attribute::marker_end, IRI const &)
 
template<class IRI >
void set (svgpp::tag::attribute::marker_end, svgpp::tag::iri_fragment, IRI const &fragment)
 
void set (svgpp::tag::attribute::marker_end, svgpp::tag::value::none)
 
template<class IRI >
void set (svgpp::tag::attribute::marker_mid, IRI const &)
 
template<class IRI >
void set (svgpp::tag::attribute::marker_mid, svgpp::tag::iri_fragment, IRI const &fragment)
 
void set (svgpp::tag::attribute::marker_mid, svgpp::tag::value::none)
 
template<class IRI >
void set (svgpp::tag::attribute::marker_start, IRI const &)
 
template<class IRI >
void set (svgpp::tag::attribute::marker_start, svgpp::tag::iri_fragment, IRI const &fragment)
 
void set (svgpp::tag::attribute::marker_start, svgpp::tag::value::none)
 
template<class IRI >
void set (svgpp::tag::attribute::mask, IRI const &)
 
template<class IRI >
void set (svgpp::tag::attribute::mask, svgpp::tag::iri_fragment, IRI const &fragment)
 
void set (svgpp::tag::attribute::mask, svgpp::tag::value::inherit val)
 
void set (svgpp::tag::attribute::mask, svgpp::tag::value::none val)
 
void set (svgpp::tag::attribute::opacity, double val)
 
void set (svgpp::tag::attribute::opacity, svgpp::tag::value::inherit)
 
void set (svgpp::tag::attribute::overflow, svgpp::tag::value::auto_)
 
void set (svgpp::tag::attribute::overflow, svgpp::tag::value::hidden)
 
void set (svgpp::tag::attribute::overflow, svgpp::tag::value::inherit)
 
void set (svgpp::tag::attribute::overflow, svgpp::tag::value::scroll)
 
void set (svgpp::tag::attribute::overflow, svgpp::tag::value::visible)
 
template<class Range >
void set (svgpp::tag::attribute::stroke_dasharray, Range const &range)
 
void set (svgpp::tag::attribute::stroke_dasharray, svgpp::tag::value::none)
 
void set (svgpp::tag::attribute::stroke_dashoffset, double val)
 
void set (svgpp::tag::attribute::stroke_linecap, svgpp::tag::value::butt)
 
void set (svgpp::tag::attribute::stroke_linecap, svgpp::tag::value::round)
 
void set (svgpp::tag::attribute::stroke_linecap, svgpp::tag::value::square)
 
void set (svgpp::tag::attribute::stroke_linejoin, svgpp::tag::value::bevel)
 
void set (svgpp::tag::attribute::stroke_linejoin, svgpp::tag::value::miter)
 
void set (svgpp::tag::attribute::stroke_linejoin, svgpp::tag::value::round)
 
void set (svgpp::tag::attribute::stroke_miterlimit, double val)
 
void set (svgpp::tag::attribute::stroke_opacity, double val)
 
void set (svgpp::tag::attribute::stroke_width, double val)
 
QString strokeColor ()
 
Stylestyle ()
 
Style const & style () const
 
- Public Member Functions inherited from Parser::PaintContext< svgpp::tag::attribute::stroke >
 PaintContext (SVGPPPaint &paint)
 
void set (svgpp::tag::attribute::stroke tag, IRI const &, color_t val, svgpp::tag::skip_icc_color=svgpp::tag::skip_icc_color())
 
void set (svgpp::tag::attribute::stroke tag, IRI const &, svgpp::tag::value::currentColor val)
 
void set (svgpp::tag::attribute::stroke tag, IRI const &, svgpp::tag::value::none val)
 
void set (svgpp::tag::attribute::stroke tag, IRI const &iri)
 
void set (svgpp::tag::attribute::stroke tag, svgpp::tag::iri_fragment, IRI const &fragment)
 
void set (svgpp::tag::attribute::stroke tag, svgpp::tag::iri_fragment, IRI const &fragment, color_t val, svgpp::tag::skip_icc_color=svgpp::tag::skip_icc_color())
 
void set (svgpp::tag::attribute::stroke tag, svgpp::tag::iri_fragment, IRI const &fragment, svgpp::tag::value::currentColor val)
 
void set (svgpp::tag::attribute::stroke tag, svgpp::tag::iri_fragment, IRI const &fragment, svgpp::tag::value::none val)
 
void set (svgpp::tag::attribute::stroke, color_t color, svgpp::tag::skip_icc_color=svgpp::tag::skip_icc_color())
 
void set (svgpp::tag::attribute::stroke, svgpp::tag::value::currentColor)
 
void set (svgpp::tag::attribute::stroke, svgpp::tag::value::none)
 
- Public Member Functions inherited from Parser::PaintContext< svgpp::tag::attribute::fill >
 PaintContext (SVGPPPaint &paint)
 
void set (svgpp::tag::attribute::fill tag, IRI const &, color_t val, svgpp::tag::skip_icc_color=svgpp::tag::skip_icc_color())
 
void set (svgpp::tag::attribute::fill tag, IRI const &, svgpp::tag::value::currentColor val)
 
void set (svgpp::tag::attribute::fill tag, IRI const &, svgpp::tag::value::none val)
 
void set (svgpp::tag::attribute::fill tag, IRI const &iri)
 
void set (svgpp::tag::attribute::fill tag, svgpp::tag::iri_fragment, IRI const &fragment)
 
void set (svgpp::tag::attribute::fill tag, svgpp::tag::iri_fragment, IRI const &fragment, color_t val, svgpp::tag::skip_icc_color=svgpp::tag::skip_icc_color())
 
void set (svgpp::tag::attribute::fill tag, svgpp::tag::iri_fragment, IRI const &fragment, svgpp::tag::value::currentColor val)
 
void set (svgpp::tag::attribute::fill tag, svgpp::tag::iri_fragment, IRI const &fragment, svgpp::tag::value::none val)
 
void set (svgpp::tag::attribute::fill, color_t color, svgpp::tag::skip_icc_color=svgpp::tag::skip_icc_color())
 
void set (svgpp::tag::attribute::fill, svgpp::tag::value::currentColor)
 
void set (svgpp::tag::attribute::fill, svgpp::tag::value::none)
 
- Public Member Functions inherited from Parser::ObjectContext
void set (svgpp::tag::attribute::data_original_layer, RangedChar fragment)
 
template<class IRI >
void set (svgpp::tag::attribute::data_original_layer, tag::iri_fragment, IRI const &fragment)
 
void set (tag::attribute::height, double val)
 
template<typename MinMax , typename SliceMeet >
void set (tag::attribute::preserveAspectRatio, bool, MinMax, SliceMeet)
 
void set (tag::attribute::preserveAspectRatio, bool, tag::value::none)
 
void set (tag::attribute::width, double val)
 
void set (tag::attribute::xlink::href, RangedChar fragment)
 
template<class IRI >
void set (tag::attribute::xlink::href, tag::iri_fragment, IRI const &fragment)
 
- Public Member Functions inherited from Parser::TransformableContext
QPointF getTransformedPos (double x, double y)
 
QTransform qtransform ()
 
matrix_ttransform ()
 
matrix_t const & transform () const
 
void transform_matrix (const boost::array< double, 6 > &matrix)
 
void transform_rotate (double angle)
 
void transform_scale (double scale)
 
void transform_scale (double sx, double sy)
 
void transform_translate (double tx)
 
void transform_translate (double tx, double ty)
 

Static Public Member Functions

static bool unknown_attribute_error (std::string name)
 

Public Attributes

QString class_name_
 
QString id_
 
- Public Attributes inherited from Parser::TransformableContext
matrix_t transform_
 

Additional Inherited Members

- Protected Attributes inherited from Parser::PaintContext< svgpp::tag::attribute::stroke >
SVGPPPaintpaint_
 
- Protected Attributes inherited from Parser::PaintContext< svgpp::tag::attribute::fill >
SVGPPPaintpaint_
 

Member Typedef Documentation

◆ length_factory_type

typedef factory::length::unitless Parser::BaseContext::length_factory_type

Constructor & Destructor Documentation

◆ BaseContext()

Parser::BaseContext::BaseContext ( SVGPPDoc svgpp_doc,
double  resolutionDPI 
)
inline

Member Function Documentation

◆ disable_rendering()

void Parser::BaseContext::disable_rendering ( )
inline

◆ length_factory()

length_factory_type const& Parser::BaseContext::length_factory ( ) const
inline

◆ on_exit_element()

void Parser::BaseContext::on_exit_element ( )
inline

◆ set() [1/60]

template<class IRI >
void Parser::StylableContext::set ( class IRI  )
inline

◆ set() [2/60]

template<class IRI >
void Parser::StylableContext::set ( class IRI  )
inline

◆ set() [3/60]

void Parser::StylableContext::set
inline

◆ set() [4/60]

void Parser::StylableContext::set
inline

◆ set() [5/60]

void Parser::StylableContext::set
inline

◆ set() [6/60]

void Parser::ObjectContext::set
inline

◆ set() [7/60]

template<class IRI >
void Parser::ObjectContext::set ( class IRI  )
inline

◆ set() [8/60]

void Parser::StylableContext::set
inline

◆ set() [9/60]

void Parser::StylableContext::set
inline

◆ set() [10/60]

template<class ValueTag >
void Parser::StylableContext::set ( class ValueTag  )
inline

◆ set() [11/60]

void Parser::StylableContext::set
inline

◆ set() [12/60]

void Parser::StylableContext::set
inline

◆ set() [13/60]

void Parser::StylableContext::set
inline

◆ set() [14/60]

template<class IRI >
void Parser::StylableContext::set ( class IRI  )
inline

◆ set() [15/60]

template<class IRI >
void Parser::StylableContext::set ( class IRI  )
inline

◆ set() [16/60]

void Parser::StylableContext::set
inline

◆ set() [17/60]

void Parser::StylableContext::set
inline

◆ set() [18/60]

template<class IRI >
void Parser::StylableContext::set ( class IRI  )
inline

◆ set() [19/60]

template<class IRI >
void Parser::StylableContext::set ( class IRI  )
inline

◆ set() [20/60]

void Parser::StylableContext::set
inline

◆ set() [21/60]

template<class IRI >
void Parser::StylableContext::set ( class IRI  )
inline

◆ set() [22/60]

template<class IRI >
void Parser::StylableContext::set ( class IRI  )
inline

◆ set() [23/60]

void Parser::StylableContext::set
inline

◆ set() [24/60]

template<class IRI >
void Parser::StylableContext::set ( class IRI  )
inline

◆ set() [25/60]

template<class IRI >
void Parser::StylableContext::set ( class IRI  )
inline

◆ set() [26/60]

void Parser::StylableContext::set
inline

◆ set() [27/60]

template<class IRI >
void Parser::StylableContext::set ( class IRI  )
inline

◆ set() [28/60]

template<class IRI >
void Parser::StylableContext::set ( class IRI  )
inline

◆ set() [29/60]

void Parser::StylableContext::set
inline

◆ set() [30/60]

template<class IRI >
void Parser::StylableContext::set ( class IRI  )
inline

◆ set() [31/60]

template<class IRI >
void Parser::StylableContext::set ( class IRI  )
inline

◆ set() [32/60]

void Parser::StylableContext::set
inline

◆ set() [33/60]

void Parser::StylableContext::set
inline

◆ set() [34/60]

void Parser::StylableContext::set
inline

◆ set() [35/60]

void Parser::StylableContext::set
inline

◆ set() [36/60]

void Parser::StylableContext::set
inline

◆ set() [37/60]

void Parser::StylableContext::set
inline

◆ set() [38/60]

void Parser::StylableContext::set
inline

◆ set() [39/60]

void Parser::StylableContext::set
inline

◆ set() [40/60]

void Parser::StylableContext::set
inline

◆ set() [41/60]

template<class Range >
void Parser::StylableContext::set ( class Range  )
inline

◆ set() [42/60]

void Parser::StylableContext::set
inline

◆ set() [43/60]

void Parser::StylableContext::set
inline

◆ set() [44/60]

void Parser::StylableContext::set
inline

◆ set() [45/60]

void Parser::StylableContext::set
inline

◆ set() [46/60]

void Parser::StylableContext::set
inline

◆ set() [47/60]

void Parser::StylableContext::set
inline

◆ set() [48/60]

void Parser::StylableContext::set
inline

◆ set() [49/60]

void Parser::StylableContext::set
inline

◆ set() [50/60]

void Parser::StylableContext::set
inline

◆ set() [51/60]

void Parser::StylableContext::set
inline

◆ set() [52/60]

void Parser::StylableContext::set
inline

◆ set() [53/60]

void Parser::BaseContext::set ( tag::attribute::class_  ,
RangedChar  class_ 
)
inline

◆ set() [54/60]

void Parser::ObjectContext::set
inline

◆ set() [55/60]

void Parser::BaseContext::set ( tag::attribute::id  ,
RangedChar  id 
)
inline

◆ set() [56/60]

template<typename MinMax , typename SliceMeet >
void Parser::ObjectContext::set ( typename MinMax  ,
typename SliceMeet   
)
inline

◆ set() [57/60]

void Parser::ObjectContext::set
inline

◆ set() [58/60]

void Parser::ObjectContext::set
inline

◆ set() [59/60]

void Parser::ObjectContext::set
inline

◆ set() [60/60]

template<class IRI >
void Parser::ObjectContext::set ( class IRI  )
inline

◆ set_text()

template<class Range >
void Parser::BaseContext::set_text ( Range const &  text)
inline

◆ set_viewbox_size()

void Parser::BaseContext::set_viewbox_size ( double  viewbox_width,
double  viewbox_height 
)
inline

◆ set_viewport()

void Parser::BaseContext::set_viewport ( double  viewport_x,
double  viewport_y,
double  viewport_width,
double  viewport_height 
)
inline

◆ svgppDoc()

SVGPPDoc& Parser::BaseContext::svgppDoc ( ) const
inline

◆ type()

virtual string Parser::BaseContext::type ( )
inlinevirtual

◆ unknown_attribute_error()

static bool Parser::BaseContext::unknown_attribute_error ( std::string  name)
inlinestatic

Member Data Documentation

◆ class_name_

QString Parser::BaseContext::class_name_

◆ id_

QString Parser::BaseContext::id_

The documentation for this class was generated from the following file: