Gradient /

#includecinder/svg/Svg.h

Base class for SVG Gradients. See SVG Gradients: http://www.w3.org/TR/SVG/pservers.html#Gradients .


Public Member Functions

  • Gradient (const Node *parent, const XmlTree &xml)
  • bool
    useObjectBoundingBox () const
  • bool
    specifiesTransform () const

Protected Member Functions

  • renderSelf (Renderer &) const
  • parse (const Node *parent, const XmlTree &xml)
  • copyAttributesFrom (const Gradient &rhs)
  • asPaint () const
  • bool
    isDrawable () const
  • startRender (Renderer &renderer, const Style &style) const
  • finishRender (Renderer &renderer, const Style &style) const
  • calcBoundingBox () const
  • parseStyle (const std::string &value)
  • parsePaint (const char *value, bool *specified, const Node *parentNode)
  • mat3
    parseTransform (const std::string &value)
  • bool
    parseTransformComponent (const char **c, mat3 *result)
  • findStyleValue (const std::string &styleString, const std::string &key)

Protected Attributes

  • std::vector< Stop >
    mStops
  • vec2
    mCoords0
  • vec2
    mCoords1
  • bool
    mUseObjectBoundingBox
  • bool
    mSpecifiesTransform
  • mat3
    mTransform
  • const Node *
    mParent
  • mId
  • mStyle
  • bool
    mBoundingBoxCached
  • mBoundingBox