Geometrize  1.0
An application for geometrizing images into geometric primitives
Classes | Signals | Public Member Functions | Protected Member Functions | Private Attributes | List of all members
geometrize::dialog::ImageTaskShapeScriptingPanel Class Reference

The ImageTaskShapeScriptingPanel models the UI for the script editors for controlling image task shape setup, mutation etc. More...

#include <imagetaskshapescriptingpanel.h>

Inheritance diagram for geometrize::dialog::ImageTaskShapeScriptingPanel:
Inheritance graph
[legend]
Collaboration diagram for geometrize::dialog::ImageTaskShapeScriptingPanel:
Collaboration graph
[legend]

Classes

class  ImageTaskShapeScriptingPanelImpl
 

Signals

void signal_scriptingToggled (bool enabled)
 
void signal_scriptsReset ()
 
void signal_scriptChanged (const std::string &functionName, const std::string &code)
 

Public Member Functions

 ImageTaskShapeScriptingPanel (QWidget *parent=nullptr)
 
virtual ~ImageTaskShapeScriptingPanel ()
 
void setImageTask (task::ImageTask *task)
 setImageTask Sets the current image task manipulated by the scripting panel. More...
 
void syncUserInterface ()
 syncUserInterface Syncs the user interface with the current image task. This should be called after setting a new image task, or new task settings. More...
 
std::map< std::string, std::string > getScripts () const
 

Protected Member Functions

void changeEvent (QEvent *) override
 

Private Attributes

std::unique_ptr< ImageTaskShapeScriptingPanelImpld
 

Detailed Description

The ImageTaskShapeScriptingPanel models the UI for the script editors for controlling image task shape setup, mutation etc.

Constructor & Destructor Documentation

◆ ImageTaskShapeScriptingPanel()

geometrize::dialog::ImageTaskShapeScriptingPanel::ImageTaskShapeScriptingPanel ( QWidget *  parent = nullptr)
explicit
249  :
250  QWidget{parent},
251  d{std::make_unique<ImageTaskShapeScriptingPanel::ImageTaskShapeScriptingPanelImpl>(this)}
252 {
253 }

◆ ~ImageTaskShapeScriptingPanel()

geometrize::dialog::ImageTaskShapeScriptingPanel::~ImageTaskShapeScriptingPanel ( )
virtual
256 {
257 }

Member Function Documentation

◆ changeEvent()

void geometrize::dialog::ImageTaskShapeScriptingPanel::changeEvent ( QEvent *  event)
overrideprotected
275 {
276  if (event->type() == QEvent::LanguageChange) {
277  d->onLanguageChange();
278  }
279  QWidget::changeEvent(event);
280 }

◆ getScripts()

std::map< std::string, std::string > geometrize::dialog::ImageTaskShapeScriptingPanel::getScripts ( ) const
270 {
271  return d->getScripts();
272 }

◆ setImageTask()

void geometrize::dialog::ImageTaskShapeScriptingPanel::setImageTask ( task::ImageTask task)

setImageTask Sets the current image task manipulated by the scripting panel.

Parameters
taskNon-owning pointer to the image task that the scripting panel on this widget will manipulate.
260 {
261  d->setImageTask(task);
262 }

◆ signal_scriptChanged

void geometrize::dialog::ImageTaskShapeScriptingPanel::signal_scriptChanged ( const std::string &  functionName,
const std::string &  code 
)
signal

◆ signal_scriptingToggled

void geometrize::dialog::ImageTaskShapeScriptingPanel::signal_scriptingToggled ( bool  enabled)
signal

◆ signal_scriptsReset

void geometrize::dialog::ImageTaskShapeScriptingPanel::signal_scriptsReset ( )
signal

◆ syncUserInterface()

void geometrize::dialog::ImageTaskShapeScriptingPanel::syncUserInterface ( )

syncUserInterface Syncs the user interface with the current image task. This should be called after setting a new image task, or new task settings.

265 {
266  d->syncUserInterface();
267 }

Member Data Documentation

◆ d

std::unique_ptr<ImageTaskShapeScriptingPanelImpl> geometrize::dialog::ImageTaskShapeScriptingPanel::d
private

The documentation for this class was generated from the following files:
geometrize::dialog::ImageTaskShapeScriptingPanel::d
std::unique_ptr< ImageTaskShapeScriptingPanelImpl > d
Definition: imagetaskshapescriptingpanel.h:66