27 : QCheckBox(parent), _name(std::move(name)), _algProps(algProps)
29 this->setChecked(value);
30 connect(
this, SIGNAL(stateChanged(
int)),
this, SLOT(
setNewValue(
int)));
37 auto boolState =
static_cast<bool>(state);
Definition of the VtkAlgorithmProperties class.
Definition of the VtkAlgorithmPropertyCheckbox class.
Contains properties for the visualization of objects as VtkVisPipelineItems.
virtual void SetUserProperty(QString name, QVariant value)
Sets a user property. This should be implemented by subclasses.
void setNewValue(int state)
This slots is automatically called when the checkbox state changed.
VtkAlgorithmPropertyCheckbox(const bool value, QString name, VtkAlgorithmProperties *algProps, QWidget *parent=nullptr)
Constructor.
VtkAlgorithmProperties * _algProps
~VtkAlgorithmPropertyCheckbox() override
Destructor.