24#ifndef _SO_QT_DIRECTIONAL_LIGHT_EDITOR_
25#define _SO_QT_DIRECTIONAL_LIGHT_EDITOR_
26#include <Inventor/Qt/OivQtCompat.h>
27#include <Inventor/Qt/SoQtComponent.h>
28#include <Inventor/misc/SoCallbackList.h>
90 const char *name = NULL,
91 SbBool buildInsideParent = TRUE);
126 void *userData = NULL)
127 { callbackList->
addCallback((SoCallbackListCB *) f, userData); }
132 void *userData = NULL)
133 { callbackList->
removeCallback((SoCallbackListCB *) f, userData); }
153 virtual SbString getDefaultWidgetName()
const;
154 virtual SbString getDefaultTitle()
const;
155 virtual SbString getDefaultIconTitle()
const;
166 static char* geomBuffer;
170 SoQtColorSlider* intensitySlider;
180 void updateLocalComponents();
185 void constructorCommon(
SbBool buildNow);
186 QWidget* buildWidget(QWidget* parent);
191 static void colorEditorCloseCB(
void *userData,
SoQtComponent *comp) ;
192 static void colorEditorCB(
void *,
const SbColor *);
193 static void dirLightManipCB(
void *,
SoDragger *);
194 static void intensitySliderCB(
void*,
float);
201 QAction* IDM_LEDT_COLOR_EDITOR;
204 void visibilityChangeCB(
SbBool visible);
205 void launchColorEditor();
Class for smart character strings.
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.
Sensor class that can be attached to Open Inventor nodes.
Path that points to a list of hierarchical nodes.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Component that l...
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Abstract base cl...
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Component for ed...
SoQtDirectionalLightEditor(QWidget *parent=qApp->activeWindow(), const char *name=NULL, SbBool buildInsideParent=TRUE)
Constructor.
void attach(SoPath *pathToLight)
Attaches the editor to a directional light.
void setLight(const SoDirectionalLight &newLight)
Sets new light values.
void detach()
Detaches the editor from a directional light.
~SoQtDirectionalLightEditor()
Destructor.
void SoQtDirectionalLightEditorCB(void *userData, const SoDirectionalLight *light)
void removeLightChangedCallback(SoQtDirectionalLightEditorCB *f, void *userData=NULL)
Removes the lightChanged callback.
void addLightChangedCallback(SoQtDirectionalLightEditorCB *f, void *userData=NULL)
Adds lightChanged callback.
virtual void hide()
This hides the component.
virtual void show()
This shows the component.
const SoDirectionalLight & getLight() const
Gets the current light values.
SbBool isAttached()
Returns TRUE if the editor is attached.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Component for re...
Abstract base class for Open Inventor sensors.
Group node that saves and restores traversal state.