cinder::svg Namespace Reference

Classes

class  Renderer
 Base class from which Renderers are derived. More...
class  Value
 SVG Value/Unit pair. More...
class  Paint
 SVG Paint specification for fill or stroke, including solids and gradients. More...
class  Style
 SVG Style for a node. Corresponds to SVG Styling: http://www.w3.org/TR/SVG/styling.html. More...
class  Node
 Base class for an element of an SVG Document. More...
class  Gradient
 Base class for SVG Gradients. See SVG Gradients: http://www.w3.org/TR/SVG/pservers.html#Gradients. More...
class  LinearGradient
 SVG Linear gradient. More...
class  RadialGradient
 SVG Radial gradient. More...
class  Circle
 SVG Circle element: http://www.w3.org/TR/SVG/shapes.html#CircleElement. More...
class  Ellipse
 SVG Ellipse element: http://www.w3.org/TR/SVG/shapes.html#EllipseElement. More...
class  Path
 SVG Path element: http://www.w3.org/TR/SVG/paths.html#PathElement. More...
class  Line
 SVG Line element: http://www.w3.org/TR/SVG/shapes.html#LineElement. More...
class  Rect
 SVG Rect element: http://www.w3.org/TR/SVG/shapes.html#RectElement. More...
class  Polygon
 SVG Polygon Element: http://www.w3.org/TR/SVG/shapes.html#PolygonElement. More...
class  Polyline
 SVG Polyline Element: http://www.w3.org/TR/SVG/shapes.html#PolylineElement. More...
class  Use
 SVG Use Element, which instantiates a different element: http://www.w3.org/TR/SVG/struct.html#UseElement. More...
class  Image
 SVG Image Element. Represents an unpremultiplied bitmap. http://www.w3.org/TR/SVG/struct.html#ImageElement. More...
class  TextSpan
 SVG tspan Element. Generally owned by a svg::Text Node. http://www.w3.org/TR/SVG/text.html#TSpanElement. More...
class  Text
 SVG Text element. http://www.w3.org/TR/SVG/text.html#TextElement. More...
class  Group
 Represents a group of SVG elements. http://www.w3.org/TR/SVG/struct.html#Groups. More...
class  Doc
 Represents an SVG Document. See SVG Document Structure http://www.w3.org/TR/SVG/struct.html. More...
class  Exc
 SVG Exception base-class. More...
class  ValueExc
class  FloatParseExc
class  PathParseExc
class  TransformParseExc
class  ExcChildNotFound

Typedefs

typedef std::function< bool(const
Node &, Style *) 
RenderVisitor )
typedef std::shared_ptr< TextSpanTextSpanRef
typedef std::shared_ptr< DocDocRef

Enumerations

enum  FillRule { FILL_RULE_NONZERO, FILL_RULE_EVENODD }
enum  LineCap { LINE_CAP_BUTT, LINE_CAP_ROUND, LINE_CAP_SQUARE }
enum  LineJoin { LINE_JOIN_MITER, LINE_JOIN_ROUND, LINE_JOIN_BEVEL }
enum  FontWeight {
  WEIGHT_100, WEIGHT_200, WEIGHT_300, WEIGHT_400,
  WEIGHT_NORMAL = WEIGHT_400, WEIGHT_500, WEIGHT_600, WEIGHT_700,
  WEIGHT_BOLD = WEIGHT_700, WEIGHT_800, WEIGHT_900
}

Functions

void ellipticalArc (Shape2d &path, float x1, float y1, float x2, float y2, float rx, float ry, float xAxisRotation, bool largeArcFlag, bool sweepFlag)
char readNextCommand (const char **sInOut)
bool readFlag (const char **sInOut)
bool nextItemIsFloat (const char *s)
Shape2d parsePath (const std::string &p)
vector< Vec2fparsePointList (const std::string &p)

Typedef Documentation

typedef std::function<bool(const Node&, svg::Style *) cinder::svg::RenderVisitor)
typedef std::shared_ptr<TextSpan> cinder::svg::TextSpanRef
typedef std::shared_ptr<Doc> cinder::svg::DocRef

Enumeration Type Documentation

Enumerator:
FILL_RULE_NONZERO 
FILL_RULE_EVENODD 
Enumerator:
LINE_CAP_BUTT 
LINE_CAP_ROUND 
LINE_CAP_SQUARE 
Enumerator:
LINE_JOIN_MITER 
LINE_JOIN_ROUND 
LINE_JOIN_BEVEL 
Enumerator:
WEIGHT_100 
WEIGHT_200 
WEIGHT_300 
WEIGHT_400 
WEIGHT_NORMAL 
WEIGHT_500 
WEIGHT_600 
WEIGHT_700 
WEIGHT_BOLD 
WEIGHT_800 
WEIGHT_900 

Function Documentation

void cinder::svg::ellipticalArc ( Shape2d &  path,
float  x1,
float  y1,
float  x2,
float  y2,
float  rx,
float  ry,
float  xAxisRotation,
bool  largeArcFlag,
bool  sweepFlag 
)
char cinder::svg::readNextCommand ( const char **  sInOut  ) 
bool cinder::svg::readFlag ( const char **  sInOut  ) 
bool cinder::svg::nextItemIsFloat ( const char *  s  ) 
Shape2d cinder::svg::parsePath ( const std::string &  p  ) 
vector<Vec2f> cinder::svg::parsePointList ( const std::string &  p  )