51#ifndef _SO_DIRECTIONAL_LIGHT_MANIP_
52#define _SO_DIRECTIONAL_LIGHT_MANIP_
54#include <Inventor/SbLinear.h>
55#include <Inventor/draggers/SoDragger.h>
56#include <Inventor/nodes/SoDirectionalLight.h>
57#include <Inventor/sensors/SoFieldSensor.h>
224 virtual void doAction(
SoAction *action );
235 static void initClass();
236 static void exitClass();
239 virtual bool isGroup() {
return true; }
242 virtual void internalRemoveChild(
int index );
243 virtual void internalRemoveChild(
SoNode *child) { internalRemoveChild(internalFindChild(child)); }
244 virtual void internalRemoveAllChildren();
245 virtual void internalAddChild( SoNode *child );
246 virtual int internalFindChild(
const SoNode *child )
const;
247 virtual void internalInsertChild( SoNode *child,
int newChildIndex );
248 virtual SoNode *internalGetChild(
int index)
const {
return (*children)[index]; }
249 virtual void internalReplaceChild(
int index, SoNode *newChild);
250 virtual void internalReplaceChild( SoNode *oldChild, SoNode *newChild) { internalReplaceChild(internalFindChild(oldChild),newChild); }
253 virtual void copyContents(
const SoFieldContainer *fromFC,
SbBool copyConnections);
259 static void valueChangedCB(
void *,SoDragger *);
261 SoFieldSensor *directionFieldSensor;
262 SoFieldSensor *colorFieldSensor;
263 static void fieldSensorCB(
void *, SoSensor *);
265 void setDragger( SoDragger *newDragger );
268 virtual SbBool readInstance(SoInput *in,
unsigned short flags);
269 virtual SbBool readChildren(SoInput *in);
274 int getNumChildren()
const {
return (children->getLength()); }
SoDirectionalLight()
Creates a directional light source node with default settings.
SoDirectionalLightManip()
Constructor.
SbBool replaceNode(SoPath *p)
Replaces the tail of the path with this manipulator.
SbBool replaceManip(SoPath *p, SoDirectionalLight *newOne) const
Replaces the tail of the path, which must be this manipulator, with the given SoDirectionalLight node...
SoDragger * getDragger()
Returns the dragger being used by this manipulator.
Base class for nodekits that move in response to click-drag-release mouse events.
Renders a scene graph using Open Inventor's Render Engine.
Computes bounding box of a scene.
Computes transformation matrix for a subgraph.
Allows nodes in a graph to receive input events.
Abstract base class for all database nodes.
friend class SoCallbackAction
Abstract base class for picking objects in a scene.
Searches for nodes in a scene graph.
Writes a scene graph to a file.