![]() |
Scanframe Modular Application 0.1.0
|
Server for color palettes used in images for coloring on basis of index. More...
#include <SceneServer.h>
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. | |
SceneInterface * | getImplementation () 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 |
Server for color palettes used in images for coloring on basis of index.
|
explicit |
Constructor.
|
override |
Destructor.
void sf::xgl::SceneServer::addPropertyPages | ( | PropertySheetDialog * | sheet | ) |
Adds property pages of the select palette.
Q_SIGNAL void sf::xgl::SceneServer::changed | ( | SceneServer * | server | ) |
Signal for when the palette changes.
|
protected |
Creates implementation by registered name.
SceneInterface * sf::xgl::SceneServer::getImplementation | ( | ) | const |
Gets the current scene from the server.
const QString & sf::xgl::SceneServer::getImplementationName | ( | ) | const |
Gets the name of the desired implementation.
QList< QPair< QString, QString > > sf::xgl::SceneServer::getImplementationNames | ( | ) | const |
Gets the names of all available implementations names and descriptions in pairs.
const QStringList & sf::xgl::SceneServer::getImplementationProperties | ( | ) |
Gets the name of the desired implementation.
bool sf::xgl::SceneServer::isAvailable | ( | ) | const |
Returns true when an implementation is available.
void sf::xgl::SceneServer::setImplementationName | ( | const QString & | name | ) |
Sets the name of the desired implementation.
void sf::xgl::SceneServer::setImplementationProperties | ( | const QStringList & | props | ) |
Sets the name of the desired implementation.
|
friend |