#include <SvgGl.h>
Inherits cinder::svg::Renderer.
Public Member Functions | |
SvgRendererGl () | |
~SvgRendererGl () | |
void | pushGroup (const svg::Group &group, float opacity) |
void | drawPath (const svg::Path &path) |
void | drawPolygon (const svg::Polygon &polygon) |
void | drawPolyline (const svg::Polyline &polyline) |
void | drawLine (const svg::Line &line) |
void | drawRect (const svg::Rect &rect) |
void | drawCircle (const svg::Circle &circle) |
void | drawEllipse (const svg::Ellipse &ellipse) |
void | drawImage (const Surface8u &surface, const Rectf &drawRect) |
void | drawTextSpan (const svg::TextSpan &span) |
void | popGroup () |
void | pushMatrix (const MatrixAffine2f &m) |
void | popMatrix () |
void | pushFill (const svg::Paint &paint) |
void | popFill () |
void | pushStroke (const svg::Paint &paint) |
void | popStroke () |
void | pushFillOpacity (float opacity) |
void | popFillOpacity () |
void | pushStrokeOpacity (float opacity) |
void | popStrokeOpacity () |
ColorA | getCurFillColor () |
ColorA | getCurStrokeColor () |
void | pushStrokeWidth (float width) |
void | popStrokeWidth () |
void | pushFillRule (svg::FillRule rule) |
void | popFillRule () |
void | setVisitor (const RenderVisitor &visitor) |
virtual void | drawImage (const svg::Image &image) |
virtual void | pushStyle (const svg::Style &style) |
virtual void | popStyle (const svg::Style &style) |
virtual void | pushFill (const class Paint &paint) |
virtual void | pushStroke (const class Paint &paint) |
virtual void | pushLineCap (LineCap lineCap) |
virtual void | popLineCap () |
virtual void | pushLineJoin (LineJoin lineJoin) |
virtual void | popLineJoin () |
virtual void | pushTextPen (const Vec2f &penPos) |
virtual void | popTextPen () |
virtual void | pushTextRotation (float rotation) |
virtual void | popTextRotation () |
bool | visit (const Node &node, svg::Style *style) const |
Public Attributes | |
std::vector< svg::Paint > | mFillStack |
std::vector< svg::Paint > | mStrokeStack |
std::vector< float > | mFillOpacityStack |
std::vector< float > | mStrokeOpacityStack |
std::vector< float > | mStrokeWidthStack |
std::vector< svg::FillRule > | mFillRuleStack |
Protected Attributes | |
RenderVisitor | mVisitor |
Friends | |
class | svg::Node |
cinder::SvgRendererGl::SvgRendererGl | ( | ) |
cinder::SvgRendererGl::~SvgRendererGl | ( | ) |
void cinder::SvgRendererGl::pushGroup | ( | const svg::Group & | group, | |
float | opacity | |||
) | [virtual] |
Reimplemented from cinder::svg::Renderer.
void cinder::SvgRendererGl::drawPath | ( | const svg::Path & | path | ) | [virtual] |
Reimplemented from cinder::svg::Renderer.
void cinder::SvgRendererGl::drawPolygon | ( | const svg::Polygon & | polygon | ) | [virtual] |
Reimplemented from cinder::svg::Renderer.
void cinder::SvgRendererGl::drawPolyline | ( | const svg::Polyline & | polyline | ) | [virtual] |
Reimplemented from cinder::svg::Renderer.
void cinder::SvgRendererGl::drawLine | ( | const svg::Line & | line | ) | [virtual] |
Reimplemented from cinder::svg::Renderer.
void cinder::SvgRendererGl::drawRect | ( | const svg::Rect & | rect | ) | [virtual] |
Reimplemented from cinder::svg::Renderer.
void cinder::SvgRendererGl::drawCircle | ( | const svg::Circle & | circle | ) | [virtual] |
Reimplemented from cinder::svg::Renderer.
void cinder::SvgRendererGl::drawEllipse | ( | const svg::Ellipse & | ellipse | ) | [virtual] |
Reimplemented from cinder::svg::Renderer.
void cinder::SvgRendererGl::drawTextSpan | ( | const svg::TextSpan & | span | ) | [virtual] |
Reimplemented from cinder::svg::Renderer.
void cinder::SvgRendererGl::popGroup | ( | ) | [virtual] |
Reimplemented from cinder::svg::Renderer.
void cinder::SvgRendererGl::pushMatrix | ( | const MatrixAffine2f & | m | ) | [virtual] |
Reimplemented from cinder::svg::Renderer.
void cinder::SvgRendererGl::popMatrix | ( | ) | [virtual] |
Reimplemented from cinder::svg::Renderer.
void cinder::SvgRendererGl::pushFill | ( | const svg::Paint & | paint | ) |
void cinder::SvgRendererGl::popFill | ( | ) | [virtual] |
Reimplemented from cinder::svg::Renderer.
void cinder::SvgRendererGl::pushStroke | ( | const svg::Paint & | paint | ) |
void cinder::SvgRendererGl::popStroke | ( | ) | [virtual] |
Reimplemented from cinder::svg::Renderer.
void cinder::SvgRendererGl::pushFillOpacity | ( | float | opacity | ) | [virtual] |
Reimplemented from cinder::svg::Renderer.
void cinder::SvgRendererGl::popFillOpacity | ( | ) | [virtual] |
Reimplemented from cinder::svg::Renderer.
void cinder::SvgRendererGl::pushStrokeOpacity | ( | float | opacity | ) | [virtual] |
Reimplemented from cinder::svg::Renderer.
void cinder::SvgRendererGl::popStrokeOpacity | ( | ) | [virtual] |
Reimplemented from cinder::svg::Renderer.
ColorA cinder::SvgRendererGl::getCurFillColor | ( | ) |
ColorA cinder::SvgRendererGl::getCurStrokeColor | ( | ) |
void cinder::SvgRendererGl::pushStrokeWidth | ( | float | width | ) | [virtual] |
Reimplemented from cinder::svg::Renderer.
void cinder::SvgRendererGl::popStrokeWidth | ( | ) | [virtual] |
Reimplemented from cinder::svg::Renderer.
void cinder::SvgRendererGl::pushFillRule | ( | svg::FillRule | rule | ) | [virtual] |
Reimplemented from cinder::svg::Renderer.
void cinder::SvgRendererGl::popFillRule | ( | ) | [virtual] |
Reimplemented from cinder::svg::Renderer.
void cinder::svg::Renderer::setVisitor | ( | const RenderVisitor & | visitor | ) | [inherited] |
virtual void cinder::svg::Renderer::drawImage | ( | const svg::Image & | image | ) | [virtual, inherited] |
virtual void cinder::svg::Renderer::pushStyle | ( | const svg::Style & | style | ) | [virtual, inherited] |
virtual void cinder::svg::Renderer::popStyle | ( | const svg::Style & | style | ) | [virtual, inherited] |
virtual void cinder::svg::Renderer::pushFill | ( | const class Paint & | paint | ) | [virtual, inherited] |
virtual void cinder::svg::Renderer::pushStroke | ( | const class Paint & | paint | ) | [virtual, inherited] |
virtual void cinder::svg::Renderer::pushLineCap | ( | LineCap | lineCap | ) | [virtual, inherited] |
virtual void cinder::svg::Renderer::popLineCap | ( | ) | [virtual, inherited] |
virtual void cinder::svg::Renderer::pushLineJoin | ( | LineJoin | lineJoin | ) | [virtual, inherited] |
virtual void cinder::svg::Renderer::popLineJoin | ( | ) | [virtual, inherited] |
virtual void cinder::svg::Renderer::pushTextPen | ( | const Vec2f & | penPos | ) | [virtual, inherited] |
virtual void cinder::svg::Renderer::popTextPen | ( | ) | [virtual, inherited] |
virtual void cinder::svg::Renderer::pushTextRotation | ( | float | rotation | ) | [virtual, inherited] |
virtual void cinder::svg::Renderer::popTextRotation | ( | ) | [virtual, inherited] |
bool cinder::svg::Renderer::visit | ( | const Node & | node, | |
svg::Style * | style | |||
) | const [inherited] |
friend class svg::Node [friend, inherited] |
std::vector<svg::Paint> cinder::SvgRendererGl::mFillStack |
std::vector<svg::Paint> cinder::SvgRendererGl::mStrokeStack |
std::vector<float> cinder::SvgRendererGl::mFillOpacityStack |
std::vector<float> cinder::SvgRendererGl::mStrokeOpacityStack |
std::vector<float> cinder::SvgRendererGl::mStrokeWidthStack |
std::vector<svg::FillRule> cinder::SvgRendererGl::mFillRuleStack |
RenderVisitor cinder::svg::Renderer::mVisitor [protected, inherited] |