Geometrize  1.0
An application for geometrizing images into geometric primitives
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
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
< ImageTaskShapeScriptingPanelImpl
d
 

Detailed Description

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

Constructor & Destructor Documentation

geometrize::dialog::ImageTaskShapeScriptingPanel::ImageTaskShapeScriptingPanel ( QWidget *  parent = nullptr)
explicit
249  :
250  QWidget{parent},
251  d{std::make_unique<ImageTaskShapeScriptingPanel::ImageTaskShapeScriptingPanelImpl>(this)}
252 {
253 }
std::unique_ptr< ImageTaskShapeScriptingPanelImpl > d
Definition: imagetaskshapescriptingpanel.h:66
geometrize::dialog::ImageTaskShapeScriptingPanel::~ImageTaskShapeScriptingPanel ( )
virtual
256 {
257 }

Member Function Documentation

void geometrize::dialog::ImageTaskShapeScriptingPanel::changeEvent ( QEvent *  event)
overrideprotected
275 {
276  if (event->type() == QEvent::LanguageChange) {
277  d->onLanguageChange();
278  }
279  QWidget::changeEvent(event);
280 }
std::unique_ptr< ImageTaskShapeScriptingPanelImpl > d
Definition: imagetaskshapescriptingpanel.h:66
std::map< std::string, std::string > geometrize::dialog::ImageTaskShapeScriptingPanel::getScripts ( ) const
270 {
271  return d->getScripts();
272 }
std::unique_ptr< ImageTaskShapeScriptingPanelImpl > d
Definition: imagetaskshapescriptingpanel.h:66
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 }
std::unique_ptr< ImageTaskShapeScriptingPanelImpl > d
Definition: imagetaskshapescriptingpanel.h:66
void geometrize::dialog::ImageTaskShapeScriptingPanel::signal_scriptChanged ( const std::string &  functionName,
const std::string &  code 
)
signal
void geometrize::dialog::ImageTaskShapeScriptingPanel::signal_scriptingToggled ( bool  enabled)
signal

Here is the caller graph for this function:

void geometrize::dialog::ImageTaskShapeScriptingPanel::signal_scriptsReset ( )
signal
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 }
std::unique_ptr< ImageTaskShapeScriptingPanelImpl > d
Definition: imagetaskshapescriptingpanel.h:66

Member Data Documentation

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

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