5 #ifndef BALL_VIEW_DIALOGS_MODELSETTINGSDIALOG_H
6 #define BALL_VIEW_DIALOGS_MODELSETTINGSDIALOG_H
8 #ifndef BALL_COMMON_GLOBAL_H
12 #ifndef BALL_VIEW_MODELS_MODELPROCESSOR_H
16 #ifndef BALL_VIEW_KERNEL_COMMON_H
20 #ifndef BALL_VIEW_KERNEL_PREFERENCESENTRY
24 #include <BALL/VIEW/UIC/ui_modelSettingsDialog.h>
26 #include <QtGui/QCheckBox>
27 #include <QtGui/QLabel>
44 public Ui_ModelSettingsDialogData,
72 float getStickStickRadius()
const
73 {
return getFloatValue_(stick_radius_slider);}
76 float getBallAndStickStickRadius()
const
77 {
return getFloatValue_(ball_stick_cylinder_radius_slider);}
80 bool ballAndStickDashedBondsEnabled()
const
81 {
return ball_stick_dashed_bonds->isChecked();}
84 float getBallRadius()
const
85 {
return getFloatValue_(ball_stick_sphere_radius_slider);}
88 float getVDWRadiusFactor()
const
89 {
return getFloatValue_(vdw_radius_factor_slider);}
92 float getSurfaceProbeRadius()
const
93 {
return getFloatValue_(surface_probe_radius_slider);}
96 float getTubeRadius()
const
97 {
return getFloatValue_(tube_radius_slider);}
100 float getCartoonTubeRadius()
const
101 {
return getFloatValue_(cartoon_tube_radius_slider);}
104 float getCartoonHelixRadius()
const
105 {
return getFloatValue_(cartoon_helix_radius_slider);}
108 float getCartoonArrowWidth()
const
109 {
return getFloatValue_(strand_arrow_width_slider);}
112 float getCartoonStrandHeight()
const
113 {
return getFloatValue_(strand_height_slider);}
116 float getCartoonStrandWidth()
const
117 {
return getFloatValue_(strand_width_slider);}
120 float getHBondsRadius()
const
121 {
return getFloatValue_(hbonds_radius_slider);}
124 float getForceMaxLength()
const
125 {
return getFloatValue_(force_max_length_slider);}
128 float getForceScaling()
const
129 {
return getFloatValue_(force_scaling_slider);}
132 float getForceBase()
const
133 {
return getFloatValue_(force_base_slider);}
136 float getForceOffset()
const
137 {
return getFloatValue_(force_offset_slider);}
140 float getDNALadderRadius()
const
141 {
return getFloatValue_(cartoon_dna_ladder_radius_slider);}
144 float getDNABaseRadius()
const
145 {
return getFloatValue_(cartoon_dna_base_radius_slider);}
148 float getDNAHelixRadius()
const
149 {
return getFloatValue_(cartoon_dna_helix_radius_slider);}
152 void setStickStickRadius(
float value)
153 { setValue_(stick_radius_slider,value);}
156 void setBallAndStickStickRadius(
float value)
157 { setValue_(ball_stick_cylinder_radius_slider,value);}
160 void setBallAndStickStickDashedBondsEnabled(
bool state)
161 { ball_stick_dashed_bonds->setChecked(state);}
164 void setBallRadius(
float value)
165 { setValue_(ball_stick_sphere_radius_slider,value);}
168 void setVDWRadiusFactor(
float value)
169 { setValue_(vdw_radius_factor_slider,value);}
172 void setSurfaceProbeRadius(
float value)
173 { setValue_(surface_probe_radius_slider,value);}
176 void setTubeRadius(
float value)
177 { setValue_(tube_radius_slider,value);}
180 void setCartoonTubeRadius(
float value)
181 { setValue_(cartoon_tube_radius_slider,value);}
184 void setCartoonHelixRadius(
float value)
185 { setValue_(cartoon_helix_radius_slider,value);}
188 void setCartoonArrowWidth(
float value)
189 { setValue_(strand_arrow_width_slider ,value);}
192 void setCartoonStrandHeight(
float value)
193 { setValue_(strand_height_slider,value);}
196 void setCartoonStrandWidth(
float value)
197 { setValue_(strand_width_slider,value);}
200 void setHBondRadius(
float value)
201 { setValue_(hbonds_radius_slider,value);}
204 void setForceMaxLenght(
float value)
205 { setValue_(force_max_length_slider,value);}
208 void setForceScaling(
float value)
209 { setValue_(force_scaling_slider,value);}
212 void setForceOffset(
float value)
213 { setValue_(force_offset_slider ,value);}
216 void setForceBase(
float value)
217 { setValue_(force_base_slider, value);}
220 void setCartoonDNALadderRadius(
float value)
221 { setValue_(cartoon_dna_ladder_radius_slider, value / 10.);}
224 void setCartoonDNAHelixRadius(
float value)
225 { setValue_(cartoon_dna_helix_radius_slider, value / 10.);}
228 void setCartoonDNABaseRadius(
float value)
229 { setValue_(cartoon_dna_base_radius_slider, value / 10.);}
237 void VDWfactorChanged() {setLabelText_(vdw_radius_factor_label, vdw_radius_factor_slider);}
257 void changedNAMode_(
bool state);
261 float getFloatValue_(
const QSlider*
const& le)
const;
263 void setValue_(QSlider* le,
float value);
265 void setLabelText_(QLabel* label,
const QSlider*
const from);
267 void setDefaultValues_();