MobileRT  1.0
A multi platform C++ CPU progressive Ray Tracer.
MainWindow Class Reference

#include <mainwindow.h>

Inheritance diagram for MainWindow:
Inheritance graph
Collaboration diagram for MainWindow:
Collaboration graph

Public Slots

void update_image ()
 
void on_actionRender_triggered ()
 

Public Member Functions

 MainWindow (QWidget *parent=nullptr)
 
 ~MainWindow () override
 
void draw (const ::std::vector<::std::int32_t > &bitmap, ::std::int32_t width, ::std::int32_t height)
 
void setImage (const ::MobileRT::Config &config, const bool async)
 

Private Slots

void select_obj ()
 
void select_config ()
 
void exit_app ()
 
void about ()
 
void stop_render ()
 

Private Member Functions

void restart ()
 
void keyPressEvent (QKeyEvent *keyEvent) override
 

Private Attributes

Ui::MainWindowm_ui
 
QGraphicsScene *const m_graphicsScene {new QGraphicsScene {}}
 
QPixmap m_pixmap {}
 
QGraphicsPixmapItem * m_graphicsPixmapItem {}
 
QTimer * m_timer {}
 
bool m_async {}
 
::MobileRT::Config m_config {}
 

Constructor & Destructor Documentation

◆ MainWindow()

MainWindow::MainWindow ( QWidget *  parent = nullptr)
explicit
Here is the call graph for this function:

◆ ~MainWindow()

MainWindow::~MainWindow ( )
override

Member Function Documentation

◆ about

void MainWindow::about ( )
privateslot

◆ draw()

void MainWindow::draw ( const ::std::vector<::std::int32_t > &  bitmap,
::std::int32_t  width,
::std::int32_t  height 
)
Here is the caller graph for this function:

◆ exit_app

void MainWindow::exit_app ( )
privateslot
Here is the call graph for this function:

◆ keyPressEvent()

void MainWindow::keyPressEvent ( QKeyEvent *  keyEvent)
overrideprivate

◆ on_actionRender_triggered

void MainWindow::on_actionRender_triggered ( )
slot
Here is the call graph for this function:

◆ restart()

void MainWindow::restart ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ select_config

void MainWindow::select_config ( )
privateslot
Here is the call graph for this function:

◆ select_obj

void MainWindow::select_obj ( )
privateslot

◆ setImage()

void MainWindow::setImage ( const ::MobileRT::Config config,
const bool  async 
)
Here is the call graph for this function:

◆ stop_render

void MainWindow::stop_render ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ update_image

void MainWindow::update_image ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_async

bool MainWindow::m_async {}
private

◆ m_config

::MobileRT::Config MainWindow::m_config {}
private

◆ m_graphicsPixmapItem

QGraphicsPixmapItem* MainWindow::m_graphicsPixmapItem {}
private

◆ m_graphicsScene

QGraphicsScene* const MainWindow::m_graphicsScene {new QGraphicsScene {}}
private

◆ m_pixmap

QPixmap MainWindow::m_pixmap {}
private

◆ m_timer

QTimer* MainWindow::m_timer {}
private

◆ m_ui

Ui::MainWindow* MainWindow::m_ui
private

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