Engauge Digitizer  2
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. More...
 
void create (MainWindow &mw)
 Create QGraphicsScene. More...
 

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 }
#define LOG4CPP_INFO_S(logger)
Definition: convenience.h:18
QGraphicsView class with event handling added. Typically the events are sent to the active digitizing...
Definition: GraphicsView.h:20
log4cpp::Category * mainCat
Definition: Logger.cpp:14
Add point and line handling to generic QGraphicsScene.
Definition: GraphicsScene.h:36

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