Turn the viewer decorations on or off.
See also:
isDecoration()
References isDecoration().
Return TRUE if the viewer decorations are on, otherwise
FALSE.
See also:
setDecoration()
Referenced by setDecoration().
Decide whether or not if clicking with the right mouse button on
the OpenGL canvas should reveal a preferences popup menu when in viewing
mode.
See also:
isPopupMenuEnabled()
References isPopupMenuEnabled().
Return TRUE if the popup preferences menu is enabled, otherwise
FALSE.
See also:
setPopupMenuEnabled()
Referenced by openPopupMenu(), processSoEvent(), and
setPopupMenuEnabled().
Returns the widget which is used as the parent of application
specified buttons. The row of application buttons (if any) will be placed in
the upper left corner.
See also:
addAppPushButton(), insertAppPushButton(),
removeAppPushButton()
Referenced by addAppPushButton(), insertAppPushButton(), and
removeAppPushButton().
Add an application specific push button to the viewer decorations.
Application buttons will be laid out in a vertical row from the upper left
corner.
The button will be added bottom-most.
See also:
insertAppPushButton(),
removeAppPushButton(), getAppPushButtonParent()
References getAppPushButtonParent().
Insert an application specific push button to the viewer
decorations at the given index.
See also:
addAppPushButton(), removeAppPushButton(),
getAppPushButtonParent()
References getAppPushButtonParent(), and
lengthAppPushButton().
Remove one of the application specific buttons.
See also:
addAppPushButton(),
insertAppPushButton()
References getAppPushButtonParent().
Return the index of a particular button that has been specified by
the application, or -1 of the button has not been added.
See also:
addAppPushButton()
Return number of application specific buttons added.
See also:
addAppPushButton(), insertAddAppPushButton()
Referenced by buildAppButtons(), and insertAppPushButton().
Returns the render area OpenGL canvas widget.
Set view mode.
If the view mode is on, user events will be caught and used to
influence the camera position / orientation. If view mode is off, all events
in the viewer canvas (like for instance keypresses or mouseclicks and
-movements) will be passed along to the scene graph.
Default is to have the view mode active.
See also:
isViewing()
Reimplemented from SoQtViewer.
Reimplemented in SoQtExaminerViewer, SoQtFlyViewer,
and SoQtPlaneViewer.
References SoQtViewer::isViewing().
Sets the cursor for this component.
Note: not part of the original SGI InventorXt API.
Reimplemented from SoQtComponent.
References SoQtGLWidget::getGLWidget(), and
SoQtComponent::setWidgetCursor().
Called internally from within the SoQt library when the
widget embedded in a component changes it size, which is usually triggered
by end-user interaction.
This method is then invoked to notify the component that the size
has changed. It is called from the top and all the way down to the bottom,
the size being adjusted to take into account extra decorations having been
added at each level in the component class hierarchy.
Reimplemented from SoQtViewer.
References bottomDecoration, leftDecoration, and
rightDecoration.
Build viewer decorations.
References bottomDecoration, buildBottomTrim(), buildLeftTrim(),
buildRightTrim(), leftDecoration, and rightDecoration.
Build decorations on the left of the render canvas. Override this
method in subclasses if you want your own decorations on the viewer
window.
The decoration will be 30 pixels wide.
References buildAppButtons(), leftWheel, and leftWheelVal.
Referenced by buildDecoration().
Build decorations on the bottom of the render canvas. Override
this method in subclasses if you want your own decorations on the viewer
window.
References bottomWheel, bottomWheelLabel, bottomWheelStr,
bottomWheelVal, leftWheelLabel, leftWheelStr, rightWheelLabel, and
rightWheelStr.
Referenced by buildDecoration().
Build decorations on the right side of the render canvas. Override
this method in subclasses if you want your own decorations on the viewer
window.
References buildViewerButtons(), rightWheel, and
rightWheelVal.
Referenced by buildDecoration().
Build the application specified button row (if any buttons were
set up).
References lengthAppPushButton().
Referenced by buildLeftTrim().
Build and layout viewer specified button row.
References createViewerButtons().
Referenced by buildRightTrim().
Set up the viewer buttons with pixmaps and event connections.
One important note if you want to override this method to add your
own buttons to the list (in the explanation below, it is assumed that you
know how virtual function table pointers are handled by C++):
createViewerButtons() is called (indirectly) from the
constructors of the viewer classes. This means that you need to delay it's
invocation until your own subclass's constructor is run, because otherwise
your re-implementation won't have been added to the internal virtual
function table yet.
Delaying a superclass viewer from building it's decorations is
done by passing build==FALSE as the last argument of the protected
constructors. You will then have to explicitly trigger the building in your
own constructor.
Here's a minimal example that shows the steps needed to be able to
override createViewerButtons() from SoQtExaminerViewer:
class MyExaminerViewer : public SoQtExaminerViewer {
public:
MyExaminerViewer(QWidget * parent);
protected:
virtual void createViewerButtons(QWidget * parent, SbPList * buttonlist);
};
MyExaminerViewer::MyExaminerViewer(QWidget * parent)
: SoQtExaminerViewer(parent, NULL, TRUE,
SoQtFullViewer::BUILD_ALL, SoQtFullViewer::BROWSER,
// build == FALSE, to delay creation of decorations
FALSE)
{
// Explicitly trigger the construction of viewer decorations.
QWidget * widget = this->buildWidget(this->getParentWidget());
this->setBaseWidget(widget);
}
void
MyExaminerViewer::createViewerButtons(QWidget * parent, SbPList * buttonlist)
{
SoQtExaminerViewer::createViewerButtons(parent, buttonlist);
// [now add your own button(s) to the buttonlist]
}
Reimplemented in SoQtExaminerViewer, and
SoQtPlaneViewer.
References SoQtViewer::isViewing().
Referenced by buildViewerButtons().
Make a popup menu with preferences settings.
One important note as for when you want to override this function
in a subclass: be aware that it will usually be invoked (indirectly) from
this class's constructor. That is before the table of virtual
function pointers has been set up for the subclass, and because of this, the
function will not be called in the subclass even though it is virtual.
To make the overriding actually be in effect, you need to delay
building the widgets of this class. For information on how to do that, see
the documentation of SoQtFullViewer::createViewerButtons().
References prefmenu.
Referenced by openPopupMenu().
Set title of popup menu.
References prefmenu.
NOTE: This method is not part of the original InventorXt API.
References buildPopupMenu(), SoQtGLWidget::getGLSize(),
SoQtGLWidget::getGLWidget(), isPopupMenuEnabled(), and prefmenu.
Referenced by processSoEvent().
Called when the user start to drag the thumbwheel in the left
frame. Override this method in subclassed viewers to provide your own
functionality on the thumbwheel.
See also:
leftWheelMotion(),
leftWheelFinish()
bottomWheelStart(), rightWheelStart()
Reimplemented in SoQtPlaneViewer.
References SoQtViewer::interactiveCountInc().
Called repeatedly as the user drags the thumbwheel in the left
frame. Override this method in subclassed viewers to provide your own
functionality on the thumbwheel.
See also:
leftWheelStart(),
leftWheelFinish()
bottomWheelStart(), rightWheelStart()
Reimplemented in SoQtExaminerViewer,
SoQtPlaneViewer, and SoQtConstrainedViewer.
References leftWheelVal.
Called as the user let go of the thumbwheel in the left frame
after a drag operation. Override this method in subclassed viewers to
provide your own functionality on the thumbwheel.
See also:
leftWheelStart(),
leftWheelMotion()
bottomWheelStart(), rightWheelStart()
Reimplemented in SoQtPlaneViewer.
References SoQtViewer::interactiveCountDec().
Get current value of the left thumbwheel.
See also:
leftWheelMotion()
References leftWheelVal.
Referenced by SoQtConstrainedViewer::leftWheelMotion(),
SoQtPlaneViewer::leftWheelMotion(), and
SoQtExaminerViewer::leftWheelMotion().
Set a new value for the left thumbwheel.
References leftWheel, and leftWheelVal.
Called when the user start to drag the thumbwheel in the bottom
frame. Override this method in subclassed viewers to provide your own
functionality on the thumbwheel.
See also:
bottomWheelMotion(),
bottomWheelFinish()
leftWheelStart(), rightWheelStart()
Reimplemented in SoQtPlaneViewer.
References SoQtViewer::interactiveCountInc().
Called repeatedly as the user drags the thumbwheel in the bottom
frame. Override this method in subclassed viewers to provide your own
functionality on the thumbwheel.
See also:
bottomWheelStart(),
bottomWheelFinish()
leftWheelStart(), rightWheelStart()
Reimplemented in SoQtExaminerViewer,
SoQtPlaneViewer, and SoQtConstrainedViewer.
References bottomWheelVal.
Called as the user let go of the thumbwheel in the bottom frame
after a drag operation. Override this method in subclassed viewers to
provide your own functionality on the thumbwheel.
See also:
bottomWheelStart(),
bottomWheelMotion()
leftWheelStart(), rightWheelStart()
Reimplemented in SoQtPlaneViewer.
References SoQtViewer::interactiveCountDec().
Get current value of the bottom thumbwheel.
See also:
bottomWheelMotion()
References bottomWheelVal.
Referenced by SoQtConstrainedViewer::bottomWheelMotion(),
SoQtPlaneViewer::bottomWheelMotion(), and
SoQtExaminerViewer::bottomWheelMotion().
Set a new value for the bottom thumbwheel.
References bottomWheel, and bottomWheelVal.
Called when the user start to drag the thumbwheel in the right
frame. Override this method in subclassed viewers to provide your own
functionality on the thumbwheel.
See also:
rightWheelMotion(),
rightWheelFinish()
leftWheelStart(), bottomWheelStart()
Reimplemented in SoQtPlaneViewer.
References SoQtViewer::interactiveCountInc().
Called repeatedly as the user drags the thumbwheel in the right
frame. Override this method in subclassed viewers to provide your own
functionality on the thumbwheel.
See also:
rightWheelStart(),
rightWheelFinish()
leftWheelStart(), bottomWheelStart()
Reimplemented in SoQtExaminerViewer,
SoQtPlaneViewer, and SoQtFlyViewer.
References rightWheelVal.
Called as the user let go of the thumbwheel in the right frame
after a drag operation. Override this method in subclassed viewers to
provide your own functionality on the thumbwheel.
See also:
rightWheelStart(),
rightWheelMotion()
leftWheelStart(), bottomWheelStart()
Reimplemented in SoQtPlaneViewer.
References SoQtViewer::interactiveCountDec().
Get current value of the right thumbwheel.
See also:
rightWheelMotion()
References rightWheelVal.
Referenced by SoQtPlaneViewer::processSoEvent(),
SoQtFlyViewer::rightWheelMotion(), SoQtPlaneViewer::rightWheelMotion(), and
SoQtExaminerViewer::rightWheelMotion().
Set a new value for the right thumbwheel.
References rightWheel, and rightWheelVal.
Referenced by SoQtPlaneViewer::processSoEvent().
Set label of the left thumbwheel.
References leftWheelLabel, and leftWheelStr.
Referenced by SoQtConstrainedViewer::SoQtConstrainedViewer(), and
SoQtFullViewer().
This method returns the native widget for the label below the left
thumb wheel.
References leftWheelLabel.
Set label of the bottom thumbwheel.
References bottomWheelLabel, and bottomWheelStr.
Referenced by SoQtConstrainedViewer::SoQtConstrainedViewer(), and
SoQtFullViewer().
This method returns the native widget for the label beside the
bottom thumb wheel.
References bottomWheelLabel.
Set label of the right thumbwheel.
References rightWheelLabel, and rightWheelStr.
Referenced by SoQtPlaneViewer::setCamera(),
SoQtExaminerViewer::setCamera(),
SoQtConstrainedViewer::SoQtConstrainedViewer(), and SoQtFullViewer().
This method returns the native widget for the label below the
right thumb wheel.
References rightWheelLabel.
Toolkit-native events are attempted converted to Coin-generic
events in the SoQtRenderArea::processEvent() method. If this
succeeds, they are forwarded to this method.
This is a virtual method, and is overridden in it's subclasses to
catch events of particular interest to the viewer classes, for instance.
Return TRUE iff the event was processed. If not it should be
passed on further up in the inheritance hierarchy by the caller. This last
point is extremely important to take note of if you are expanding the
toolkit with your own viewer class.
This method is not part of the original SGI InventorXt API. Note
that you can still override the toolkit-native processEvent() method
instead of this 'generic' method.
Reimplemented from SoQtViewer.
Reimplemented in SoQtExaminerViewer, SoQtFlyViewer,
and SoQtPlaneViewer.
References isPopupMenuEnabled(), SoQtViewer::isViewing(), and
openPopupMenu().
The widget representing the thumbwheel left of the render
canvas.
Referenced by buildLeftTrim(), setLeftWheelValue(), and
SoQtFullViewer().
The widget representing the thumbwheel on the right side of the
render canvas.
Referenced by buildRightTrim(), setRightWheelValue(), and
SoQtFullViewer().
The widget representing the thumbwheel below the render
canvas.
Referenced by buildBottomTrim(), setBottomWheelValue(), and
SoQtFullViewer().
The root widget for the left-side decorations.
Referenced by buildDecoration(), sizeChanged(), and
SoQtFullViewer().
The root widget for the right-side decorations.
Referenced by buildDecoration(), sizeChanged(), and
SoQtFullViewer().
The root widget for the bottom decorations.
Referenced by buildDecoration(), sizeChanged(), and
SoQtFullViewer().
Label widget of left wheel.
Referenced by buildBottomTrim(), getLeftWheelLabelWidget(),
setLeftWheelString(), and SoQtFullViewer().
Text of left thumbwheel's label.
Referenced by buildBottomTrim(), setLeftWheelString(),
SoQtFullViewer(), and ~SoQtFullViewer().
Current value of the left thumbwheel.
Referenced by buildLeftTrim(), getLeftWheelValue(),
leftWheelMotion(), setLeftWheelValue(), and SoQtFullViewer().
Label widget of right wheel.
Referenced by buildBottomTrim(), getRightWheelLabelWidget(),
setRightWheelString(), and SoQtFullViewer().
Text of right thumbwheel's label.
Referenced by buildBottomTrim(), setRightWheelString(),
SoQtFullViewer(), and ~SoQtFullViewer().
Current value of the right-side thumbwheel.
Referenced by buildRightTrim(), getRightWheelValue(),
rightWheelMotion(), setRightWheelValue(), and SoQtFullViewer().
Label widget of bottom wheel.
Referenced by buildBottomTrim(), getBottomWheelLabelWidget(),
setBottomWheelString(), and SoQtFullViewer().
Text of bottom thumbwheel's label.
Referenced by buildBottomTrim(), setBottomWheelString(),
SoQtFullViewer(), and ~SoQtFullViewer().
Current value of the bottom thumbwheel.
Referenced by bottomWheelMotion(), buildBottomTrim(),
getBottomWheelValue(), setBottomWheelValue(), and SoQtFullViewer().
Pointer to the popup menu instance.
Referenced by buildPopupMenu(), openPopupMenu(),
setPopupMenuString(), SoQtFullViewer(), and ~SoQtFullViewer().