MLABInventorViewerControl Class Reference
[GUI Controls]

Viewer control. More...

Inherits MLABSimpleWidgetControl.

List of all members.

Public Slots

virtual void setSizeHint (const QSize &size)

Public Member Functions

virtual bool createScreenshot (const QString &filename, bool)


Detailed Description

Viewer control.

Control for showing an OpenInventor Viewer.

MDL reference: Viewer


Member Function Documentation

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:

  • ".png" (PNG RGB)
  • ".tif",".tiff" (TIFF RGB)

Example:

        ctx.control("nameofyourcontrol").createScreenshot("c:/test.png");

Reimplemented from MLABWidgetControl.

virtual void MLABInventorViewerControl::setSizeHint ( const QSize &  size  )  [virtual, slot]

Sets the preferred size of the viewer.

Reimplemented from MLABWidgetControl.


Generated on Sat Sep 3 18:38:02 2011 for MeVisLab Scripting Reference by  doxygen 1.5.8