Click or drag to resize
SoWin Class

Routines for Open Inventor/Windows compatibility.

Inheritance Hierarchy
SystemObject
  OIV.InventorSoNetBase
    OIV.Inventor.WinSoWin

Namespace: OIV.Inventor.Win
Assembly: OIV.Inventor.Win (in OIV.Inventor.Win.dll) Version: 2024.1.0.0 (2024.1.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 OIV.Inventor.Win.SoWin.MainLoop() or (), 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 memberExit
Calls Exit(System.Int32(0)).
Public methodStatic memberExit(Int32)

Tells the main event loop to exit with a return code.

Public methodStatic memberFinish

Frees Open Inventor's internal static memory allocations.

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 memberInit Obsolete.
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
Public methodStatic memberMainLoop

Enters the main event loop and waits until OIV.Inventor.Win.SoWin.Exit(System.Int32) is called or a WM_QUIT message is sent to the message queue.

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 Obsolete.
Use this method if you need to use multi-threading with Open Inventor.
Public methodStatic memberThreadInit(Control) Obsolete.
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 OIV.Inventor.Win.SoWin class initializes Open Inventor for use with Microsoft Windows. () must be called in order for Open Inventor to work properly with Windows. OIV.Inventor.Win.SoWin.Finish() should be called to clean up static memory allocations.

OIV.Inventor.Win.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 OIV.Inventor.Win.SoWinComponent reference pages for examples on how this class should be used when using Open Inventor Windows components.

See Also