Walls And Holes  1
AbstractScene Class Referenceabstract

#include <abstractscene.h>

Inheritance diagram for AbstractScene:
Collaboration diagram for AbstractScene:

Signals

void sceneUpdated ()
 Emitted when the scene is changed. More...
 

Public Member Functions

virtual ~AbstractScene ()
 
QSharedPointer< AbstractRenderergetRenderer ()
 Returns an AbstractRenderer for this scene. More...
 
virtual SharedOBJModel exportOBJ ()=0
 

Protected Member Functions

virtual QSharedPointer< AbstractRenderermakeRenderer ()=0
 Creates an AbstractRenderer for this scene. More...
 

Constructor & Destructor Documentation

◆ ~AbstractScene()

virtual AbstractScene::~AbstractScene ( )
inlinevirtual

Member Function Documentation

◆ exportOBJ()

virtual SharedOBJModel AbstractScene::exportOBJ ( )
pure virtual

Implemented in SimpleTexturedScene.

◆ getRenderer()

QSharedPointer<AbstractRenderer> AbstractScene::getRenderer ( )
inline

Returns an AbstractRenderer for this scene.

This is the correct way to retreive the AbstractRenderer associated to the scene. Subtypes of AbstractScene should not keep a pointer to their renderer.

Returns
An instance of the appropriate subtype of AbstractRenderer.
Here is the call graph for this function:

◆ makeRenderer()

virtual QSharedPointer<AbstractRenderer> AbstractScene::makeRenderer ( )
protectedpure virtual

Creates an AbstractRenderer for this scene.

The scene should connect to the renderer's requestUpdate() signal appropriately.

Returns
An instance of the appropriate subtype of AbstractRenderer.

Implemented in SimpleTexturedScene.

Here is the caller graph for this function:

◆ sceneUpdated

void AbstractScene::sceneUpdated ( )
signal

Emitted when the scene is changed.

Here is the caller graph for this function:

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