Represents an SVG Document. See SVG Document Structure http://www.w3.org/TR/SVG/struct.html .


Public Member Functions

  • Doc ()
  • Doc (const fs::path &filePath)
  • Doc (DataSourceRef dataSource, const fs::path &filePath=fs::path())

Static Public Member Functions

  • create (const fs::path &filePath)
  • create (DataSourceRef dataSource, const fs::path &filePath=fs::path())
  • createFromSvgz (DataSourceRef dataSource, const fs::path &filePath=fs::path())

Protected Member Functions

  • nodeUnderPoint (const vec2 &absolutePoint, const mat3 &parentInverseMatrix) const
  • getMergedShape2d () const
  • calcBoundingBox () const
  • bool
    isDrawable () const
  • void
    parse (const XmlTree &xml)
  • void
    startRender (Renderer &renderer, const Style &style) const
  • void
    finishRender (Renderer &renderer, const Style &style) const
  • void
    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)
  • std::string
    findStyleValue (const std::string &styleString, const std::string &key)

Protected Attributes

  • std::list< Node * >
    mChildren
  • std::shared_ptr< Group >
    mDefs
  • mParent
  • std::string
    mId
  • mStyle
  • bool
    mSpecifiesTransform
  • mat3
    mTransform
  • bool
    mBoundingBoxCached
  • mBoundingBox