Geometrize  1.0
An application for geometrizing images into geometric primitives
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
Public Member Functions | List of all members
geometrize::scene::SvgItem Class Reference

The SvgItem class represents an SVG graphic that is drawn as part of a scene. More...

#include <svgitem.h>

Inheritance diagram for geometrize::scene::SvgItem:
Inheritance graph
[legend]
Collaboration diagram for geometrize::scene::SvgItem:
Collaboration graph
[legend]

Public Member Functions

 SvgItem (const QByteArray &data)
 
virtual ~SvgItem ()
 

Detailed Description

The SvgItem class represents an SVG graphic that is drawn as part of a scene.

Constructor & Destructor Documentation

geometrize::scene::SvgItem::SvgItem ( const QByteArray &  data)
explicit
12  : QGraphicsSvgItem{}
13 {
14  setSharedRenderer(new QSvgRenderer(data));
15  setFlag(ItemIsMovable, false);
16 }
geometrize::scene::SvgItem::~SvgItem ( )
virtual
19 {
20  delete renderer();
21 }

The documentation for this class was generated from the following files: