Radium Engine  1.5.20
Loading...
Searching...
No Matches
Ra::Gui::SimpleWindow Class Reference

#include <Gui/RadiumWindow/SimpleWindow.hpp>

+ Inheritance diagram for Ra::Gui::SimpleWindow:
+ Collaboration diagram for Ra::Gui::SimpleWindow:

Public Slots

void prepareDisplay () override
 
void cleanup () override
 Cleanup resources.
 
void displayHelpDialog () override
 
- Public Slots inherited from Ra::Gui::MainWindowInterface
virtual void prepareDisplay ()=0
 
virtual void cleanup ()=0
 Cleanup resources.
 
virtual void displayHelpDialog ()
 

Signals

void frameUpdate ()
 Emitted when frame must be updated.
 
- Signals inherited from Ra::Gui::MainWindowInterface
void closed ()
 Emitted when the closed button has been hit.
 
void requestEngineOpenGLInitialization ()
 Emitted when the viewer request OpenGL initialization of the engine.
 

Public Member Functions

Ra::Gui::ViewergetViewer () override
 Access the viewer, i.e. the rendering widget.
 
Ra::Gui::SelectionManager * getSelectionManager () override
 Access the selection manager.
 
Ra::Gui::TimelinegetTimeline () override
 Access the timeline.
 
void updateUi (Ra::Plugins::RadiumPluginInterface *plugin) override
 Update the ui from the plugins loaded.
 
void onFrameComplete () override
 
void addRenderer (const std::string &name, std::shared_ptr< Ra::Engine::Rendering::Renderer > e) override
 Add render in the application: UI, viewer - this method does not associate a control panel.
 
 SimpleWindow (uint w=800, uint h=640, QWidget *parent=nullptr)
 
 SimpleWindow (const SimpleWindow &)=delete
 
SimpleWindowoperator= (const SimpleWindow &)=delete
 
 SimpleWindow (SimpleWindow &&)=delete
 
SimpleWindowoperator= (SimpleWindow &&)=delete
 
- Public Member Functions inherited from Ra::Gui::MainWindowInterface
 MainWindowInterface (QWidget *parent=nullptr)
 Constructor and destructor.
 
virtual void configure ()
 finalize configuration once engine viewer and connection are set.
 

Detailed Description

Definition of a minimal Radium Window. This minimal window allows to display radium Engine entities.

Definition at line 14 of file SimpleWindow.hpp.

Constructor & Destructor Documentation

◆ SimpleWindow()

Ra::Gui::SimpleWindow::SimpleWindow ( uint w = 800,
uint h = 640,
QWidget * parent = nullptr )
explicit

Constructors and destructor. https://en.cppreference.com/w/cpp/language/rule_of_three

Definition at line 16 of file SimpleWindow.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ addRenderer()

void Ra::Gui::SimpleWindow::addRenderer ( const std::string & name,
std::shared_ptr< Ra::Engine::Rendering::Renderer > e )
overridevirtual

Add render in the application: UI, viewer - this method does not associate a control panel.

Implements Ra::Gui::MainWindowInterface.

Definition at line 58 of file SimpleWindow.cpp.

+ Here is the call graph for this function:

◆ cleanup

void Ra::Gui::SimpleWindow::cleanup ( )
overrideslot

Cleanup resources.

Definition at line 68 of file SimpleWindow.cpp.

+ Here is the call graph for this function:

◆ displayHelpDialog

void Ra::Gui::SimpleWindow::displayHelpDialog ( )
overrideslot

Definition at line 74 of file SimpleWindow.cpp.

◆ getSelectionManager()

Ra::Gui::SelectionManager * Ra::Gui::SimpleWindow::getSelectionManager ( )
overridevirtual

Access the selection manager.

Implements Ra::Gui::MainWindowInterface.

Definition at line 44 of file SimpleWindow.cpp.

+ Here is the call graph for this function:

◆ getTimeline()

Ra::Gui::Timeline * Ra::Gui::SimpleWindow::getTimeline ( )
overridevirtual

Access the timeline.

Implements Ra::Gui::MainWindowInterface.

Definition at line 48 of file SimpleWindow.cpp.

◆ getViewer()

Ra::Gui::Viewer * Ra::Gui::SimpleWindow::getViewer ( )
overridevirtual

Access the viewer, i.e. the rendering widget.

Implements Ra::Gui::MainWindowInterface.

Definition at line 40 of file SimpleWindow.cpp.

+ Here is the call graph for this function:

◆ onFrameComplete()

void Ra::Gui::SimpleWindow::onFrameComplete ( )
overridevirtual

Update the UI ( most importantly gizmos ) to the modifications of the engine/

Implements Ra::Gui::MainWindowInterface.

Definition at line 56 of file SimpleWindow.cpp.

◆ prepareDisplay

void Ra::Gui::SimpleWindow::prepareDisplay ( )
overrideslot

Called when a scene is ready to display to parameterize the application window and the viewer.

Definition at line 63 of file SimpleWindow.cpp.

+ Here is the call graph for this function:

◆ updateUi()

void Ra::Gui::SimpleWindow::updateUi ( Ra::Plugins::RadiumPluginInterface * plugin)
overridevirtual

Update the ui from the plugins loaded.

Implements Ra::Gui::MainWindowInterface.

Definition at line 52 of file SimpleWindow.cpp.


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