Dialog RadioButtons node. More...
#include <DialogViz/dialog/SoMenuRadioButtons.h>
Public Member Functions | |
SoMenuRadioButtons () | |
void | addAuditor (SoMenuRadioButtonsAuditor *auditor) |
void | removeAuditor (SoMenuRadioButtonsAuditor *auditor) |
Public Attributes | |
SoMFString | items |
SoSFInt32 | selectedItem |
SoMFString | accelerators |
This node defines radio buttons in a menu bar component.
You can change the parts in any instance of this menu radio buttons components using setPart(). The default part geometries are defined as resources for this SoMenuRadioButtons 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/MenuRadioButtons.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.
items | [] |
selectedItem | 0 |
accelerators | "" |
// fields from SoDialogViz | |
enable | TRUE |
label | "" |
labelAlignment | LEFT |
auditorID | "" |
Separator itemsSep {
Defines all items of the SoRadioButtons component. Each items have the same geometry and structure defined by following parts:
Group frame (from SoMenuItem)
Defines the item main frame geometry. Default size is set to (x, 18, z)
Switch itemSwtch {
Defines item geometry. Default size is set to (14, 14, z)
Group stateOff
Defines the item geometry when unselected.
Group stateOn
Defines the item geometry when selected.
}
Group labelProp (from SoMenuItem)
Specifies the properties to apply to the text node representing the item label string
...
Ref frame
Ref itemSwitch
Ref labelProp
}
}
Extra information for parts from above structure
Part Name Resource Skin file frame MenuItemFrame MenuItem.iv stateOff MenuRadioButtonsStateOff MenuRadioButtons.iv stateOn MenuRadioButtonsStateOn MenuRadioButtons.iv labelProp TextProperties TextProperties.iv
SoMenuCheckBox, SoMenuCheckBoxLauncher, SoMenuPopup, SoMenuPushButton, SoMenuPushButtonLauncher, SoMenuFileSelection, SoMenuSeparator
SoMenuRadioButtons::SoMenuRadioButtons | ( | ) |
Constructor.
void SoMenuRadioButtons::addAuditor | ( | SoMenuRadioButtonsAuditor * | auditor | ) |
Add a menuRadioButtonsAuditor to current RadioButtons component.
void SoMenuRadioButtons::removeAuditor | ( | SoMenuRadioButtonsAuditor * | auditor | ) |
Remove the defined radioButtonsAuditor from the auditor list.
Defines the accelerator keys for each items.
List of string appearing in the component.
Default list is empty.
Selected choice.
Default is zero.