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
  • parse (const XmlTree &xml)
  • startRender (Renderer &renderer, const Style &style) const
  • finishRender (Renderer &renderer, const Style &style) 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::list< Node * >
    mChildren
  • std::shared_ptr< Group >
    mDefs
  • const Node *
    mParent
  • mId
  • mStyle
  • bool
    mSpecifiesTransform
  • mat3
    mTransform
  • bool
    mBoundingBoxCached
  • mBoundingBox