Cinder  0.8.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Public Attributes | Protected Attributes | List of all members
cinder::SvgRendererGl Class Reference

#include <SvgGl.h>

Inheritance diagram for cinder::SvgRendererGl:
[legend]

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 std::function< bool(const Node &, svg::Style *)> &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::PaintmFillStack
 
std::vector< svg::PaintmStrokeStack
 
std::vector< float > mFillOpacityStack
 
std::vector< float > mStrokeOpacityStack
 
std::vector< float > mStrokeWidthStack
 
std::vector< svg::FillRulemFillRuleStack
 

Protected Attributes

std::shared_ptr< std::function
< bool(const Node
&, svg::Style *)> > 
mVisitor
 

Constructor & Destructor Documentation

cinder::SvgRendererGl::SvgRendererGl ( )
cinder::SvgRendererGl::~SvgRendererGl ( )

Member Function Documentation

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::drawImage ( const Surface8u surface,
const Rectf drawRect 
)
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 std::function< bool(const Node &, svg::Style *)> &  visitor)
inherited
virtual void cinder::svg::Renderer::drawImage ( const svg::Image image)
virtualinherited
virtual void cinder::svg::Renderer::pushStyle ( const svg::Style style)
virtualinherited
virtual void cinder::svg::Renderer::popStyle ( const svg::Style style)
virtualinherited
virtual void cinder::svg::Renderer::pushFill ( const class Paint paint)
virtualinherited
virtual void cinder::svg::Renderer::pushStroke ( const class Paint paint)
virtualinherited
virtual void cinder::svg::Renderer::pushLineCap ( LineCap  lineCap)
virtualinherited
virtual void cinder::svg::Renderer::popLineCap ( )
virtualinherited
virtual void cinder::svg::Renderer::pushLineJoin ( LineJoin  lineJoin)
virtualinherited
virtual void cinder::svg::Renderer::popLineJoin ( )
virtualinherited
virtual void cinder::svg::Renderer::pushTextPen ( const Vec2f penPos)
virtualinherited
virtual void cinder::svg::Renderer::popTextPen ( )
virtualinherited
virtual void cinder::svg::Renderer::pushTextRotation ( float  rotation)
virtualinherited
virtual void cinder::svg::Renderer::popTextRotation ( )
virtualinherited
bool cinder::svg::Renderer::visit ( const Node node,
svg::Style style 
) const
inherited

Member Data Documentation

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
std::shared_ptr<std::function<bool(const Node&, svg::Style *)> > cinder::svg::Renderer::mVisitor
protectedinherited

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