Click or drag to resize
SoWinDirectionalLightEditor Class

Component for editing directional lights.

Inheritance Hierarchy
SystemObject
  OIV.InventorSoNetBase
    OIV.Inventor.WinSoWinComponent
      OIV.Inventor.WinSoWinDirectionalLightEditor

Namespace: OIV.Inventor.Win
Assembly: OIV.Inventor.Win (in OIV.Inventor.Win.dll) Version: 10.12.3.0 (10.12.3.0)
Syntax
public class SoWinDirectionalLightEditor : SoWinComponent

The SoWinDirectionalLightEditor type exposes the following members.

Constructors
  NameDescription
Public methodSoWinDirectionalLightEditor
Calls SoWinDirectionalLightEditor((System.Windows.Forms.Control ^)nullptr, (System.String ^)nullptr, true).
Public methodSoWinDirectionalLightEditor(Control)
Calls SoWinDirectionalLightEditor(parent, (System.String ^)nullptr, true).
Public methodSoWinDirectionalLightEditor(Control, String)
Calls SoWinDirectionalLightEditor(parent, name, true).
Public methodSoWinDirectionalLightEditor(Control, String, Boolean)

Constructor.

Top
Methods
  NameDescription
Public methodAttach

Attaches the editor to a directional light.

Public methodDetach

Detaches the editor from a directional light.

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

Returns the class name.

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

Included for portability only.

(Inherited from SoWinComponent.)
Public methodGetLight

Gets the current light values.

Public methodGetSize

Convenience routine on the window handle.

(Inherited from SoWinComponent.)
Public methodGetTitle

Gets window title.

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

Returns the window handle name.

(Inherited from SoWinComponent.)
Public methodHide

This hides the component.

(Inherited from SoWinComponent.)
Public methodIsAttached

Returns true if the editor is attached.

Public methodIsFullScreen

Queries if the viewer is in fullscreen mode.

(Inherited from SoWinComponent.)
Public methodIsFullScreenEnable

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

(Inherited from SoWinComponent.)
Public methodIsTopLevelShell

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

(Inherited from SoWinComponent.)
Public methodIsVisible

Returns true if this component is mapped onto the screen.

(Inherited from SoWinComponent.)
Public methodSetFullScreen

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

(Inherited from SoWinComponent.)
Public methodSetFullScreenEnable

Enables/disables fullscreen mode.

(Inherited from SoWinComponent.)
Public methodSetIconTitle

Included for portability only.

(Inherited from SoWinComponent.)
Public methodSetLight

Sets new light values.

Public methodSetSize

Convenience routine on the window handle.

(Inherited from SoWinComponent.)
Public methodSetTitle

Sets window title.

(Inherited from SoWinComponent.)
Public methodShow

This shows the component.

(Inherited from SoWinComponent.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyAlwaysOnTop
Public propertyHandle
Implements Handle.
(Inherited from SoWinComponent.)
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.

(Inherited from SoWinComponent.)
Top
Events
  NameDescription
Public eventLightChanged
Top
Remarks

This class is used to edit an OIV.Inventor.Nodes.SoDirectionalLight node (color, intensity, and direction are changed). In addition to directly editing directional light nodes, the editor can also be used with callbacks which will be called whenever the light is changed. The component consists of a render area and a value slider in the main window, with controls to display a color picker. In the render area there appears a sphere representing the world, and a directional light manipulator representing the direction of the light. Picking on the manipulator and moving the mouse provides direct manipulation of the light direction. The color picker is used to edit the color, and the value slider edits the intensity.

The editor can currently be attached to only one light at a time. Attaching to two different lights will automatically detach the first one before attaching the second.

See Also