50#ifndef _SO_POINT_LIGHT_MANIP_
51#define _SO_POINT_LIGHT_MANIP_
53#include <Inventor/SbLinear.h>
54#include <Inventor/draggers/SoDragger.h>
55#include <Inventor/nodes/SoPointLight.h>
56#include <Inventor/sensors/SoFieldSensor.h>
215 virtual void doAction(
SoAction *action );
226 static void initClass();
227 static void exitClass();
230 virtual bool isGroup() {
return true; }
233 virtual void internalRemoveChild(
int index );
234 virtual void internalRemoveChild(
SoNode *child) { internalRemoveChild(internalFindChild(child)); }
235 virtual void internalRemoveAllChildren();
236 virtual void internalAddChild( SoNode *child );
237 virtual int internalFindChild(
const SoNode *child )
const;
238 virtual void internalInsertChild( SoNode *child,
int newChildIndex );
239 virtual SoNode *internalGetChild(
int index)
const {
return (*children)[index]; }
240 virtual void internalReplaceChild(
int index, SoNode *newChild);
241 virtual void internalReplaceChild( SoNode *oldChild, SoNode *newChild) { internalReplaceChild(internalFindChild(oldChild),newChild); }
244 virtual void copyContents(
const SoFieldContainer *fromFC,
249 static void transferFieldValues(
const SoPointLight *from,
252 static void valueChangedCB(
void *,SoDragger *);
254 SoFieldSensor *locationFieldSensor;
255 SoFieldSensor *colorFieldSensor;
256 static void fieldSensorCB(
void *, SoSensor *);
258 void setDragger( SoDragger *newDragger );
261 virtual SbBool readInstance(SoInput *in,
unsigned short flags);
262 virtual SbBool readChildren(SoInput *in);
267 int getNumChildren()
const {
return (children->getLength()); }
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.
SoPointLight()
Creates a point light source node with default settings.
SbBool replaceManip(SoPath *p, SoPointLight *newOne) const
Replaces the tail of the path, which must be this manipulator, with the given SoPointLight node.
SoPointLightManip()
Constructor.
SbBool replaceNode(SoPath *p)
Replaces the tail of the path with this manipulator.
SoDragger * getDragger()
Returns the dragger being used by this manipulator.
Searches for nodes in a scene graph.
Writes a scene graph to a file.