NAP
Classes | Public Member Functions | Protected Member Functions | List of all members
SequenceAudioGUIService Class Referencefinal

#include <sequenceaudioguiservice.h>

Classes

struct  Colors
 

Public Member Functions

 SequenceAudioGUIService (ServiceConfiguration *configuration)
 
 ~SequenceAudioGUIService () override
 
const SequenceAudioGUIService::ColorsgetColors () const
 
- Public Member Functions inherited from Service
UNPREFIXED_MODULE_NAME_INPUTCASE Service (ServiceConfiguration *configuration)
 
virtual void update (double deltaTime) override
 
virtual void shutdown () override
 
 Service (ServiceConfiguration *configuration)
 
virtual ~Service ()
 
CoregetCore ()
 
const CoregetCore () const
 
std::string getTypeName () const
 
const ModulegetModule () const
 
 Service (Service &)=delete
 
Serviceoperator= (const Service &)=delete
 
 Service (Service &&)=delete
 
Serviceoperator= (Service &&)=delete
 

Protected Member Functions

void registerObjectCreators (rtti::Factory &factory) override
 
bool init (nap::utility::ErrorState &errorState) override
 
virtual void getDependentServices (std::vector< rtti::TypeInfo > &dependencies)
 
- Protected Member Functions inherited from Service
virtual void created ()
 
virtual void preUpdate (double deltaTime)
 
virtual void update (double deltaTime)
 
virtual void postUpdate (double deltaTime)
 
virtual void preShutdown ()
 
virtual void shutdown ()
 
virtual void preResourcesLoaded ()
 
virtual void postResourcesLoaded ()
 
template<typename SERVICE_CONFIG >
SERVICE_CONFIG * getConfiguration ()
 
template<typename SERVICE_CONFIG >
const SERVICE_CONFIG * getConfiguration () const
 
std::string getIniFilePath () const
 
std::string getIniFilePath (const std::string &appendix) const
 

Description

SequenceAudioGUIService is responsible for registering the appropriate factory functions for AudioTrack views to SequenceGUIService

Inheritance diagram for SequenceAudioGUIService:
[legend]
Collaboration diagram for SequenceAudioGUIService:
[legend]

Constructor & Destructor Documentation

◆ SequenceAudioGUIService()

Constructor

Parameters
configurationpointer to ServiceConfiguration

◆ ~SequenceAudioGUIService()

~SequenceAudioGUIService ( )
override

Destructor

Member Function Documentation

◆ getColors()

const SequenceAudioGUIService::Colors& getColors ( ) const

Return colors of audio segments

◆ getDependentServices()

virtual void getDependentServices ( std::vector< rtti::TypeInfo > &  dependencies)
protectedvirtual

Override this function to register service dependencies A service that depends on another service is initialized after all it's associated dependencies This will ensure correct order of initialization, update calls and shutdown of all services SequenceAudioGUIService depends on SequenceGUIService and SequenceServiceAudio

Parameters
dependenciesrtti information of the services this service depends on

Reimplemented from Service.

◆ init()

bool init ( nap::utility::ErrorState errorState)
overrideprotectedvirtual

initializes service

Parameters
errorStatecontains any errors
Returns
returns true on successful initialization

Reimplemented from Service.

◆ registerObjectCreators()

void registerObjectCreators ( rtti::Factory factory)
overrideprotectedvirtual

registers all objects that need a specific way of construction

Parameters
factorythe factory to register the object creators with

Reimplemented from Service.