56#ifndef _SO_XT_DIRECTIONAL_LIGHT_EDITOR_
57#define _SO_XT_DIRECTIONAL_LIGHT_EDITOR_
59#include <X11/Intrinsic.h>
144 const char *name = NULL,
179 inline void addLightChangedCallback(
181 void *userData = NULL);
185 inline void removeLightChangedCallback(
187 void *userData = NULL);
207 virtual SbString getDefaultWidgetName()
const;
208 virtual SbString getDefaultTitle()
const;
209 virtual SbString getDefaultIconTitle()
const;
225 static char *geomBuffer;
236 void updateLocalComponents();
240 static void colorEditorCB(
void *,
const SbColor *);
241 static void intensitySliderCB(
void *,
float);
242 static void pasteDoneCB(
void *,
SoPathList *);
243 static void dirLightManipCB(
void *,
SoDragger *);
256 static void visibilityChangeCB(
void *pt,
SbBool visible);
261 void constructorCommon(
SbBool buildNow);
#define TRUE
Possible value of SbBool.
#define XmAnyCallbackStruct
#define SoXtDirectionalLightEditorCB
#define SoXtDirectionalLightEditor
void SoXtDirectionalLightEditorCB(void *userData, const SoDirectionalLight *light)
Class for smart character strings.
Base class for all nodes, paths, and engines.
Manages a list of callbacks and associated data.
void addCallback(SoCallbackListCB *f, void *userData=NULL)
Adds a function to the list of callback functions.
void removeCallback(SoCallbackListCB *f, void *userData=NULL)
Removes a function from the list of callback functions.
Abstract base class for camera nodes.
Node representing a directional light source.
Directional light node with 3D interface for editing direction.
Base class for nodekits that move in response to click-drag-release mouse events.
Base class for all group nodes.
Sensor class that can be attached to Open Inventor nodes.
Path that points to a list of hierarchical nodes.
Maintains a list of pointers to paths.
Abstract base class for Open Inventor sensors.
Group node that saves and restores traversal state.
Supports copy/paste for Open Inventor using the Xt clipboard.
Component that lets you edit a color interactively.
Abstract base class for all Open Inventor components.
Component for editing directional lights.
void removeLightChangedCallback(SoXtDirectionalLightEditorCB *f, void *userData=NULL)
Removes the lightChanged callback.
~SoXtDirectionalLightEditor()
Destructor.
void attach(SoPath *pathToLight)
Attaches the editor to a directional light.
const SoDirectionalLight & getLight() const
Gets the current light values.
virtual void show()
This shows the component.
SbBool isAttached()
Returns TRUE if the editor is attached.
SoXtDirectionalLightEditor(SoWidget parent=NULL, const char *name=NULL, SbBool buildInsideParent=TRUE)
Constructor.
virtual void hide()
This hides the component.
void detach()
Detaches the editor from a directional light.
void addLightChangedCallback(SoXtDirectionalLightEditorCB *f, void *userData=NULL)
Adds lightChanged callback.
void setLight(const SoDirectionalLight &newLight)
Sets new light values.
Component for rendering Open Inventor scene graphs.
void SoCallbackListCB(void *userData, void *callbackData)