46#ifndef _SO_SPOT_LIGHT_MANIP_
47#define _SO_SPOT_LIGHT_MANIP_
242 bool copyConnections);
261 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.
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.
Description: This file defines a manipulator for a spot light nodes.
SoFieldSensor * locationFieldSensor
virtual void pick(SoPickAction *action)
static void valueChangedCB(void *, SoDragger *)
virtual SoChildList * getChildren() const
Returns pointer to children, or NULL if none.
void setDragger(SoDragger *newDragger)
virtual void copyContents(const SoFieldContainer *fromFC, bool copyConnections)
Redefines this to also copy the dragger.
virtual ~SoSpotLightManip()
SoFieldSensor * colorFieldSensor
virtual void GLRender(SoGLRenderAction *action)
Creates a light source during rendering.
virtual void doAction(SoAction *action)
These functions implement all actions for nodekits.
bool replaceManip(SoPath *p, SoSpotLight *newOne) const
Replaces the tail of the path, which must be this manipulator, with the given SoSpotLight node.
SoDragger * getDragger()
Returns a pointer to the dragger being used by this manipulator.
static void fieldSensorCB(void *, SoSensor *)
SoFieldSensor * directionFieldSensor
virtual void search(SoSearchAction *action)
virtual void handleEvent(SoHandleEventAction *action)
static void transferFieldValues(const SoSpotLight *from, SoSpotLight *to)
SoSpotLightManip()
Constructor.
virtual void callback(SoCallbackAction *action)
bool replaceNode(SoPath *p)
Replaces the tail of the path with this manipulator.
SoFieldSensor * angleFieldSensor
virtual void getBoundingBox(SoGetBoundingBoxAction *action)
virtual void getMatrix(SoGetMatrixAction *action)
Node representing a spotlight source.