Click or drag to resize
SoWin Class

Routines for Open Inventor/Windows compatibility.

Inheritance Hierarchy

Namespace: OIV.Inventor.Win
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 9.9.12.0 (9.9.12.0)
Syntax
public sealed class SoWin : SoNetBase

The SoWin type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAddColormapToShell

This method is included for portability only.

Public methodStatic memberCreateSimpleErrorDialog(Control, String, String)
Calls CreateSimpleErrorDialog(widget, dialogTitle, errorStr1, (System.String ^)nullptr).
Public methodStatic memberCreateSimpleErrorDialog(Control, String, String, String)

Convenience routine which brings a simple Windows error dialog box displaying the given error string(s) and window title.

Public methodStatic memberDoIdleTasks

If you use SoWin.mainLoop or SoWin.nextEvent, Inventor automatically calls this when the Windows message queue is empty.

Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodStatic memberFinish

Frees Open Inventor's internal static memory allocations.

Public methodStatic memberFinishEventHandler
Public methodStatic memberGetErrorConsole

Returns the VSG error console.

Public methodGetHashCode
Overrides GetHashCode().
(Inherited from SoNetBase.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberGetWidgetSize

Convenience routine to get the size of the given window.

Public methodStatic memberHide

Convenience routine to hide the passed window handle.

Public methodStatic memberIdleEventHandler
Public methodStatic memberInit
Public methodStatic memberInit(Control)
This alternate form of init allows the application to initialize Windows. The passed control should be the top level control.
Public methodStatic memberIsInitialized

Returns true if SoWin module is currently initialized.

Public methodStatic memberMainLoop

This retrieves and dispatches messages (loops forever).

Public methodStatic memberSetWidgetSize

Convenience routine to set the size of the given window.

Public methodStatic memberShow

Convenience routine to show the passed window handle.

Public methodStatic memberThreadInit
Use this method if you need to use multi-threading with Open Inventor.
Public methodStatic memberThreadInit(Control)
Use this method if you need to use multi-threading with Open Inventor.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks

The SoWin class initializes Open Inventor for use with Microsoft Windows. SoWin.init() must be called in order for Open Inventor to work properly with Windows. SoWin.finish() should be called to clean up static memory allocations.

SoWin.mainLoop() must be called in order for extension device messages to be passed to Open Inventor render areas. The other methods are convenience functions.

Refer to the SoWinComponent reference pages for examples on how this class should be used when using Open Inventor Windows components.

See Also