Swiftray  1.0
GroupShape Class Reference

#include <group-shape.h>

Inheritance diagram for GroupShape:
Shape

Public Member Functions

 GroupShape ()
 
 GroupShape (QList< ShapePtr > &children)
 
const QList< ShapePtr > & children () const
 
ShapePtr clone () const override
 
bool hitTest (QPointF global_coord, qreal tolerance) const override
 
bool hitTest (QRectF global_coord_rect) const override
 
void paint (QPainter *painter) const override
 
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
 

Protected Member Functions

CacheStackcacheStack () const
 

Friends

class CacheStack
 
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

◆ GroupShape() [1/2]

GroupShape::GroupShape ( )

◆ GroupShape() [2/2]

GroupShape::GroupShape ( QList< ShapePtr > &  children)

Member Function Documentation

◆ cacheStack()

CacheStack & GroupShape::cacheStack ( ) const
protected

◆ children()

const QList< ShapePtr > & GroupShape::children ( ) const

◆ clone()

ShapePtr GroupShape::clone ( ) const
overridevirtual

Reimplemented from Shape.

◆ hitTest() [1/2]

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

Reimplemented from Shape.

◆ hitTest() [2/2]

bool GroupShape::hitTest ( QRectF  global_coord_rect) const
overridevirtual

Reimplemented from Shape.

◆ paint()

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

Reimplemented from Shape.

◆ type()

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

Returns shape type in Shape::Type

Reimplemented from Shape.

Friends And Related Function Documentation

◆ CacheStack

friend class CacheStack
friend

◆ DocumentSerializer

friend class DocumentSerializer
friend

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