Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
sf::xgl::SceneServer Class Referencefinal

Server for color palettes used in images for coloring on basis of index. More...

#include <SceneServer.h>

Inheritance diagram for sf::xgl::SceneServer:
Collaboration diagram for sf::xgl::SceneServer:

Public Member Functions

 SceneServer (QObject *parent=nullptr)
 Constructor.
 
 ~SceneServer () override
 Destructor.
 
void addPropertyPages (PropertySheetDialog *sheet)
 Adds property pages of the select palette.
 
QList< QPair< QString, QString > > getImplementationNames () const
 Gets the names of all available implementations names and descriptions in pairs.
 
const QString & getImplementationName () const
 Gets the name of the desired implementation.
 
bool isAvailable () const
 Returns true when an implementation is available.
 
void setImplementationName (const QString &name)
 Sets the name of the desired implementation.
 
const QStringList & getImplementationProperties ()
 Gets the name of the desired implementation.
 
void setImplementationProperties (const QStringList &props)
 Sets the name of the desired implementation.
 
Q_SIGNAL void changed (SceneServer *server)
 Signal for when the palette changes.
 
SceneInterfacegetImplementation () const
 Gets the current scene from the server.
 

Protected Member Functions

bool createImplementation (const std::string &name)
 Creates implementation by registered name.
 

Friends

class SceneServerPropertyPage
 

Detailed Description

Server for color palettes used in images for coloring on basis of index.

Constructor & Destructor Documentation

◆ SceneServer()

sf::xgl::SceneServer::SceneServer ( QObject *  parent = nullptr)
explicit

Constructor.

◆ ~SceneServer()

sf::xgl::SceneServer::~SceneServer ( )
override

Destructor.

Member Function Documentation

◆ addPropertyPages()

void sf::xgl::SceneServer::addPropertyPages ( PropertySheetDialog sheet)

Adds property pages of the select palette.

◆ changed()

Q_SIGNAL void sf::xgl::SceneServer::changed ( SceneServer server)

Signal for when the palette changes.

◆ createImplementation()

bool sf::xgl::SceneServer::createImplementation ( const std::string &  name)
protected

Creates implementation by registered name.

Returns
True on success.

◆ getImplementation()

SceneInterface * sf::xgl::SceneServer::getImplementation ( ) const

Gets the current scene from the server.

◆ getImplementationName()

const QString & sf::xgl::SceneServer::getImplementationName ( ) const

Gets the name of the desired implementation.

◆ getImplementationNames()

QList< QPair< QString, QString > > sf::xgl::SceneServer::getImplementationNames ( ) const

Gets the names of all available implementations names and descriptions in pairs.

◆ getImplementationProperties()

const QStringList & sf::xgl::SceneServer::getImplementationProperties ( )

Gets the name of the desired implementation.

◆ isAvailable()

bool sf::xgl::SceneServer::isAvailable ( ) const

Returns true when an implementation is available.

◆ setImplementationName()

void sf::xgl::SceneServer::setImplementationName ( const QString &  name)

Sets the name of the desired implementation.

◆ setImplementationProperties()

void sf::xgl::SceneServer::setImplementationProperties ( const QStringList &  props)

Sets the name of the desired implementation.

Friends And Related Symbol Documentation

◆ SceneServerPropertyPage

friend class SceneServerPropertyPage
friend

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