std::vector< svg::FillRule > mFillRuleStack
Definition: SvgGl.h:174
Represents a group of SVG elements. http://www.w3.org/TR/SVG/struct.html#Groups.
Definition: Svg.h:731
std::vector< svg::Paint > mFillStack
Definition: SvgGl.h:171
SVG Circle element: http://www.w3.org/TR/SVG/shapes.html#CircleElement.
Definition: Svg.h:491
void drawStrokedEllipse(const Vec2f ¢er, float radiusX, float radiusY, int numSegments=0)
Renders a stroked circle using a line loop. The default value of zero for numSegments automatically d...
Definition: gl.cpp:733
void drawStrokedCircle(const Vec2f ¢er, float radius, int numSegments=0)
Renders a stroked circle using a line loop. The default value of zero for numSegments automatically d...
Definition: gl.cpp:689
void color(float r, float g, float b)
Sets the current color and the alpha value to 1.0.
Definition: gl.h:174
void pushStrokeOpacity(float opacity)
Definition: SvgGl.h:158
void popGroup()
Definition: SvgGl.h:142
void drawImage(const Surface8u &surface, const Rectf &drawRect)
Definition: SvgGl.h:133
Winding
Definition: Triangulate.h:38
void drawSolidCircle(const Vec2f ¢er, float radius, int numSegments=0)
Renders a solid circle using triangle fans. The default value of zero for numSegments automatically d...
Definition: gl.cpp:666
GLenum GLsizei width
Definition: GLee.h:969
void drawEllipse(const svg::Ellipse &ellipse)
Definition: SvgGl.h:122
void popMatrix()
Definition: SvgGl.h:148
void pushGroup(const svg::Group &group, float opacity)
Definition: SvgGl.h:53
SVG Polyline Element: http://www.w3.org/TR/SVG/shapes.html#PolylineElement.
Definition: Svg.h:611
Vec2f getCenter() const
Definition: Svg.h:517
void drawPolyline(const svg::Polyline &polyline)
Definition: SvgGl.h:80
ColorA getCurFillColor()
Definition: SvgGl.h:161
Converts an arbitrary Shape2d into a TriMesh2d.
Definition: Triangulate.h:36
SVG Ellipse element: http://www.w3.org/TR/SVG/shapes.html#EllipseElement.
Definition: Svg.h:512
void pushStroke(const svg::Paint &paint)
Definition: SvgGl.h:154
#define GL_MODELVIEW
Definition: gldx.h:754
void pushMatrix(const MatrixAffine2f &m)
Definition: SvgGl.h:144
SVG tspan Element. Generally owned by a svg::Text Node. http://www.w3.org/TR/SVG/text.html#TSpanElement.
Definition: Svg.h:672
SVG Rect element: http://www.w3.org/TR/SVG/shapes.html#RectElement.
Definition: Svg.h:572
std::vector< svg::Paint > mStrokeStack
Definition: SvgGl.h:171
void drawSolidEllipse(const Vec2f ¢er, float radiusX, float radiusY, int numSegments=0)
Renders a solid ellipse using triangle fans. The default value of zero for numSegments automatically ...
Definition: gl.cpp:710
SVG Paint specification for fill or stroke, including solids and gradients.
Definition: Svg.h:147
void drawStrokedRect(const Rectf &rect)
Renders a stroked rectangle.
Definition: gl.cpp:777
void popFillOpacity()
Definition: SvgGl.h:157
ColorA getCurStrokeColor()
Definition: SvgGl.h:162
Represents an OpenGL Texture. Implicitly shared object.
Definition: Texture.h:41
SVG Line element: http://www.w3.org/TR/SVG/shapes.html#LineElement.
Definition: Svg.h:554
void drawPath(const svg::Path &path)
Definition: SvgGl.h:55
void drawTextSpan(const svg::TextSpan &span)
Definition: SvgGl.h:138
float getRadiusY() const
Definition: Svg.h:519
void popStrokeWidth()
Definition: SvgGl.h:166
void popFill()
Definition: SvgGl.h:153
void drawSolidRect(const Rectf &rect, bool textureRectangle=false)
Renders a solid rectangle. Texture coordinates in the range [0,1] are generated unless textureRectang...
Definition: gl.cpp:754
void render(Renderer &renderer) const
Renders the node and its descendants.
Definition: Svg.cpp:916
float getRadiusX() const
Definition: Svg.h:518
void drawLine(const svg::Line &line)
Definition: SvgGl.h:93
const PolyLine2f & getPolyLine() const
Definition: Svg.h:596
void glMultMatrixf(const cinder::Matrix44f &m)
Global overloads for OpenGL free functions to allow the use of Cinder types natively.
Definition: gl.h:409
std::vector< float > mStrokeWidthStack
Definition: SvgGl.h:173
const Shape2d & getShape2d() const
Definition: Svg.h:539
const Rectf & getRect() const
Definition: Svg.h:577
static ColorT< float > white()
Definition: Color.h:186
const Vec2f & getPoint1() const
Definition: Svg.h:559
void pushStrokeWidth(float width)
Definition: SvgGl.h:165
void drawCircle(const svg::Circle &circle)
Definition: SvgGl.h:111
static ColorT< float > black()
Definition: Color.h:181
SVG Polygon Element: http://www.w3.org/TR/SVG/shapes.html#PolygonElement.
Definition: Svg.h:591
boost::geometry::model::polygon< boost::geometry::model::d2::point_xy< double > > polygon
Definition: ConvexHull.cpp:32
SvgRendererGl()
Definition: SvgGl.h:37
std::vector< float > mStrokeOpacityStack
Definition: SvgGl.h:172
Vec2f getCenter() const
Definition: Svg.h:496
std::vector< float > mFillOpacityStack
Definition: SvgGl.h:172
Renderer()
Definition: Svg.h:68
FillRule
Definition: Svg.h:44
Matrix44< float > Matrix44f
Definition: Matrix44.h:1314
T a
Definition: Color.h:216
void popFillRule()
Definition: SvgGl.h:168
void drawRect(const svg::Rect &rect)
Definition: SvgGl.h:100
const PolyLine2f & getPolyLine() const
Definition: Svg.h:616
void popStroke()
Definition: SvgGl.h:155
SVG Path element: http://www.w3.org/TR/SVG/paths.html#PathElement.
Definition: Svg.h:534
float getRadius() const
Definition: Svg.h:497
void drawLine(const Vec2f &start, const Vec2f &end)
Draws a line from start to end.
Definition: gl.cpp:487
Represents an SVG Document. See SVG Document Structure http://www.w3.org/TR/SVG/struct.html.
Definition: Svg.h:781
Definition: Triangulate.h:38
Base class from which Renderers are derived.
Definition: Svg.h:66
GLenum GLenum GLvoid GLvoid GLvoid * span
Definition: GLee.h:1089
const GLfloat * m
Definition: GLee.h:13493
void pushFillRule(svg::FillRule rule)
Definition: SvgGl.h:167
void pushFill(const svg::Paint &paint)
Definition: SvgGl.h:152
GLclampf f
Definition: GLee.h:15307
const Vec2f & getPoint2() const
Definition: Svg.h:560
void pushFillOpacity(float opacity)
Definition: SvgGl.h:156
Definition: Triangulate.h:38
void popStrokeOpacity()
Definition: SvgGl.h:159
void drawPolygon(const svg::Polygon &polygon)
Definition: SvgGl.h:67
~SvgRendererGl()
Definition: SvgGl.h:49
void draw(const class Sphere &sphere, int segments=12)
Renders a solid sphere. segments defines how many segments the sphere is subdivided into...
Definition: gl.cpp:661