Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
sf::xgl::SceneInterface Class Referenceabstract

Base class for the interface. More...

#include <SceneInterface.h>

Inheritance diagram for sf::xgl::SceneInterface:
[legend]
Collaboration diagram for sf::xgl::SceneInterface:
[legend]

Classes

struct  Parameters
 Structure passed as a constructor argument. More...

Public Member Functions

 SceneInterface (const Parameters &)
 Constructor for passing general structure for derived classes.
 ~SceneInterface () override
 Virtual destructor for derived classes.
virtual void addPropertyPages (PropertySheetDialog *sheet)
virtual OpenGLRenderer * create (OpenGLWidget *widget)=0
 Creates the scene for the passed OpenGL widget.
virtual void destroy ()=0
 Destroys the scene of for created for the widget.
virtual OpenGLRenderer * renderer ()=0
 Gets the renderer of this scene.
Public Member Functions inherited from sf::Persistent
 Persistent (QObject *obj)
 Constructor.
void setSourceObject (QObject *obj)
QStringList getProperties () const
 Gets the properties from the object as a string list to store as settings.
void setProperties (const QStringList &) const
 Sets the properties of the object as a string list settings.

Additional Inherited Members

Protected Member Functions inherited from sf::Persistent
QMap< int, const char * > getObjectProperties (const QObject *obj) const
 Gets a mapped property list af all properties of the object.

Detailed Description

Base class for the interface.

Constructor & Destructor Documentation

◆ SceneInterface()

sf::xgl::SceneInterface::SceneInterface ( const Parameters & )
explicit

Constructor for passing general structure for derived classes.

◆ ~SceneInterface()

sf::xgl::SceneInterface::~SceneInterface ( )
override

Virtual destructor for derived classes.

Member Function Documentation

◆ addPropertyPages()

virtual void sf::xgl::SceneInterface::addPropertyPages ( PropertySheetDialog * sheet)
virtual

Adds controller-specific property pages to the passed sheet.

Parameters
sheet

◆ create()

virtual OpenGLRenderer * sf::xgl::SceneInterface::create ( OpenGLWidget * widget)
pure virtual

Creates the scene for the passed OpenGL widget.

Returns
Associated renderer.

Implemented in sf::xgl::DemoScene, and sf::xgl::NipscanScene.

◆ destroy()

virtual void sf::xgl::SceneInterface::destroy ( )
pure virtual

Destroys the scene of for created for the widget.

Implemented in sf::xgl::DemoScene, and sf::xgl::NipscanScene.

◆ renderer()

virtual OpenGLRenderer * sf::xgl::SceneInterface::renderer ( )
pure virtual

Gets the renderer of this scene.

Implemented in sf::xgl::DemoScene, and sf::xgl::NipscanScene.


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