Krita Source Code Documentation
Loading...
Searching...
No Matches
ImageShape Class Reference

#include <ImageShape.h>

+ Inheritance diagram for ImageShape:

Public Member Functions

KoShapecloneShape () const override
 creates a deep copy of the shape or shape's subtree
 
QImage image () const
 
 ImageShape ()
 
bool loadSvg (const QDomElement &element, SvgLoadingContext &context) override
 Loads data from specified svg element.
 
void paint (QPainter &painter) const override
 Paint the shape fill The class extending this one is responsible for painting itself. painter is expected to be preconfigured to work in "document" pixels.
 
 Private ()
 
 Private (const Private &rhs)
 
bool saveSvg (SvgSavingContext &context) override
 Saves data utilizing specified svg saving context.
 
void setImage (const QImage &img)
 
void setSize (const QSizeF &size) override
 Resize the shape.
 
void setViewBoxTransform (const QTransform &tf)
 
QTransform viewBoxTransform () const
 
 ~ImageShape () override
 
- Public Member Functions inherited from KoTosContainer
KoShapecreateTextShape (KoDocumentResourceManager *documentResources=0)
 
 KoTosContainer ()
 
virtual bool loadText (const QDomElement &element)
 
void paintComponent (QPainter &painter) const override
 Paint the component Implement this method to allow the shape to paint itself, just like the KoShape::paint() method does.
 
ResizeBehavior resizeBehavior () const
 
void setPlainText (const QString &text)
 
void setResizeBehavior (ResizeBehavior resizeBehavior)
 
void setRunThrough (short int runThrough) override
 
void setTextAlignment (Qt::Alignment alignment)
 
Qt::Alignment textAlignment () const
 
 ~KoTosContainer () override
 
- Public Member Functions inherited from KoShapeContainer
void addShape (KoShape *shape)
 
bool inheritsTransform (const KoShape *shape) const
 
bool isClipped (const KoShape *child) const
 
 KoShapeContainer (KoShapeContainerModel *model=0)
 
KoShapeContainerModelmodel () const
 
void paint (QPainter &painter) const override
 reimplemented
 
 Private (const Private &rhs, KoShapeContainer *q)
 
 Private (KoShapeContainer *q)
 
void removeShape (KoShape *shape)
 
void setClipped (const KoShape *child, bool clipping)
 
void setInheritsTransform (const KoShape *shape, bool inherit)
 
int shapeCount () const
 
ShapeInterfaceshapeInterface ()
 
QList< KoShape * > shapes () const
 
virtual void update () const
 
void update () const override
 reimplemented
 
 ~KoShapeContainer () override
 
virtual ~Private ()
 
- Public Member Functions inherited from KoShape
QRectF absoluteOutlineRect () const
 
QPointF absolutePosition (KoFlake::AnchorPosition anchor=KoFlake::Center) const
 
QTransform absoluteTransformation () const
 
bool addDependee (KoShape *shape)
 
QString additionalAttribute (const QString &name) const
 
void addShapeChangeListener (ShapeChangeListener *listener)
 
KoShapeAnchoranchor () const
 
void applyAbsoluteTransformation (const QTransform &matrix)
 
void applyTransformation (const QTransform &matrix)
 
virtual QSharedPointer< KoShapeBackgroundbackground () const
 
virtual QRectF boundingRect () const
 Get the bounding box of the shape.
 
virtual ChildZOrderPolicy childZOrderPolicy ()
 
KoClipMaskclipMask () const
 Returns the currently set clip mask or 0 if there is no clip mask set.
 
KoClipPathclipPath () const
 Returns the currently set clip path or 0 if there is no clip path set.
 
KoShapecloneShapeAndBakeAbsoluteTransform () const
 creates a deep copy of the shape/shapes tree and bakes the absolute transform of this into the resulting shape.
 
void copySettings (const KoShape *shape)
 
QList< KoShape * > dependees () const
 Returns list of shapes depending on this shape.
 
QPointF documentToShape (const QPointF &point) const
 Transforms point from document coordinates to shape coordinates.
 
QRectF documentToShape (const QRectF &rect) const
 Transform rect from document coordinates to shape coordinates.
 
KoFilterEffectStackfilterEffectStack () const
 
bool hasAdditionalAttribute (const QString &name) const
 
bool hasCommonParent (const KoShape *shape) const
 
bool hasDependee (KoShape *shape) const
 Returns if the given shape is dependent on this shape.
 
virtual bool hasTransparency () const
 
virtual bool hitTest (const QPointF &position) const
 Check if the shape is hit on position.
 
QString hyperLink () const
 
bool inheritBackground () const
 inheritBackground shows if the shape inherits background from its parent
 
bool inheritPaintOrder () const
 inheritPaintOrder
 
bool inheritsTransformFromAny (const QList< KoShape * > ancestorsInQuestion) const
 inheritsTransformFromAny checks if the shape inherits transformation from any of the shapes listed in ancestorsInQuestion. The inheritance is checked in recursive way.
 
bool inheritStroke () const
 inheritStroke shows if the shape inherits the stroke from its parent
 
bool isContentProtected () const
 
bool isGeometryProtected () const
 
bool isPrintable () const
 
bool isSelectable () const
 
virtual bool isShapeEditable (bool recursive=true) const
 checks recursively if the shape or one of its parents is not visible or locked
 
bool isVisible (bool recursive=true) const
 
bool keepAspectRatio () const
 
 KoShape ()
 Constructor.
 
qreal minimumHeight () const
 
QString name () const
 
void notifyChanged ()
 
virtual QPainterPath outline () const
 
virtual QRectF outlineRect () const
 
virtual void paintMarkers (QPainter &painter) const
 paintStroke paints the shape's markers
 
virtual QVector< PaintOrderpaintOrder () const
 paintOrder
 
virtual void paintStroke (QPainter &painter) const
 paintStroke paints the shape's stroked outline
 
KoShapeContainerparent () const
 
QPointF position () const
 Get the position of the shape in pt.
 
void removeAdditionalAttribute (const QString &name)
 
void removeAdditionalStyleAttribute (const char *name)
 
void removeDependee (KoShape *shape)
 
void removeShapeChangeListener (ShapeChangeListener *listener)
 
void rotate (qreal angle)
 Rotate the shape (relative)
 
qreal rotation () const
 
int runThrough () const
 
void scale (qreal sx, qreal sy)
 Scale the shape using the zero-point which is the top-left corner.
 
void setAbsolutePosition (const QPointF &newPosition, KoFlake::AnchorPosition anchor=KoFlake::Center)
 
void setAdditionalAttribute (const QString &name, const QString &value)
 
void setAdditionalStyleAttribute (const char *name, const QString &value)
 
void setAnchor (KoShapeAnchor *anchor)
 
virtual void setBackground (QSharedPointer< KoShapeBackground > background)
 
void setClipMask (KoClipMask *clipMask)
 Sets a new clip mask, removing the old one. The mask is owned by the shape.
 
void setClipPath (KoClipPath *clipPath)
 Sets a new clip path, removing the old one.
 
void setContentProtected (bool protect)
 
void setFilterEffectStack (KoFilterEffectStack *filterEffectStack)
 Sets the new filter effect stack, removing the old one.
 
void setGeometryProtected (bool on)
 
void setHyperLink (const QString &hyperLink)
 
void setInheritBackground (bool value)
 setInheritBackground marks a shape as inheriting the background from the parent shape. NOTE: The currently selected background is destroyed.
 
void setInheritPaintOrder (bool value)
 setInheritPaintOrder set inherit paint order.
 
void setInheritStroke (bool value)
 setInheritStroke marks a shape as inheriting the stroke from the parent shape. NOTE: The currently selected stroke is destroyed.
 
void setKeepAspectRatio (bool keepAspect)
 
void setMinimumHeight (qreal height)
 
void setName (const QString &name)
 
virtual void setPaintOrder (PaintOrder first, PaintOrder second)
 setPaintOrder set the paint order. As there's only three entries in any given paintorder, you only need to have the first and second entry to set it.
 
void setParent (KoShapeContainer *parent)
 
virtual void setPosition (const QPointF &position)
 Set the position of the shape in pt.
 
void setPrintable (bool on)
 
virtual void setResolution (qreal xRes, qreal yRes)
 
void setSelectable (bool selectable)
 
void setShadow (KoShapeShadow *shadow)
 Sets the new shadow, removing the old one.
 
void setShapeId (const QString &id)
 
virtual void setStroke (KoShapeStrokeModelSP stroke)
 
void setTextRunAroundContour (TextRunAroundContour contour)
 
void setTextRunAroundDistanceBottom (qreal distance)
 
void setTextRunAroundDistanceLeft (qreal distance)
 
void setTextRunAroundDistanceRight (qreal distance)
 
void setTextRunAroundDistanceTop (qreal distance)
 
void setTextRunAroundSide (TextRunAroundSide side, RunThroughLevel runThrough=Background)
 
void setTextRunAroundThreshold (qreal threshold)
 
void setToolDelegates (const QSet< KoShape * > &delegates)
 
void setTransformation (const QTransform &matrix)
 
void setTransparency (qreal transparency)
 
void setUserData (KoShapeUserData *userData)
 
void setVisible (bool on)
 
void setZIndex (qint16 zIndex)
 
KoShapeShadowshadow () const
 Returns the currently set shadow or 0 if there is no shadow set.
 
virtual QPainterPath shadowOutline () const
 
QString shapeId () const
 
QPointF shapeToDocument (const QPointF &point) const
 Transforms point from shape coordinates to document coordinates.
 
QRectF shapeToDocument (const QRectF &rect) const
 Transforms rect from shape coordinates to document coordinates.
 
void shear (qreal sx, qreal sy)
 Shear the shape The shape will be sheared using the zero-point which is the top-left corner.
 
virtual QSizeF size () const
 Get the size of the shape in pt.
 
virtual KoSnapData snapData () const
 Returns additional snap data the shape wants to have snapping to.
 
virtual KoShapeStrokeModelSP stroke () const
 
KoInsets strokeInsets () const
 
TextRunAroundContour textRunAroundContour () const
 
qreal textRunAroundDistanceBottom () const
 
qreal textRunAroundDistanceLeft () const
 
qreal textRunAroundDistanceRight () const
 
qreal textRunAroundDistanceTop () const
 
TextRunAroundSide textRunAroundSide () const
 
qreal textRunAroundThreshold () const
 
QSet< KoShape * > toolDelegates () const
 
QTransform transformation () const
 Returns the shapes local transformation matrix.
 
qreal transparency (bool recursive=false) const
 
virtual void updateAbsolute (const QRectF &rect) const
 
KoShapeUserDatauserData () const
 
virtual void waitUntilReady (bool asynchronous=true) const
 
qint16 zIndex () const
 
virtual ~KoShape ()
 Destructor.
 
- Public Member Functions inherited from SvgShape
void saveMetadata (SvgSavingContext &context)
 
virtual ~SvgShape ()
 

Public Attributes

QImage image
 
QScopedPointer< SvgUtil::PreserveAspectRatioParserratioParser
 
QTransform viewBoxTransform
 
- Public Attributes inherited from KoShapeContainer
KoShapeContainerModelmodel
 
KoShapeContainer::ShapeInterface shapeInterface
 

Private Member Functions

 ImageShape (const ImageShape &rhs)
 

Private Attributes

QSharedDataPointer< Privatem_d
 

Additional Inherited Members

- Public Types inherited from KoTosContainer
enum  ResizeBehavior { TextFollowsSize , FollowTextSize , IndependentSizes , TextFollowsPreferredTextRect }
 different kinds of resizing behavior to determine how to treat text overflow More...
 
- Public Types inherited from KoShape
enum  ChangeType {
  PositionChanged , RotationChanged , ScaleChanged , ShearChanged ,
  SizeChanged , GenericMatrixChange , KeepAspectRatioChange , ParentChanged ,
  Deleted , StrokeChanged , BackgroundChanged , ShadowChanged ,
  BorderChanged , ParameterChanged , ContentChanged , TextRunAroundChanged ,
  ChildChanged , ConnectionPointChanged , ClipPathChanged , ClipMaskChanged ,
  TransparencyChanged
}
 Used by shapeChanged() to select which change was made. More...
 
enum  ChildZOrderPolicy { ChildZDefault , ChildZParentChild = ChildZDefault , ChildZPassThrough }
 Used by compareShapeZIndex() to order shapes. More...
 
enum  PaintOrder { Fill , Stroke , Markers }
 
enum  RunThroughLevel { Background , Foreground }
 
enum  TextRunAroundContour { ContourBox , ContourFull , ContourOutside }
 The behavior text should do when intersecting this shape. More...
 
enum  TextRunAroundSide {
  BiggestRunAroundSide , LeftRunAroundSide , RightRunAroundSide , EnoughRunAroundSide ,
  BothRunAroundSide , NoRunAround , RunThrough
}
 The behavior text should do when intersecting this shape. More...
 
- Static Public Member Functions inherited from KoShape
static QRectF absoluteOutlineRect (const QList< KoShape * > &shapes)
 
static QRectF boundingRect (const QList< KoShape * > &shapes)
 
static bool compareShapeZIndex (KoShape *s1, KoShape *s2)
 
static KisHandlePainterHelper createHandlePainterHelperDocument (QPainter *painter, KoShape *shape, qreal handleRadius, int decorationThickness)
 
static KisHandlePainterHelper createHandlePainterHelperView (QPainter *painter, KoShape *shape, const KoViewConverter &converter, qreal handleRadius=0.0, int decorationThickness=1)
 
static QVector< PaintOrderdefaultPaintOrder ()
 default paint order as per SVG specification
 
static QList< KoShape * > linearizeSubtree (const QList< KoShape * > &shapes)
 
static QList< KoShape * > linearizeSubtreeSorted (const QList< KoShape * > &shapes)
 
- Static Public Attributes inherited from KoShape
static const qint16 maxZIndex = std::numeric_limits<qint16>::max()
 
static const qint16 minZIndex = std::numeric_limits<qint16>::min()
 
- Protected Member Functions inherited from KoTosContainer
 KoTosContainer (const KoTosContainer &rhs)
 
QRectF preferredTextRect () const
 
void setPreferredTextRect (const QRectF &rect)
 
void shapeChanged (ChangeType type, KoShape *shape=0) override
 
KoShapetextShape () const
 
- Protected Member Functions inherited from KoShapeContainer
 KoShapeContainer (const KoShapeContainer &rhs)
 
void setModel (KoShapeContainerModel *model)
 
void setModelInit (KoShapeContainerModel *model)
 
virtual void shapeCountChanged ()
 
- Protected Member Functions inherited from KoShape
 KoShape (const KoShape &rhs)
 
QList< ShapeChangeListener * > listeners () const
 
void setSizeImpl (const QSizeF &size) const
 
void shapeChangedPriv (KoShape::ChangeType type)
 
QTransform transform () const
 return the current matrix that contains the rotation/scale/position of this shape
 

Detailed Description

Definition at line 25 of file ImageShape.cpp.

Constructor & Destructor Documentation

◆ ImageShape() [1/2]

ImageShape::ImageShape ( )

Definition at line 42 of file ImageShape.cpp.

43 : m_d(new Private)
44{
45}
QSharedDataPointer< Private > m_d
Definition ImageShape.h:44

◆ ~ImageShape()

ImageShape::~ImageShape ( )
override

Definition at line 53 of file ImageShape.cpp.

54{
55}

◆ ImageShape() [2/2]

ImageShape::ImageShape ( const ImageShape & rhs)
private

Definition at line 47 of file ImageShape.cpp.

48 : KoTosContainer(rhs),
49 m_d(rhs.m_d)
50{
51}

Member Function Documentation

◆ cloneShape()

KoShape * ImageShape::cloneShape ( ) const
overridevirtual

creates a deep copy of the shape or shape's subtree

Returns
a cloned shape

Reimplemented from KoShape.

Definition at line 57 of file ImageShape.cpp.

58{
59 return new ImageShape(*this);
60}

References ImageShape().

◆ image()

QImage ImageShape::image ( ) const

◆ loadSvg()

bool ImageShape::loadSvg ( const QDomElement & element,
SvgLoadingContext & context )
overridevirtual

Loads data from specified svg element.

Reimplemented from SvgShape.

Definition at line 107 of file ImageShape.cpp.

108{
109 const qreal x = SvgUtil::parseUnitX(context.currentGC(), context.resolvedProperties(), element.attribute("x"));
110 const qreal y = SvgUtil::parseUnitY(context.currentGC(), context.resolvedProperties(), element.attribute("y"));
111 const qreal w = SvgUtil::parseUnitX(context.currentGC(), context.resolvedProperties(), element.attribute("width"));
112 const qreal h = SvgUtil::parseUnitY(context.currentGC(), context.resolvedProperties(), element.attribute("height"));
113
114 setSize(QSizeF(w, h));
115 setPosition(QPointF(x, y));
116
117 if (w == 0.0 || h == 0.0) {
118 setVisible(false);
119 }
120
121 QString fileName = element.attribute("xlink:href");
122
123 QByteArray data;
124
125 if (fileName.startsWith("data:")) {
126
127 QRegularExpression re("data:(.+?);base64,(.+)");
128 QRegularExpressionMatch match = re.match(fileName);
129
130 data = match.captured(2).toLatin1();
131 data = QByteArray::fromBase64(data);
132 } else {
133 data = context.fetchExternalFile(fileName);
134 }
135
136 if (!data.isEmpty()) {
137 QBuffer buffer(&data);
138 m_d->image.load(&buffer, "");
139 }
140
141 const QString aspectString = element.attribute("preserveAspectRatio", "xMidYMid meet");
142 m_d->ratioParser.reset(new SvgUtil::PreserveAspectRatioParser(aspectString));
143
144 if (!m_d->image.isNull()) {
145
146 m_d->viewBoxTransform =
147 QTransform::fromScale(w / m_d->image.width(), h / m_d->image.height());
148
149 SvgUtil::parseAspectRatio(*m_d->ratioParser,
150 QRectF(QPointF(), size()),
151 QRect(QPoint(), m_d->image.size()),
152 &m_d->viewBoxTransform);
153 }
154
155 if (m_d->ratioParser->defer) {
156 // TODO:
157 }
158
159 return true;
160}
virtual QSizeF size() const
Get the size of the shape in pt.
Definition KoShape.cpp:820
virtual void setPosition(const QPointF &position)
Set the position of the shape in pt.
Definition KoShape.cpp:295
void setVisible(bool on)
Definition KoShape.cpp:972
QByteArray fetchExternalFile(const QString &url)
SvgGraphicsContext * currentGC() const
Returns the current graphics context.
KoSvgTextProperties resolvedProperties() const
These are the text properties, completely resolved, ensuring that everything is inherited and the siz...
static qreal parseUnitX(SvgGraphicsContext *gc, const KoSvgTextProperties &resolved, const QString &unit)
parses a length attribute in x-direction
Definition SvgUtil.cpp:304
static void parseAspectRatio(const PreserveAspectRatioParser &p, const QRectF &elementBounds, const QRectF &viewRect, QTransform *_viewTransform)
Definition SvgUtil.cpp:190
static qreal parseUnitY(SvgGraphicsContext *gc, const KoSvgTextProperties &resolved, const QString &unit)
parses a length attribute in y-direction
Definition SvgUtil.cpp:313
void setSize(const QSizeF &size) override
Resize the shape.

References SvgLoadingContext::currentGC(), SvgLoadingContext::fetchExternalFile(), m_d, SvgUtil::parseAspectRatio(), SvgUtil::parseUnitX(), SvgUtil::parseUnitY(), SvgLoadingContext::resolvedProperties(), KoShape::setPosition(), setSize(), KoShape::setVisible(), and KoShape::size().

◆ paint()

void ImageShape::paint ( QPainter & painter) const
overridevirtual

Paint the shape fill The class extending this one is responsible for painting itself. painter is expected to be preconfigured to work in "document" pixels.

Parameters
painterused for painting the shape

Implements KoShape.

Definition at line 62 of file ImageShape.cpp.

63{
64 KisQPainterStateSaver saver(&painter);
65
66 const QRectF myrect(QPointF(), size());
67
68 painter.setRenderHint(QPainter::SmoothPixmapTransform);
69 painter.setClipRect(QRectF(QPointF(), size()), Qt::IntersectClip);
70 painter.setTransform(m_d->viewBoxTransform, true);
71 painter.drawImage(QPoint(), m_d->image);
72}

References m_d, and KoShape::size().

◆ Private() [1/2]

ImageShape::Private ( )
inline

Definition at line 27 of file ImageShape.cpp.

27{}

◆ Private() [2/2]

ImageShape::Private ( const Private & rhs)
inline

Definition at line 28 of file ImageShape.cpp.

29 : QSharedData(),
30 image(rhs.image),
31 ratioParser(rhs.ratioParser ? new SvgUtil::PreserveAspectRatioParser(*rhs.ratioParser) : 0),
33 {
34 }
QTransform viewBoxTransform
QImage image
QScopedPointer< SvgUtil::PreserveAspectRatioParser > ratioParser

◆ saveSvg()

bool ImageShape::saveSvg ( SvgSavingContext & context)
overridevirtual

Saves data utilizing specified svg saving context.

Reimplemented from SvgShape.

Definition at line 79 of file ImageShape.cpp.

80{
81 const QString uid = context.createUID("image");
82
83 context.shapeWriter().startElement("image");
84 context.shapeWriter().addAttribute("id", uid);
86 context.shapeWriter().addAttribute("width", QString("%1px").arg(KisDomUtils::toString(size().width())));
87 context.shapeWriter().addAttribute("height", QString("%1px").arg(KisDomUtils::toString(size().height())));
88
89 QString aspectString = m_d->ratioParser? m_d->ratioParser->toString(): QString();
90 if (!aspectString.isEmpty()) {
91 context.shapeWriter().addAttribute("preserveAspectRatio", aspectString);
92 }
93
94 QBuffer buffer;
95 buffer.open(QIODevice::WriteOnly);
96 if (m_d->image.save(&buffer, "PNG")) {
97 const QString mimeType = KisMimeDatabase::mimeTypeForSuffix("*.png");
98 context.shapeWriter().addAttribute("xlink:href", "data:"+ mimeType + ";base64," + buffer.data().toBase64());
99 }
100 SvgStyleWriter::saveMetadata(this, context);
101
102 context.shapeWriter().endElement(); // image
103
104 return true;
105}
static QString mimeTypeForSuffix(const QString &suffix)
Find the mimetype for a given extension. The extension may have the form "*.xxx" or "xxx".
QTransform transformation() const
Returns the shapes local transformation matrix.
Definition KoShape.cpp:424
QString createUID(const QString &base)
Create a unique id from the specified base text.
QScopedPointer< KoXmlWriter > shapeWriter
static void saveMetadata(const KoShape *shape, SvgSavingContext &context)
static void writeTransformAttributeLazy(const QString &name, const QTransform &transform, KoXmlWriter &shapeWriter)
Writes a transform as an attribute name iff the transform is not empty.
Definition SvgUtil.cpp:124
QString toString(const QString &value)

References SvgSavingContext::createUID(), m_d, KisMimeDatabase::mimeTypeForSuffix(), SvgStyleWriter::saveMetadata(), SvgSavingContext::shapeWriter, KoShape::size(), KisDomUtils::toString(), KoShape::transformation(), and SvgUtil::writeTransformAttributeLazy().

◆ setImage()

void ImageShape::setImage ( const QImage & img)

Definition at line 162 of file ImageShape.cpp.

163{
164 if (m_d->image != img) {
165 m_d->image = img;
167 }
168}
@ ContentChanged
the content of the shape changed e.g. a new image inside a pixmap/text change inside a textshape
Definition KoShape.h:110
void shapeChanged(ChangeType type, KoShape *shape=0) override

References KoShape::ContentChanged, m_d, and KoTosContainer::shapeChanged().

◆ setSize()

void ImageShape::setSize ( const QSizeF & size)
overridevirtual

Resize the shape.

Parameters
sizethe new size of the shape. This is different from scaling as scaling is a so called secondary operation which is comparable to zooming in instead of changing the size of the basic shape. Easiest example of this difference is that using this method will not distort the size of pattern-fills and strokes.

Reimplemented from KoShape.

Definition at line 74 of file ImageShape.cpp.

75{
77}
virtual void setSize(const QSizeF &size)
Resize the shape.
Definition KoShape.cpp:276

References KoShape::setSize(), and KoShape::size().

◆ setViewBoxTransform()

void ImageShape::setViewBoxTransform ( const QTransform & tf)

Definition at line 175 of file ImageShape.cpp.

176{
177 if (m_d->viewBoxTransform != tf) {
178 m_d->viewBoxTransform = tf;
180 }
181}
@ GenericMatrixChange
used after the matrix was changed without knowing which property explicitly changed
Definition KoShape.h:101

References KoShape::GenericMatrixChange, m_d, and KoTosContainer::shapeChanged().

◆ viewBoxTransform()

QTransform ImageShape::viewBoxTransform ( ) const

Member Data Documentation

◆ image

QImage ImageShape::image

Definition at line 36 of file ImageShape.cpp.

◆ m_d

QSharedDataPointer<Private> ImageShape::m_d
private

Definition at line 44 of file ImageShape.h.

◆ ratioParser

QScopedPointer<SvgUtil::PreserveAspectRatioParser> ImageShape::ratioParser

Definition at line 37 of file ImageShape.cpp.

◆ viewBoxTransform

QTransform ImageShape::viewBoxTransform

Definition at line 38 of file ImageShape.cpp.


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