Geometrize  1.0
An application for geometrizing images into geometric primitives
Public Member Functions | List of all members
geometrize::scene::AreaOfInfluenceShapeItem Class Reference

The AreaOfInfluenceShapeItem class represents a graphical visualization of a shape that the user interacts with to control where shapes are spawned/mutated as an image is geometrized. More...

#include <areaofinfluenceshapeitem.h>

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

Public Member Functions

 AreaOfInfluenceShapeItem (const QByteArray &data)
 
virtual ~AreaOfInfluenceShapeItem ()
 
- Public Member Functions inherited from geometrize::scene::SvgItem
 SvgItem (const QByteArray &data)
 
virtual ~SvgItem ()
 

Detailed Description

The AreaOfInfluenceShapeItem class represents a graphical visualization of a shape that the user interacts with to control where shapes are spawned/mutated as an image is geometrized.

Constructor & Destructor Documentation

◆ AreaOfInfluenceShapeItem()

geometrize::scene::AreaOfInfluenceShapeItem::AreaOfInfluenceShapeItem ( const QByteArray &  data)
explicit
12  : SvgItem{data}
13 {
14  setAcceptDrops(false);
15  setAcceptHoverEvents(false);
16  setAcceptTouchEvents(false);
17  setFlag(ItemIsFocusable, false);
18  setFlag(QGraphicsItem::ItemClipsToShape, true);
19  setCacheMode(QGraphicsItem::NoCache);
20  setEnabled(false);
21  setZValue(100); // Should be on top of everything else except the target pixmap item (same size as the target pixmap image) which must be topmost to receive events
22 }

◆ ~AreaOfInfluenceShapeItem()

geometrize::scene::AreaOfInfluenceShapeItem::~AreaOfInfluenceShapeItem ( )
virtual
25 {
26 }

The documentation for this class was generated from the following files:
geometrize::scene::SvgItem::SvgItem
SvgItem(const QByteArray &data)
Definition: svgitem.cpp:12