ImFusion SDK 4.3
ControllerDecorator Class Referenceabstract

#include <ImFusion/GUI/ControllerDecorator.h>

Base interface for wrapper classes to decorate Controller instances and place them inside a MainWindowBase. More...

+ Inheritance diagram for ControllerDecorator:

Detailed Description

Base interface for wrapper classes to decorate Controller instances and place them inside a MainWindowBase.

This interface defines a set of generic functionality that must be implemented by container widgets. Subclasses can extend it with extra logic for decoration, docking, or other functionality needed for their intended GUI.

Instances of this interface are usually not created manually by SDK users but rather instantiated and maintained by MainWindowBase after calling MainWindowBase::addController().

See also
MainWindowBase, Controller, DefaultControllerDecorator

Public Member Functions

virtual bool setLocation (Controller::Location location)=0
 Sets how the controller should be decorated and where it should be placed in the parent MainWindowBase.
 
virtual Controller::Location location () const =0
 Returns the current location of the controller, i.e. where it is placed in the parent MainWindowBase.
 
virtual void setVisible (bool value)=0
 Sets whether the controller should be visible or hidden from the GUI.
 
virtual bool isVisible () const =0
 Returns whether the controller widget is currently visible.
 
virtual void setUserClosable (bool closable)=0
 Sets whether the container widget should show a button to close the underlying Controller.
 
virtual bool isUserClosable () const =0
 Returns whether the container widget should show a button to close the underlying Controller.
 
- Public Member Functions inherited from SignalReceiver
 SignalReceiver ()=default
 Default constructor.
 
 SignalReceiver (const SignalReceiver &other)
 Copy constructor, does not copy any existing signal connections from other.
 
SignalReceiveroperator= (SignalReceiver rhs)
 Assignment operator, disconnects all existing connections, does not copy any existing signal connections from rhs.
 
virtual ~SignalReceiver ()
 Virtual destructor disconnects from all connected signals.
 
- Public Member Functions inherited from Configurable
virtual void configure (const Properties *p)
 Configure this object instance by de-serializing the given Properties.
 
virtual void configuration (Properties *p) const
 Serialize the current object configuration into the given Properties object.
 
virtual void configureDefaults ()
 Retrieve the properties of this object, replaces values with their defaults and sets it again.
 
void registerParameter (ParameterBase *param)
 Register the given Parameter or SubProperty, so that it will be configured during configure()/configuration().
 
void unregisterParameter (const ParameterBase *param)
 Remove the given Parameter or SubProperty from the list of registered parameters.
 
 Configurable (const Configurable &rhs)
 
 Configurable (Configurable &&rhs) noexcept
 
Configurableoperator= (const Configurable &)
 
Configurableoperator= (Configurable &&) noexcept
 

Additional Inherited Members

- Public Attributes inherited from Configurable
Signal signalParametersChanged
 Emitted whenever one of the registered Parameters' or SubPropertys' signalValueChanged signal was emitted.
 
- Protected Member Functions inherited from SignalReceiver
void disconnectAll ()
 Disconnects all existing connections.
 
- Protected Attributes inherited from Configurable
std::vector< Paramm_params
 List of all registered Parameter and SubProperty instances.
 

Member Function Documentation

◆ setLocation()

virtual bool setLocation ( Controller::Location location)
pure virtual

Sets how the controller should be decorated and where it should be placed in the parent MainWindowBase.

Returns false if requested location could not be set (e.g. because not in Controller::supportedLocations()).

Implemented in DefaultControllerDecorator.

◆ location()

virtual Controller::Location location ( ) const
pure virtual

Returns the current location of the controller, i.e. where it is placed in the parent MainWindowBase.

Implemented in DefaultControllerDecorator.

◆ setVisible()

virtual void setVisible ( bool value)
pure virtual

Sets whether the controller should be visible or hidden from the GUI.

Implemented in DefaultControllerDecorator.

◆ isVisible()

virtual bool isVisible ( ) const
pure virtual

Returns whether the controller widget is currently visible.

Implemented in DefaultControllerDecorator.

◆ setUserClosable()

virtual void setUserClosable ( bool closable)
pure virtual

Sets whether the container widget should show a button to close the underlying Controller.

Implemented in DefaultControllerDecorator.

◆ isUserClosable()

virtual bool isUserClosable ( ) const
pure virtual

Returns whether the container widget should show a button to close the underlying Controller.

Implemented in DefaultControllerDecorator.


The documentation for this class was generated from the following file:
Search Tab / S to search, Esc to close