Dialog integer slider node. More...
#include <DialogViz/dialog/SoDialogIntegerSlider.h>
Public Member Functions | |
SoDialogIntegerSlider () | |
void | addAuditor (SoDialogIntegerSliderAuditor *auditor) |
void | removeAuditor (SoDialogIntegerSliderAuditor *auditor) |
Public Attributes | |
SoSFInt32 | min |
SoSFInt32 | max |
SoSFInt32 | value |
This node defines a slider component for the dialog. Values of the slider are integer values only.
The min field specifies the minimum possible value for the slider. The max field specifies the maximum possible value for the slider. The value field is the current value specifying the slider cursor position.
You can change the parts in any instance of this slider component using setPart(). The default part geometries are defined as resources for this SoDialogSlider class. They are detailed below in the Catalog Parts section of the online reference page for this class. You can make your program use different default resources for the parts by copying the file $OIVHOME/data/DialogViz/Skins/default/DialogSlider.iv into your own directory, editing the file, and then setting the environment variable DIALOGVIZ_SKINS_DIR to be a path to that directory, or by using the setSkinDirectory() method in your application.
min | 0 |
max | 1 |
value | 0 |
format | "%d" |
// fields from SoDialogSlider | |
valueVisible | TRUE |
continuousTrigger | FALSE |
toggleVisible | TRUE |
fixedLimits | FALSE |
colors | [] |
shadedColors | TRUE |
// fields from SoDialogComponent | |
width | 0 |
height | 0 |
fixedWidth | FALSE |
fixedHeight | FALSE |
minWidth | 0 |
maxWidth | 0 |
minHeight | 0 |
maxHeight | 0 |
margin | 0 |
edgeStyle | NONE |
labelVisibility | TRUE |
// fields from SoDialogViz | |
enable | TRUE |
label | "" |
labelAlignment | RIGHT |
auditorID | "" |
Switch edgeStyleSwitch (from SoDialogComponent) {
Specify the appearance of the component border. By default, the component has its edgeStyle set to NONE.
Group edgeStyleNone (from SoDialogComponent)
Defines the appearance of the component when edgeStyle field is set to NONE.
Group edgeStyleShadowIn (from SoDialogComponent)
Defines the appearance of the component when edgeStyle field is set to SHADOW_IN.
Group edgeStyleShadowOut (from SoDialogComponent)
Defines the appearance of the component when edgeStyle field is set to SHADOW_OUT.
}
Group labelProp (from SoDialogSlider)
Specifies properties to apply to the text node that represents the label field value.
Switch checkSwtch (from SoDialogSlider) {
Specify the slider toggle button geometry.
Group checkStateOff (from SoDialogSlider)
Defines the toggle button geometry when the its value is set to FALSE.
Group checkStateOn (from SoDialogSlider)
Defines the toggle button geometry when the its value is set to TRUE.
}
Group frame (from SoDialogSlider)
Defines the slider main frame geometry.
Group cursor (from SoDialogSlider)
Defines the cursor geometry. Default size is set by DialogViz to (10, 10, z)
Switch edtFrmSwtch (from SoDialogSlider) {
Group valueFrame (from SoDialogSlider)
Defines the geometry of the edit zone when the text is not being modified.
Group editValueFrame (from SoDialogSlider)
Defines the geometry of the edit when the user is being modified.
}
Group editTextProp (from SoDialogSlider)
Specifies properties to apply to the text node that represents the value field.
}
Extra information for parts from above structure
Part Name Resource Skin file edgeStyleNone DialogComponentEdgeStyleNone DialogComponent.iv edgeStyleShadowIn DialogComponentEdgeStyleShadowIn DialogComponent.iv edgeStyleShadowOut DialogComponentEdgeStyleShadowOut DialogComponent.iv labelProp DialogTextProperties TextProperties.iv checkStateOff DialogCheckBoxStateOff DialogCheckBox.iv checkStateOn DialogCheckBoxStateOn DialogCheckBox.iv frame DialogSliderFrame DialogSlider.iv cursor DialogSliderCursor DialogSlider.iv valueFrame DialogEditTextFrame DialogEditText.iv editValueFrame DialogEditTextEditingFrame DialogEditText.iv editTextProp DialogTextProperties TextProperties.iv
SoDialogSlider, SoDialogCheckBox, SoDialogCheckBoxLauncher, SoDialogComboBox, SoDialogRadioButtons, SoDialogCustom, SoDialogEditText, SoColumnDialog, SoRowDialog, SoTabDialog, SoDialogLabel, SoDialogPushButton, SoDialogPushButtonLauncher, SoDialogSeparator, SoDialogRealSlider
SoDialogIntegerSlider::SoDialogIntegerSlider | ( | ) |
Constructor.
void SoDialogIntegerSlider::addAuditor | ( | SoDialogIntegerSliderAuditor * | auditor | ) |
Adds a dialogIntegerSliderAuditor to the current integerSlider component.
void SoDialogIntegerSlider::removeAuditor | ( | SoDialogIntegerSliderAuditor * | auditor | ) |
Removes the specified integerSliderAuditor from the auditor list.
Maximum value.
Default is 1.
Minimum value.
Default is 0.
Current value.
Default is 0.