Inherits MLABSimpleWidgetControl.
Public Slots | |
| virtual void | setSizeHint (const QSize &size) |
Public Member Functions | |
| virtual bool | createScreenshot (const QString &filename, bool) |
Control for showing an OpenInventor Viewer.
MDL reference: Viewer
| virtual bool MLABInventorViewerControl::createScreenshot | ( | const QString & | filename, | |
| bool | grabFromScreen | |||
| ) | [virtual] |
creates a snapshot in the given filename with the specified format
The area that is grabbed will not contain the mouse cursor, but any other windows that are in front of this control will also be grabbed. This method is also able to grab Open Inventor viewers with their current OpenGL image.
the format is read from the given extension, available formats are:
Example:
ctx.control("nameofyourcontrol").createScreenshot("c:/test.png");
Reimplemented from MLABWidgetControl.
| virtual void MLABInventorViewerControl::setSizeHint | ( | const QSize & | size | ) | [virtual, slot] |
1.5.8