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

The ImageTaskPixmapScene class models a graphics scene for viewing the pixmap-based results of image tasks. More...

#include <imagetaskpixmapscene.h>

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

Classes

class  ImageTaskPixmapSceneImpl
 

Public Member Functions

 ImageTaskPixmapScene (QObject *parent=nullptr)
 
virtual ~ImageTaskPixmapScene ()
 
void setWorkingPixmap (const QPixmap &pixmap)
 setWorkingPixmap Sets the pixmap that provides the current/working image visualization. More...
 
- Public Member Functions inherited from geometrize::scene::ImageTaskScene
 ImageTaskScene (QObject *parent=nullptr)
 
virtual ~ImageTaskScene ()
 
void setTargetPixmapOpacity (float opacity)
 setTargetPixmapOpacity Sets the opacity of the target pixmap. More...
 
void setTargetPixmap (const QPixmap &pixmap)
 setTargetPixmap Sets the pixmap that provides the target/goal image visualization. More...
 
ImageTaskPixmapGraphicsItemgetTargetPixmapItem ()
 getTargetPixmapItem Gets a refernece to the graphics item that houses the target pixmap. More...
 
void setOverlayShape (SvgItem *item)
 setOverlayItem Sets the given overlay shape upon the scene. More...
 
void setOverlayShapeVisibility (bool visible)
 setOverlayShapeVisibility Whether the overlay shape(s) in the scene should be visible. More...
 

Private Attributes

std::unique_ptr< ImageTaskPixmapSceneImpld
 

Additional Inherited Members

- Protected Member Functions inherited from geometrize::scene::ImageTaskScene
bool event (QEvent *event) override
 
void mousePressEvent (QGraphicsSceneMouseEvent *event) override
 
void mouseMoveEvent (QGraphicsSceneMouseEvent *event) override
 
void mouseReleaseEvent (QGraphicsSceneMouseEvent *event) override
 
void wheelEvent (QGraphicsSceneWheelEvent *event) override
 
void keyPressEvent (QKeyEvent *event) override
 
void keyReleaseEvent (QKeyEvent *event) override
 
void focusInEvent (QFocusEvent *event) override
 
void focusOutEvent (QFocusEvent *event) override
 

Detailed Description

The ImageTaskPixmapScene class models a graphics scene for viewing the pixmap-based results of image tasks.

Constructor & Destructor Documentation

◆ ImageTaskPixmapScene()

geometrize::scene::ImageTaskPixmapScene::ImageTaskPixmapScene ( QObject *  parent = nullptr)
explicit
35  : ImageTaskScene{parent}, d{std::make_unique<ImageTaskPixmapScene::ImageTaskPixmapSceneImpl>(this)}
36 {
37 }

◆ ~ImageTaskPixmapScene()

geometrize::scene::ImageTaskPixmapScene::~ImageTaskPixmapScene ( )
virtual
40 {
41 }

Member Function Documentation

◆ setWorkingPixmap()

void geometrize::scene::ImageTaskPixmapScene::setWorkingPixmap ( const QPixmap &  pixmap)

setWorkingPixmap Sets the pixmap that provides the current/working image visualization.

Parameters
pixmapThe pixmap to set as the current/working image visualization.
44 {
45  d->setWorkingPixmap(pixmap);
46 }
Here is the caller graph for this function:

Member Data Documentation

◆ d

std::unique_ptr<ImageTaskPixmapSceneImpl> geometrize::scene::ImageTaskPixmapScene::d
private

The documentation for this class was generated from the following files:
geometrize::scene::ImageTaskScene::ImageTaskScene
ImageTaskScene(QObject *parent=nullptr)
Definition: imagetaskscene.cpp:84
geometrize::scene::ImageTaskPixmapScene::d
std::unique_ptr< ImageTaskPixmapSceneImpl > d
Definition: imagetaskpixmapscene.h:35