Engauge Digitizer 2
Loading...
Searching...
No Matches
Public Member Functions | List of all members
CreateScene Class Reference

Class to create QGraphicsScene for MainWindow class. More...

#include <CreateScene.h>

Inheritance diagram for CreateScene:
Inheritance graph
Collaboration diagram for CreateScene:
Collaboration graph

Public Member Functions

 CreateScene ()
 Single constructor.
 
void create (MainWindow &mw)
 Create QGraphicsScene.
 

Detailed Description

Class to create QGraphicsScene for MainWindow class.

We derive from QObject and use Q_OBJECT so translations work

Definition at line 16 of file CreateScene.h.

Constructor & Destructor Documentation

◆ CreateScene()

CreateScene::CreateScene ( )

Single constructor.

Definition at line 14 of file CreateScene.cpp.

15{
16}

Member Function Documentation

◆ create()

void CreateScene::create ( MainWindow & mw)

Create QGraphicsScene.

Definition at line 18 of file CreateScene.cpp.

19{
20 LOG4CPP_INFO_S ((*mainCat)) << "CreateScene::create";
21
22 mw.m_scene = new GraphicsScene (&mw);
23 mw.m_view = new GraphicsView (mw.m_scene, mw);
24 mw.m_layout->addWidget (mw.m_view);
25}
const int INNER_RADIUS_MIN
log4cpp::Category * mainCat
Definition Logger.cpp:14
Add point and line handling to generic QGraphicsScene.
QGraphicsView class with event handling added. Typically the events are sent to the active digitizing...
#define LOG4CPP_INFO_S(logger)
Definition convenience.h:18

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