56#ifndef _SO_DIRECTIONAL_LIGHT_MANIP_
57#define _SO_DIRECTIONAL_LIGHT_MANIP_
249 bool copyConnections);
267 int getNumChildren()
const {
return (children->
getLength()); }
#define SoEXTENDER
Provide inline template functions for abs, swap, min, max, and clamp.
#define INVENTOR_API
Disable some annoying warnings on MSVC 6.
#define SO_NODE_HEADER(className)
Non-abstract classes have everything abstract classes have, plus a way to create an instance.
int getLength() const
Returns number of pointers in list.
Abstract base class for all actions.
Performs a generic traversal of the scene graph.
This class maintains a list of child nodes for any node.
Directional light node with 3D interface for editing direction.
virtual ~SoDirectionalLightManip()
virtual void search(SoSearchAction *action)
virtual void getMatrix(SoGetMatrixAction *action)
SoDirectionalLightManip()
Constructor.
bool replaceNode(SoPath *p)
Replaces the tail of the path with this manipulator.
SoFieldSensor * directionFieldSensor
virtual void getBoundingBox(SoGetBoundingBoxAction *action)
virtual void doAction(SoAction *action)
These functions implement all actions for nodekits.
bool replaceManip(SoPath *p, SoDirectionalLight *newOne) const
Replaces the tail of the path, which must be this manipulator, with the given SoDirectionalLight node...
virtual SoChildList * getChildren() const
Returns pointer to children, or NULL if none.
static void initClass()
initialize the class
virtual void pick(SoPickAction *action)
SoFieldSensor * colorFieldSensor
static void fieldSensorCB(void *, SoSensor *)
virtual void GLRender(SoGLRenderAction *action)
Creates a light source during rendering.
void setDragger(SoDragger *newDragger)
virtual void handleEvent(SoHandleEventAction *action)
static void valueChangedCB(void *, SoDragger *)
static void transferFieldValues(const SoDirectionalLight *from, SoDirectionalLight *to)
SoDragger * getDragger()
Returns a pointer to the dragger being used by this manipulator.
virtual void callback(SoCallbackAction *action)
virtual void copyContents(const SoFieldContainer *fromFC, bool copyConnections)
Redefines this to also copy the dragger.
Node representing a directional light source.
Base class for nodekits that move in response to click-drag-release mouse events.
Abstract base class for objects that contain fields.
Sensor class that can be attached to Inventor fields.
Renders a scene graph using OpenGL.
Computes bounding box of a scene.
Computes transformation matrix for subgraph.
Allows nodes in a graph to receive input events.
Path that points to a list of hierarchical nodes.
Abstract base class for picking objects in a scene.
Searches for nodes in a scene graph.
Abstract base class for Inventor sensors.