Dialog Custom node.
More...
#include <DialogViz/dialog/SoDialogCustom.h>
Public Member Functions | |
| SoDialogCustom () | |
| SoWidget | getWidget () |
Dialog Custom node.
This node creates a widget that can be used as a container for building another widget inside. This node can manage only one widget. See the Example section below.
| // 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 | "" |
// create and build the dialog scene graph SoTopLevelDialog * myTopLevelDialog = new SoTopLevelDialog(); SoDialogCustom * myDialogCustom = new SoDialogCustom(); myTopLevelDialog->addChild(myDialogCustom); myTopLevelDialog->buildDialog( parent, buildInsideParent ); myTopLevelDialog->show(); // Set an examinerViewer in the dialogCustom component. // Here, we have to get the custom widget and set it has the parent of the // new widget. (For examiner viewer, pass TRUE as third param to build inside parent.) SoXtExaminerViewer* myViewer = new SoXtExaminerViewer(custom->getWidget(), "", TRUE); // Add a scene graph in viewer and show. myViewer->setSceneGraph(new SoCube()); myViewer->show();
SoDialogCheckBox, SoDialogCheckBoxLauncher, SoDialogComboBox, SoDialogRadioButtons, SoDialogEditText, SoColumnDialog, SoRowDialog, SoTabDialog, SoDialogLabel, SoDialogPushButton, SoDialogPushButtonLauncher, SoDialogSeparator, SoDialogIntegerSlider, SoDialogRealSlider
| SoDialogCustom::SoDialogCustom | ( | ) |
Constructor.
| SoWidget SoDialogCustom::getWidget | ( | ) |
Returns the custom base widget.
Reimplemented from SoDialogComponent.