Click or drag to resize
SoWinComponent Class

Abstract base class for all Open Inventor components.

Inheritance Hierarchy

Namespace: OIV.Inventor.Win
Assembly: OIV.Inventor.Win (in OIV.Inventor.Win.dll) Version: 2024.1.0.0 (2024.1.0)
Syntax
public class SoWinComponent : SoNetBase, 
	IWin32Window

The SoWinComponent type exposes the following members.

Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetClassName

Returns the class name.

Public methodStatic memberGetComponent

Returns the OIV.Inventor.Win.SoWinComponent for this window handle.

Public methodGetHashCode
Overrides GetHashCode().
(Inherited from SoNetBase.)
Public methodGetIconTitle

Included for portability only.

Public methodGetSize

Convenience routine on the window handle.

Public methodGetTitle

Gets window title.

Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetWidgetName

Returns the window handle name.

Public methodHide

This hides the component.

Public methodIsFullScreen

Queries if the viewer is in fullscreen mode.

Public methodIsFullScreenEnable

Queries if it is possible to put the viewer in fullscreen mode.

Public methodIsTopLevelShell

Returns true if this component is a top level shell component (has its own window).

Public methodIsVisible

Returns true if this component is mapped onto the screen.

Public methodSetFullScreen

Switches the viewer into (or out of) fullscreen mode.

Public methodSetFullScreenEnable

Enables/disables fullscreen mode.

Public methodSetIconTitle

Included for portability only.

Public methodSetSize

Convenience routine on the window handle.

Public methodSetTitle

Sets window title.

Public methodShow

This shows the component.

Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyHandle
Implements Handle.
Public propertyWindowCloseCallback

Sets the delegate to invoke when the user closes this component (double click in the upper left corner) - by default Hide() is called on this component, unless a delegate is specified.

Top
Remarks

Abstract base class from which all Open Inventor Windows components are derived. This class provides a basic C++ protocol for building and displaying Windows components. Components are used to encapsulate some function or task into a reusable package in the form of a Windows window handle that can be used in any Open Inventor Windows program. See the Example section on how to build and use SoWinComponents.

EXAMPLE

This example shows how an Open Inventor component can be built inside a program using the Windows window handle set. The example uses the OIV.Inventor.Win.Viewers.SoWinExaminerViewer window handle to view some simple geometry.

#include <Inventor/Win/SoWin.h>

#include <Inventor/nodes/SoCone.h>

#include <Inventor/Win/viewers/SoWinExaminerViewer.h>


void main(int, char* *argv)




HWND myWindow =
SoWin.init(argv[0]);




SoWinExaminerViewer *myViewer = new SoWinExaminerViewer(myWindow);

myViewer->setSceneGraph( new SoCone() );



myViewer->show();

SoWin.show(myWindow); // calls Show()



SoWin.mainLoop();

See Also