Swiftray  1.0
BitmapShape Class Reference

#include <bitmap-shape.h>

Inheritance diagram for BitmapShape:
Shape

Public Member Functions

 BitmapShape ()
 
 BitmapShape (const BitmapShape &orig)
 
 BitmapShape (QImage &image)
 
ShapePtr clone () const override
 
bool hitTest (QPointF global_coord, qreal tolerance) const override
 
bool hitTest (QRectF global_coord_rect) const override
 
QImage & image () const
 
void paint (QPainter *painter) const override
 
const QPixmap * pixmap () const
 
Shape::Type type () const override
 
- Public Member Functions inherited from Shape
 Shape () noexcept
 
virtual ~Shape ()
 
void applyTransform (const QTransform &transform)
 
QRectF boundingRect () const
 
void flushCache ()
 
QTransform globalTransform () const
 
bool hasLayer () const
 
bool isLayerLocked () const
 
bool isParentSelected () const
 
Layerlayer () const
 
virtual operator QString ()
 
Shapeparent () const
 
QPointF pos () const
 
QPolygonF rotatedBBox () const
 
qreal rotation () const
 
bool selected () const
 
void setLayer (Layer *layer)
 
void setParent (Shape *parent)
 
void setRotation (qreal r)
 
void setSelected (bool selected)
 
void setTempTransform (const QTransform &transform)
 
void setTransform (const QTransform &transform)
 
const QTransform & tempTransform () const
 
const QTransform & transform () const
 
qreal x () const
 
qreal y () const
 

Friends

class DocumentSerializer
 

Additional Inherited Members

- Public Types inherited from Shape
enum class  Type {
  None , Path , Bitmap , Text ,
  Group
}
 
- Protected Attributes inherited from Shape
QRectF bbox_
 
QPolygonF rotated_bbox_
 
bool selected_
 
QTransform temp_transform_
 
QTransform transform_
 

Constructor & Destructor Documentation

◆ BitmapShape() [1/3]

BitmapShape::BitmapShape ( )

◆ BitmapShape() [2/3]

BitmapShape::BitmapShape ( QImage &  image)

◆ BitmapShape() [3/3]

BitmapShape::BitmapShape ( const BitmapShape orig)

Member Function Documentation

◆ clone()

ShapePtr BitmapShape::clone ( ) const
overridevirtual

Reimplemented from Shape.

◆ hitTest() [1/2]

bool BitmapShape::hitTest ( QPointF  global_coord,
qreal  tolerance 
) const
overridevirtual

Reimplemented from Shape.

◆ hitTest() [2/2]

bool BitmapShape::hitTest ( QRectF  global_coord_rect) const
overridevirtual

Reimplemented from Shape.

◆ image()

QImage & BitmapShape::image ( ) const

◆ paint()

void BitmapShape::paint ( QPainter *  painter) const
overridevirtual

Reimplemented from Shape.

◆ pixmap()

const QPixmap * BitmapShape::pixmap ( ) const

◆ type()

Shape::Type BitmapShape::type ( ) const
overridevirtual

Returns shape type in Shape::Type

Reimplemented from Shape.

Friends And Related Function Documentation

◆ DocumentSerializer

friend class DocumentSerializer
friend

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