Loading...
Searching...
No Matches
modelSettingsDialog.h
Go to the documentation of this file.
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
#ifndef BALL_VIEW_DIALOGS_MODELSETTINGSDIALOG_H
#define BALL_VIEW_DIALOGS_MODELSETTINGSDIALOG_H
#ifndef BALL_COMMON_GLOBAL_H
# include <BALL/COMMON/global.h>
#endif
#ifndef BALL_VIEW_MODELS_MODELPROCESSOR_H
# include <BALL/VIEW/MODELS/modelProcessor.h>
#endif
#ifndef BALL_VIEW_KERNEL_COMMON_H
# include <BALL/VIEW/KERNEL/common.h>
#endif
#ifndef BALL_VIEW_KERNEL_PREFERENCESENTRY
# include <BALL/VIEW/KERNEL/preferencesEntry.h>
#endif
#include <BALL/VIEW/UIC/ui_modelSettingsDialog.h>
#include <QtWidgets/QCheckBox>
#include <QtWidgets/QLabel>
class QSlider;
class QLabel;
namespace BALL
{
class INIFile;
class String;
namespace VIEW
{
class BALL_VIEW_EXPORT ModelSettingsDialog
: public QWidget,
public Ui_ModelSettingsDialogData,
public PreferencesEntry
{
Q_OBJECT
public:
ModelSettingsDialog( QWidget* parent = 0, const char* name = "ModelSettingsDialog",
Qt::WindowFlags fl = 0 );
virtual ~ModelSettingsDialog() {}
virtual void applySettingsTo(ModelProcessor& cp) const;
virtual ModelProcessor* createModelProcessor(ModelType type) const;
virtual void getSettings(const ModelProcessor& mp);
virtual QWidget* getEntryFor(ModelType type);
float getStickStickRadius() const
{return getFloatValue_(stick_radius_slider);}
float getBallAndStickStickRadius() const
{return getFloatValue_(ball_stick_cylinder_radius_slider);}
bool ballAndStickDashedBondsEnabled() const
{return ball_stick_dashed_bonds->isChecked();}
float getBallRadius() const
{return getFloatValue_(ball_stick_sphere_radius_slider);}
float getVDWRadiusFactor() const
{return getFloatValue_(vdw_radius_factor_slider);}
float getSurfaceProbeRadius() const
{return getFloatValue_(surface_probe_radius_slider);}
float getTubeRadius() const
{return getFloatValue_(tube_radius_slider);}
float getCartoonTubeRadius() const
{return getFloatValue_(cartoon_tube_radius_slider);}
float getCartoonHelixRadius() const
{return getFloatValue_(cartoon_helix_radius_slider);}
float getCartoonArrowWidth() const
{return getFloatValue_(strand_arrow_width_slider);}
float getCartoonStrandHeight() const
{return getFloatValue_(strand_height_slider);}
float getCartoonStrandWidth() const
{return getFloatValue_(strand_width_slider);}
float getHBondsRadius() const
{return getFloatValue_(hbonds_radius_slider);}
float getForceMaxLength() const
{return getFloatValue_(force_max_length_slider);}
float getForceScaling() const
{ return getFloatValue_(force_scaling_slider);}
float getForceBase() const
{return getFloatValue_(force_base_slider);}
float getForceOffset() const
{return getFloatValue_(force_offset_slider);}
float getDNALadderRadius() const
{return getFloatValue_(cartoon_dna_ladder_radius_slider);}
float getDNABaseRadius() const
{return getFloatValue_(cartoon_dna_base_radius_slider);}
float getDNAHelixRadius() const
{return getFloatValue_(cartoon_dna_helix_radius_slider);}
void setStickStickRadius(float value)
{ setValue_(stick_radius_slider,value);}
void setBallAndStickStickRadius(float value)
{ setValue_(ball_stick_cylinder_radius_slider,value);}
void setBallAndStickStickDashedBondsEnabled(bool state)
{ ball_stick_dashed_bonds->setChecked(state);}
void setBallRadius(float value)
{ setValue_(ball_stick_sphere_radius_slider,value);}
void setVDWRadiusFactor(float value)
{ setValue_(vdw_radius_factor_slider,value);}
void setSurfaceProbeRadius(float value)
{ setValue_(surface_probe_radius_slider,value);}
void setTubeRadius(float value)
{ setValue_(tube_radius_slider,value);}
void setCartoonTubeRadius(float value)
{ setValue_(cartoon_tube_radius_slider,value);}
void setCartoonHelixRadius(float value)
{ setValue_(cartoon_helix_radius_slider,value);}
void setCartoonArrowWidth(float value)
{ setValue_(strand_arrow_width_slider ,value);}
void setCartoonStrandHeight(float value)
{ setValue_(strand_height_slider,value);}
void setCartoonStrandWidth(float value)
{ setValue_(strand_width_slider,value);}
void setHBondRadius(float value)
{ setValue_(hbonds_radius_slider,value);}
void setForceMaxLenght(float value)
{ setValue_(force_max_length_slider,value);}
void setForceScaling(float value)
{ setValue_(force_scaling_slider,value);}
void setForceOffset(float value)
{ setValue_(force_offset_slider ,value);}
void setForceBase(float value)
{ setValue_(force_base_slider, value);}
void setCartoonDNALadderRadius(float value)
{ setValue_(cartoon_dna_ladder_radius_slider, value / 10.);}
void setCartoonDNAHelixRadius(float value)
{ setValue_(cartoon_dna_helix_radius_slider, value / 10.);}
void setCartoonDNABaseRadius(float value)
{ setValue_(cartoon_dna_base_radius_slider, value / 10.);}
public Q_SLOTS:
protected Q_SLOTS:
void stickRadiusChanged() {setLabelText_(stick_radius_label, stick_radius_slider);}
void VDWfactorChanged() {setLabelText_(vdw_radius_factor_label, vdw_radius_factor_slider);}
void ballStickSphereRadiusChanged() {setLabelText_(ball_stick_sphere_radius_label, ball_stick_sphere_radius_slider);}
void ballStickCylinderRadiusChanged() {setLabelText_(ball_stick_cylinder_radius_label, ball_stick_cylinder_radius_slider);}
void probeRadiusChanged() {setLabelText_(surface_probe_radius_label, surface_probe_radius_slider);}
void tubeRadiusChanged() {setLabelText_(tube_radius_label, tube_radius_slider);}
void cartoonTubeRadiusChanged(){setLabelText_(cartoon_tube_radius_label, cartoon_tube_radius_slider);}
void cartoonHelixRadiusChanged(){setLabelText_(cartoon_helix_radius_label, cartoon_helix_radius_slider);}
void cartoonStrandArrowWidthChanged(){setLabelText_(strand_arrow_width_label, strand_arrow_width_slider);}
void cartoonStrandHeightChanged(){setLabelText_(strand_height_label, strand_height_slider);}
void cartoonStrandWidthChanged() {setLabelText_(strand_width_label, strand_width_slider);}
void cartoonDNAHelixRadiusChanged(){setLabelText_(cartoon_dna_helix_radius_label, cartoon_dna_helix_radius_slider);}
void cartoonDNABaseRadiusChanged(){setLabelText_(cartoon_dna_base_radius_label, cartoon_dna_base_radius_slider);}
void cartoonDNALadderRadiusChanged(){setLabelText_(cartoon_dna_ladder_radius_label, cartoon_dna_ladder_radius_slider);}
void hbondsRadiusChanged(){setLabelText_(hbonds_radius_label, hbonds_radius_slider);}
void forceScalingChanged(){setLabelText_(force_scaling_label, force_scaling_slider);}
void forceMaxLengthChanged(){setLabelText_(force_max_length_label, force_max_length_slider);}
void forceBaseChanged(){setLabelText_(force_base_label, force_base_slider);}
void forceOffsetChanged(){setLabelText_(force_offset_label, force_offset_slider);}
void changedNAMode_(bool state);
protected:
float getFloatValue_(const QSlider* const& le) const;
void setValue_(QSlider* le, float value);
void setLabelText_(QLabel* label, const QSlider* const from);
void setDefaultValues_();
};
} }
#endif
global.h
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition COMMON/global.h:52
common.h
BALL::INIFile
Definition INIFile.h:29
BALL::String
Definition string.h:57
BALL::VIEW::ModelProcessor
Definition modelProcessor.h:40
BALL::VIEW::ModelSettingsDialog::ballStickCylinderRadiusChanged
void ballStickCylinderRadiusChanged()
Definition modelSettingsDialog.h:238
BALL::VIEW::ModelSettingsDialog::getVDWRadiusFactor
float getVDWRadiusFactor() const
Definition modelSettingsDialog.h:87
BALL::VIEW::ModelSettingsDialog::forceMaxLengthChanged
void forceMaxLengthChanged()
Definition modelSettingsDialog.h:253
BALL::VIEW::ModelSettingsDialog::setCartoonStrandHeight
void setCartoonStrandHeight(float value)
Definition modelSettingsDialog.h:191
BALL::VIEW::ModelSettingsDialog::ModelSettingsDialog
ModelSettingsDialog(QWidget *parent=0, const char *name="ModelSettingsDialog", Qt::WindowFlags fl=0)
Constructor.
BALL::VIEW::ModelSettingsDialog::forceBaseChanged
void forceBaseChanged()
Definition modelSettingsDialog.h:254
BALL::VIEW::ModelSettingsDialog::setCartoonHelixRadius
void setCartoonHelixRadius(float value)
Definition modelSettingsDialog.h:183
BALL::VIEW::ModelSettingsDialog::setTubeRadius
void setTubeRadius(float value)
Definition modelSettingsDialog.h:175
BALL::VIEW::ModelSettingsDialog::getDNAHelixRadius
float getDNAHelixRadius() const
Definition modelSettingsDialog.h:147
BALL::VIEW::ModelSettingsDialog::probeRadiusChanged
void probeRadiusChanged()
Definition modelSettingsDialog.h:239
BALL::VIEW::ModelSettingsDialog::VDWfactorChanged
void VDWfactorChanged()
Definition modelSettingsDialog.h:236
BALL::VIEW::ModelSettingsDialog::cartoonStrandHeightChanged
void cartoonStrandHeightChanged()
Definition modelSettingsDialog.h:245
BALL::VIEW::ModelSettingsDialog::setCartoonDNABaseRadius
void setCartoonDNABaseRadius(float value)
Definition modelSettingsDialog.h:227
BALL::VIEW::ModelSettingsDialog::setHBondRadius
void setHBondRadius(float value)
Definition modelSettingsDialog.h:199
BALL::VIEW::ModelSettingsDialog::cartoonDNALadderRadiusChanged
void cartoonDNALadderRadiusChanged()
Definition modelSettingsDialog.h:250
BALL::VIEW::ModelSettingsDialog::getCartoonArrowWidth
float getCartoonArrowWidth() const
Definition modelSettingsDialog.h:107
BALL::VIEW::ModelSettingsDialog::getFloatValue_
float getFloatValue_(const QSlider *const &le) const
BALL::VIEW::ModelSettingsDialog::setDefaultValues_
void setDefaultValues_()
BALL::VIEW::ModelSettingsDialog::ballAndStickDashedBondsEnabled
bool ballAndStickDashedBondsEnabled() const
Definition modelSettingsDialog.h:79
BALL::VIEW::ModelSettingsDialog::setSurfaceProbeRadius
void setSurfaceProbeRadius(float value)
Definition modelSettingsDialog.h:171
BALL::VIEW::ModelSettingsDialog::cartoonStrandArrowWidthChanged
void cartoonStrandArrowWidthChanged()
Definition modelSettingsDialog.h:244
BALL::VIEW::ModelSettingsDialog::tubeRadiusChanged
void tubeRadiusChanged()
Definition modelSettingsDialog.h:240
BALL::VIEW::ModelSettingsDialog::getCartoonStrandWidth
float getCartoonStrandWidth() const
Definition modelSettingsDialog.h:115
BALL::VIEW::ModelSettingsDialog::ballStickSphereRadiusChanged
void ballStickSphereRadiusChanged()
Definition modelSettingsDialog.h:237
BALL::VIEW::ModelSettingsDialog::createModelProcessor
virtual ModelProcessor * createModelProcessor(ModelType type) const
BALL::VIEW::ModelSettingsDialog::cartoonTubeRadiusChanged
void cartoonTubeRadiusChanged()
Definition modelSettingsDialog.h:241
BALL::VIEW::ModelSettingsDialog::cartoonDNABaseRadiusChanged
void cartoonDNABaseRadiusChanged()
Definition modelSettingsDialog.h:249
BALL::VIEW::ModelSettingsDialog::setCartoonDNAHelixRadius
void setCartoonDNAHelixRadius(float value)
Definition modelSettingsDialog.h:223
BALL::VIEW::ModelSettingsDialog::setBallAndStickStickRadius
void setBallAndStickStickRadius(float value)
Definition modelSettingsDialog.h:155
BALL::VIEW::ModelSettingsDialog::getForceMaxLength
float getForceMaxLength() const
Definition modelSettingsDialog.h:123
BALL::VIEW::ModelSettingsDialog::setForceBase
void setForceBase(float value)
Definition modelSettingsDialog.h:215
BALL::VIEW::ModelSettingsDialog::setBallAndStickStickDashedBondsEnabled
void setBallAndStickStickDashedBondsEnabled(bool state)
Definition modelSettingsDialog.h:159
BALL::VIEW::ModelSettingsDialog::getDNABaseRadius
float getDNABaseRadius() const
Definition modelSettingsDialog.h:143
BALL::VIEW::ModelSettingsDialog::setForceOffset
void setForceOffset(float value)
Definition modelSettingsDialog.h:211
BALL::VIEW::ModelSettingsDialog::cartoonStrandWidthChanged
void cartoonStrandWidthChanged()
Definition modelSettingsDialog.h:246
BALL::VIEW::ModelSettingsDialog::getForceOffset
float getForceOffset() const
Definition modelSettingsDialog.h:135
BALL::VIEW::ModelSettingsDialog::forceScalingChanged
void forceScalingChanged()
Definition modelSettingsDialog.h:252
BALL::VIEW::ModelSettingsDialog::hbondsRadiusChanged
void hbondsRadiusChanged()
Definition modelSettingsDialog.h:251
BALL::VIEW::ModelSettingsDialog::setCartoonTubeRadius
void setCartoonTubeRadius(float value)
Definition modelSettingsDialog.h:179
BALL::VIEW::ModelSettingsDialog::applySettingsTo
virtual void applySettingsTo(ModelProcessor &cp) const
BALL::VIEW::ModelSettingsDialog::setCartoonDNALadderRadius
void setCartoonDNALadderRadius(float value)
Definition modelSettingsDialog.h:219
BALL::VIEW::ModelSettingsDialog::getStickStickRadius
float getStickStickRadius() const
Definition modelSettingsDialog.h:71
BALL::VIEW::ModelSettingsDialog::setForceMaxLenght
void setForceMaxLenght(float value)
Definition modelSettingsDialog.h:203
BALL::VIEW::ModelSettingsDialog::setVDWRadiusFactor
void setVDWRadiusFactor(float value)
Definition modelSettingsDialog.h:167
BALL::VIEW::ModelSettingsDialog::getSettings
virtual void getSettings(const ModelProcessor &mp)
BALL::VIEW::ModelSettingsDialog::~ModelSettingsDialog
virtual ~ModelSettingsDialog()
Destructor.
Definition modelSettingsDialog.h:56
BALL::VIEW::ModelSettingsDialog::forceOffsetChanged
void forceOffsetChanged()
Definition modelSettingsDialog.h:255
BALL::VIEW::ModelSettingsDialog::getCartoonStrandHeight
float getCartoonStrandHeight() const
Definition modelSettingsDialog.h:111
BALL::VIEW::ModelSettingsDialog::getTubeRadius
float getTubeRadius() const
Definition modelSettingsDialog.h:95
BALL::VIEW::ModelSettingsDialog::getDNALadderRadius
float getDNALadderRadius() const
Definition modelSettingsDialog.h:139
BALL::VIEW::ModelSettingsDialog::getBallAndStickStickRadius
float getBallAndStickStickRadius() const
Definition modelSettingsDialog.h:75
BALL::VIEW::ModelSettingsDialog::setStickStickRadius
void setStickStickRadius(float value)
Definition modelSettingsDialog.h:151
BALL::VIEW::ModelSettingsDialog::setCartoonArrowWidth
void setCartoonArrowWidth(float value)
Definition modelSettingsDialog.h:187
BALL::VIEW::ModelSettingsDialog::getBallRadius
float getBallRadius() const
Definition modelSettingsDialog.h:83
BALL::VIEW::ModelSettingsDialog::setLabelText_
void setLabelText_(QLabel *label, const QSlider *const from)
BALL::VIEW::ModelSettingsDialog::getEntryFor
virtual QWidget * getEntryFor(ModelType type)
BALL::VIEW::ModelSettingsDialog::setBallRadius
void setBallRadius(float value)
Definition modelSettingsDialog.h:163
BALL::VIEW::ModelSettingsDialog::getCartoonTubeRadius
float getCartoonTubeRadius() const
Definition modelSettingsDialog.h:99
BALL::VIEW::ModelSettingsDialog::cartoonHelixRadiusChanged
void cartoonHelixRadiusChanged()
Definition modelSettingsDialog.h:242
BALL::VIEW::ModelSettingsDialog::setValue_
void setValue_(QSlider *le, float value)
BALL::VIEW::ModelSettingsDialog::getHBondsRadius
float getHBondsRadius() const
Definition modelSettingsDialog.h:119
BALL::VIEW::ModelSettingsDialog::setCartoonStrandWidth
void setCartoonStrandWidth(float value)
Definition modelSettingsDialog.h:195
BALL::VIEW::ModelSettingsDialog::changedNAMode_
void changedNAMode_(bool state)
BALL::VIEW::ModelSettingsDialog::setForceScaling
void setForceScaling(float value)
Definition modelSettingsDialog.h:207
BALL::VIEW::ModelSettingsDialog::cartoonDNAHelixRadiusChanged
void cartoonDNAHelixRadiusChanged()
Definition modelSettingsDialog.h:248
BALL::VIEW::ModelSettingsDialog::getForceBase
float getForceBase() const
Definition modelSettingsDialog.h:131
BALL::VIEW::ModelSettingsDialog::getSurfaceProbeRadius
float getSurfaceProbeRadius() const
Definition modelSettingsDialog.h:91
BALL::VIEW::ModelSettingsDialog::stickRadiusChanged
void stickRadiusChanged()
Definition modelSettingsDialog.h:235
BALL::VIEW::ModelSettingsDialog::getForceScaling
float getForceScaling() const
Definition modelSettingsDialog.h:127
BALL::VIEW::ModelSettingsDialog::getCartoonHelixRadius
float getCartoonHelixRadius() const
Definition modelSettingsDialog.h:103
BALL::VIEW::PreferencesEntry::PreferencesEntry
PreferencesEntry()
QWidget
modelProcessor.h
BALL::VIEW
Definition constraints.h:35
BALL::VIEW::ModelType
ModelType
Definition VIEW/KERNEL/common.h:166
BALL
Definition constants.h:13
preferencesEntry.h