PeriDyno 1.0.0
Loading...
Searching...
No Matches
dyno::QtApp Class Reference

#include <QtApp.h>

Inheritance diagram for dyno::QtApp:
Collaboration diagram for dyno::QtApp:

Public Member Functions

 QtApp (int argc=0, char **argv=NULL)
 
 ~QtApp ()
 
void initialize (int width, int height, bool usePlugin=true) override
 
void mainLoop () override
 
void setSceneGraph (std::shared_ptr< SceneGraph > scn)
 
void setWindowTitle (const std::string &str)
 
RenderWindowrenderWindow () override
 
- Public Member Functions inherited from dyno::AppBase
 AppBase ()
 
 ~AppBase ()
 
virtual std::shared_ptr< SceneGraphgetSceneGraph ()
 
virtual void setSceneGraphCreator (std::function< std::shared_ptr< SceneGraph >()> creator)
 

Private Attributes

std::shared_ptr< QApplication > mQApp
 
std::shared_ptr< PMainWindowmMainWindow
 

Detailed Description

Definition at line 13 of file QtApp.h.

Constructor & Destructor Documentation

◆ QtApp()

dyno::QtApp::QtApp ( int argc = 0,
char ** argv = NULL )

Definition at line 15 of file QtApp.cpp.

◆ ~QtApp()

dyno::QtApp::~QtApp ( )

Definition at line 45 of file QtApp.cpp.

Member Function Documentation

◆ initialize()

void dyno::QtApp::initialize ( int width,
int height,
bool usePlugin = true )
overridevirtual

Reimplemented from dyno::AppBase.

Definition at line 50 of file QtApp.cpp.

Here is the call graph for this function:

◆ mainLoop()

void dyno::QtApp::mainLoop ( )
overridevirtual

Implements dyno::AppBase.

Definition at line 68 of file QtApp.cpp.

◆ renderWindow()

RenderWindow * dyno::QtApp::renderWindow ( )
overridevirtual

Reimplemented from dyno::AppBase.

Definition at line 84 of file QtApp.cpp.

◆ setSceneGraph()

void dyno::QtApp::setSceneGraph ( std::shared_ptr< SceneGraph > scn)
virtual

Reimplemented from dyno::AppBase.

Definition at line 73 of file QtApp.cpp.

Here is the call graph for this function:

◆ setWindowTitle()

void dyno::QtApp::setWindowTitle ( const std::string & str)

Set customized window title; otherwise, the default title will be shown

Definition at line 79 of file QtApp.cpp.

Member Data Documentation

◆ mMainWindow

std::shared_ptr<PMainWindow> dyno::QtApp::mMainWindow
private

Definition at line 33 of file QtApp.h.

◆ mQApp

std::shared_ptr<QApplication> dyno::QtApp::mQApp
private

Definition at line 32 of file QtApp.h.


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