man SoXtDirectionalLightEditor () - component for editing directional lights

NAME

SoXtDirectionalLightEditor - component for editing directional lights

INHERITS FROM

SoXtComponent > SoXtDirectionalLightEditor

SYNOPSIS

#include <Inventor/Xt/SoXtDirectionalLightEditor.h> c } c } SoXtDirectionalLightEditorCB(void *userData, const SoDirectionalLight *light) Methods from class SoXtDirectionalLightEditor: c } c } SoXtDirectionalLightEditor(Widget parent = NULL, const char *name = NULL, SbBool buildInsideParent = TRUE)

c } c } ~SoXtDirectionalLightEditor()

c } c } attach(SoPath *pathToLight)

c } c } detach()

c } c } isAttached()

c } c } addLightChangedCallback(SoXtDirectionalLightEditorCB *f, void *userData = NULL)

c } c } removeLightChangedCallback(SoXtDirectionalLightEditorCB *f, void *userData = NULL)

c } c } setLight(const SoDirectionalLight &newLight)

c } c } getLight() const Methods from class SoXtComponent: c } c } show()

c } c } hide()

c } c } isVisible()

c } c } getWidget() const

c } c } isTopLevelShell() const

c } c } getShellWidget() const

c } c } getParentWidget() const

c } c } setSize(const SbVec2s &size)

c } c } getSize()

c } c } getDisplay()

c } c } setTitle(const char *newTitle)

c } c } getTitle() const

c } c } setIconTitle(const char *newIconTitle)

c } c } getIconTitle() const

c } c } setWindowCloseCallback(SoXtComponentCB *func, void *data = NULL)

c } c } getComponent(Widget w)

c } c } getWidgetName() const

c } c } getClassName() const

DESCRIPTION

This class is used to edit an 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.

METHODS

c } c } SoXtDirectionalLightEditor(Widget parent = NULL, const char *name = NULL, SbBool buildInsideParent = TRUE)

c } c } ~SoXtDirectionalLightEditor()

Constructor and destructor. c } c } attach(SoPath *pathToLight)

c } c } detach()

Attach/detach the editor to/from a directional light. When attached, changes made in the editor directly affect the attached light. c } c } isAttached()

Returns TRUE if the editor is attached. c } c } addLightChangedCallback(SoXtDirectionalLightEditorCB *f, void *userData = NULL)

c } c } removeLightChangedCallback(SoXtDirectionalLightEditorCB *f, void *userData = NULL)

Additional way of using the directional light editor, by registering a callback and setting the light. c } c } setLight(const SoDirectionalLight &newLight)

c } c } getLight() const

Set new light values, and get the current light values.

SEE ALSO

SoXtComponent, SoDirectionalLight