SoSpotLightManip(3)
π SoSpotLightManip π β Coin, section 3
π NAME π
SoSpotLightManip β bestie, this is the class you use to manipulate spot light nodes. That's the whole vibe. Periodt. π₯
π SYNOPSIS π
#include <Inventor/manips/SoSpotLightManip.h>
Inherits SoSpotLight.
π Public Member Functions π
virtual SoType getTypeId (void) constβ πΈSoSpotLightManip (void)β πSoDragger * getDragger (void)β π«SbBool replaceNode (SoPath *p)β π¦SbBool replaceManip (SoPath *p, SoSpotLight *newone) constβ πvirtual void doAction (SoAction *action)β β¨virtual void callback (SoCallbackAction *action)β πvirtual void GLRender (SoGLRenderAction *action)β πvirtual void getBoundingBox (SoGetBoundingBoxAction *action)β π§virtual void getMatrix (SoGetMatrixAction *action)β πvirtual void handleEvent (SoHandleEventAction *action)β π«Άvirtual void pick (SoPickAction *action)β πvirtual void search (SoSearchAction *action)β βvirtual SoChildList * getChildren (void) constβ π
π«Ά Public Member Functions inherited from SoSpotLight π«Ά
SoSpotLight (void)β π
πΈ Public Member Functions inherited from SoNode πΈ
void setOverride (const SbBool state)β π«SbBool isOverride (void) constβ πvoid setNodeType (const NodeType type)β π¦NodeType getNodeType (void) constβ πvirtual SoNode * copy (SbBool copyconnections=FALSE) constβ β¨virtual SbBool affectsState (void) constβ πvirtual void GLRenderBelowPath (SoGLRenderAction *action)β πvirtual void GLRenderInPath (SoGLRenderAction *action)β π§virtual void GLRenderOffPath (SoGLRenderAction *action)β πvirtual void rayPick (SoRayPickAction *action)β π«Άvirtual void write (SoWriteAction *action)β πvirtual void audioRender (SoAudioRenderAction *action)β βvirtual void getPrimitiveCount (SoGetPrimitiveCountAction *action)β πvirtual void grabEventsSetup (void)β π₯virtual void grabEventsCleanup (void)β πvirtual void startNotify (void)β πvirtual void notify (SoNotList *l)β πSbUniqueId getNodeId (void) constβ πvirtual void writeInstance (SoOutput *out)β β¨virtual SoNode * addToCopyDict (void) constβ πΈvirtual SoFieldContainer * copyThroughConnection (void) constβ π
π Public Member Functions inherited from SoFieldContainer π
void setToDefaults (void)β π¦SbBool hasDefaultValues (void) constβ π«SbBool fieldsAreEqual (const SoFieldContainer *container) constβ πvoid copyFieldValues (const SoFieldContainer *container, SbBool copyconnections=FALSE)β π«ΆSbBool set (const char *const fielddata)β πvoid get (SbString &fielddata)β π§virtual int getFields (SoFieldList &l) constβ πvirtual int getAllFields (SoFieldList &l) constβ βvirtual SoField * getField (const SbName &name) constβ πvirtual SoField * getEventIn (const SbName &name) constβ π₯virtual SoField * getEventOut (const SbName &name) constβ πSbBool getFieldName (const SoField *const field, SbName &name) constβ πSbBool enableNotify (const SbBool flag)β πSbBool isNotifyEnabled (void) constβ πSbBool set (const char *fielddata, SoInput *input)β β¨void get (SbString &fielddata, SoOutput *out)β πΈvirtual SbBool validateNewFieldValue (SoField *field, void *newval)β πvirtual void addWriteReference (SoOutput *out, SbBool isfromfield=FALSE)β π¦SbBool getIsBuiltIn (void) constβ π«virtual void getFieldsMemorySize (size_t &managed, size_t &unmanaged) constβ πvoid setUserData (void *userdata) constβ π«Άvoid * getUserData (void) constβ π
π Public Member Functions inherited from SoBase π
void ref (void) constβ π§void unref (void) constβ πvoid unrefNoDelete (void) constβ βint32_t getRefCount (void) constβ πvoid touch (void)β π₯SbBool isOfType (SoType type) constβ returnsTRUEif the type of this object is either the same type as type, or inherited from type. π«Άvirtual SbName getName (void) constβ πvirtual void setName (const SbName &newname)β πvoid addAuditor (void *const auditor, const SoNotRec::Type type)β πvoid removeAuditor (void *const auditor, const SoNotRec::Type type)β πconst SoAuditorList & getAuditors (void) constβ β¨SbBool shouldWrite (void)β πΈvoid assertAlive (void) constβ π
β¨ Static Public Member Functions β¨
static SoType getClassTypeId (void)β π¦static void initClass (void)β sets up the initialization for all the data that every instance of this class shares β like handing the Coin type system everything it needs to know. π«
π«Ά Static Public Member Functions inherited from SoSpotLight π«Ά
static SoType getClassTypeId (void)β πstatic void initClass (void)β sets up the initialization for all the data common to every instance of this class, like submitting the necessary info to the Coin type system. π
π§ Static Public Member Functions inherited from SoLight π§
static SoType getClassTypeId (void)β βstatic void initClass (void)β sets up the initialization for all the data common to every instance of this class, like submitting the necessary info to the Coin type system. π
π Static Public Member Functions inherited from SoNode π
static uint32_t getCompatibilityTypes (const SoType &nodetype)β π₯static SoType getClassTypeId (void)β πstatic SoNode * getByName (const SbName &name)β πstatic int getByName (const SbName &name, SoNodeList &l)β πstatic void initClass (void)β sets up the initialization for all the data common to every instance of this class, like submitting the necessary info to the Coin type system. πstatic void initClasses (void)β β¨static SbUniqueId getNextNodeId (void)β πΈstatic int getActionMethodIndex (const SoType type)β πstatic void getBoundingBoxS (SoAction *action, SoNode *node)β π¦static void GLRenderS (SoAction *action, SoNode *node)β π«static void callbackS (SoAction *action, SoNode *node)β πstatic void getMatrixS (SoAction *action, SoNode *node)β π«Άstatic void handleEventS (SoAction *action, SoNode *node)β πstatic void pickS (SoAction *action, SoNode *node)β π§static void rayPickS (SoAction *action, SoNode *node)β πstatic void searchS (SoAction *action, SoNode *node)β βstatic void writeS (SoAction *action, SoNode *node)β πstatic void audioRenderS (SoAction *action, SoNode *node)β π₯static void getPrimitiveCountS (SoAction *action, SoNode *node)β π
π Static Public Member Functions inherited from SoFieldContainer π
static void initClass (void)β sets up the initialization for all the data common to every instance of this class, like submitting the necessary info to the Coin type system. πstatic SoType getClassTypeId (void)β this static method returns theSoTypeobject that's associated with objects of this class. πstatic void cleanupClass (void)β πstatic void initCopyDict (void)β β¨static void addCopy (const SoFieldContainer *orig, const SoFieldContainer *copy)β πΈstatic SoFieldContainer * checkCopy (const SoFieldContainer *orig)β πstatic SoFieldContainer * findCopy (const SoFieldContainer *orig, const SbBool copyconnections)β π¦static void copyDone (void)β π«
π«Ά Static Public Member Functions inherited from SoBase π«Ά
static void initClass (void)β sets up the initialization for all the data common to every instance of this class, like submitting the necessary info to the Coin type system. πstatic SoType getClassTypeId (void)β this static method returns theSoTypeobject that's associated with objects of this class. πstatic void addName (SoBase *const base, const char *const name)β π§static void removeName (SoBase *const base, const char *const name)β πstatic void incrementCurrentWriteCounter (void)β βstatic void decrementCurrentWriteCounter (void)β πstatic SoBase * getNamedBase (const SbName &name, SoType type)β π₯static int getNamedBases (const SbName &name, SoBaseList &baselist, SoType type)β πstatic SbBool read (SoInput *input, SoBase *&base, SoType expectedtype)β πstatic void setInstancePrefix (const SbString &c)β πstatic void setTraceRefs (SbBool trace)β πstatic SbBool getTraceRefs (void)β β¨static SbBool connectRoute (SoInput *input, const SbName &fromnodename, const SbName &fromfieldname, const SbName &tonodename, const SbName &tofieldname)β πΈstatic SbBool readRoute (SoInput *input)β π
πΈ Protected Member Functions πΈ
virtual const SoFieldData * getFieldData (void) constβ π¦virtual ~SoSpotLightManip (void)β π«void setDragger (SoDragger *newdragger)β πvirtual void copyContents (const SoFieldContainer *fromfc, SbBool copyconnections)β π«Ά
π§ Protected Member Functions inherited from SoSpotLight π§
virtual ~SoSpotLight ()β π
π Protected Member Functions inherited from SoLight π
SoLight (void)β βvirtual ~SoLight ()β π
π₯ Protected Member Functions inherited from SoNode π₯
SoNode (void)β πvirtual ~SoNode ()β πvirtual SbBool readInstance (SoInput *in, unsigned short flags)β π
π Protected Member Functions inherited from SoFieldContainer π
SoFieldContainer (void)β β¨virtual ~SoFieldContainer ()β πΈ
π Protected Member Functions inherited from SoBase π
SoBase (void)β π¦virtual ~SoBase ()β π«virtual void destroy (void)β πSbBool hasMultipleWriteRefs (void) constβ π«ΆSbBool writeHeader (SoOutput *out, SbBool isgroup, SbBool isengine) constβ πvoid writeFooter (SoOutput *out) constβ π§virtual const char * getFileFormatName (void) constβ πvirtual SoNotRec createNotRec (void)β β
π« Static Protected Member Functions π«
static const SoFieldData ** getFieldDataPtr (void)β πstatic void transferFieldValues (const SoSpotLight *from, SoSpotLight *to)β π₯static void valueChangedCB (void *f, SoDragger *d)β πstatic void fieldSensorCB (void *f, SoSensor *d)β π
π Static Protected Member Functions inherited from SoSpotLight π
static const SoFieldData ** getFieldDataPtr (void)β π
β¨ Static Protected Member Functions inherited from SoLight β¨
static const SoFieldData ** getFieldDataPtr (void)β πΈ
π¦ Static Protected Member Functions inherited from SoNode π¦
static const SoFieldData ** getFieldDataPtr (void)β πstatic void setNextActionMethodIndex (int index)β π«static int getNextActionMethodIndex (void)β πstatic void incNextActionMethodIndex (void)β π«Άstatic void setCompatibilityTypes (const SoType &nodetype, const uint32_t bitmask)β π
π Static Protected Member Functions inherited from SoBase π
static uint32_t getCurrentWriteCounter (void)β π§static void staticDataLock (void)β πstatic void staticDataUnlock (void)β β
π Protected Attributes π
SoFieldSensor * locationFieldSensorβ πSoFieldSensor * directionFieldSensorβ π₯SoFieldSensor * angleFieldSensorβ πSoFieldSensor * colorFieldSensorβ πSoChildList * childrenβ π
π Protected Attributes inherited from SoNode π
SbUniqueId uniqueIdβ β¨
πΈ Protected Attributes inherited from SoFieldContainer πΈ
SbBool isBuiltInβ π
π« Additional Inherited Members π«
π¦ Public Types inherited from SoNode π¦
enum NodeType { INVENTOR = 0x0000, VRML1 = 0x0001, VRML2 = 0x0002,
INVENTOR_1 = 0x0004, INVENTOR_2_0 = 0x0008, INVENTOR_2_1 = 0x0010,
INVENTOR_2_5 = 0x0020, INVENTOR_2_6 = 0x0040, COIN_1_0 = 0x0080,
COIN_2_0 = 0x0100, EXTENSION = 0x0200, COIN_2_2 = 0x0400, COIN_2_3 =
0x0800, COIN_2_4 = 0x1000, INVENTOR_5_0 = 0x2000, COIN_2_5 = 0x4000,
COIN_3_0 = 0x8000, INVENTOR_6_0 = 0x10000, COIN_4_0 = 0x20000 }
Public Attributes inherited from SoSpotLight π
okay so these are the fields you inherit from your spotlight parent β they're just there, bestie, doing their thing:
SoSFVec3f locationSoSFVec3f directionSoSFFloat dropOffRateSoSFFloat cutOffAngle
Public Attributes inherited from SoLight β¨
and these come from SoLight, the grandparent vibe:
SoSFBool onSoSFFloat intensitySoSFColor color
Protected Types inherited from SoBase π
enum BaseFlags { IS_ENGINE = 0x01, IS_GROUP = 0x02 }
Static Protected Attributes inherited from SoNode π¦
static SbUniqueId nextUniqueId = 1static int nextActionMethodIndex = 0
Detailed Description π
The SoSpotLightManip class is used to manipulate spot light nodes.
okay so here's the tea on how manipulators work, and it's actually kinda iconic: you take the node you wanna edit in the scene graph, and you swap it out for the manipulator. Draggers do the actual dragging (that's the whole point, they're the hands-on part π ). And then β the glow-up moment β once you're done manipulating, the node goes back into the graph, replacing the manipulator like it was never gone. main character energy fr.
Constructor & Destructor Documentation πΈ
SoSpotLightManip::SoSpotLightManip (void )
The constructor sets up the internal SoSpotLightDragger used for manipulation.
SoSpotLightManip::~SoSpotLightManip (void ) [protected], [virtual]
Destructor. it does the cleanup thing. bye bestie π«Ά
Member Function Documentation β
SoType SoSpotLightManip::getClassTypeId (void ) [static]
This static method returns the SoType object associated with objects of this class.
SoType SoSpotLightManip::getTypeId (void ) const [virtual]
Returns the type identification of an object derived from a class inheriting SoBase. This is used for runtime type checking and "downward" casting.
Reimplemented from SoSpotLight.
const SoFieldData ** SoSpotLightManip::getFieldDataPtr (void ) [static], [protected]
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
Returns the SoFieldData class which holds information about fields in this node.
const SoFieldData * SoSpotLightManip::getFieldData (void ) const [protected], [virtual]
Returns a pointer to the class-wide field data storage object for this instance. If no fields are present, returns NULL.
Reimplemented from SoSpotLight.
SoDragger * SoSpotLightManip::getDragger (void )
Returns pointer to internal dragger.
SbBool SoSpotLightManip::replaceNode (SoPath * path)
Replaces the node specified by path with this manipulator. The manipulator will copy the field data from the node, to make it affect the state in the same way as the node.
SbBool SoSpotLightManip::replaceManip (SoPath * path, SoSpotLight * newone) const
Replaces this manipulator from the position specified by path with newnode. If newnode is NULL, an SoSpotLight will be created for you.
void SoSpotLightManip::doAction (SoAction * action) [virtual]
This function performs the typical operation of a node for any action.
Reimplemented from SoNode.
void SoSpotLightManip::callback (SoCallbackAction * action) [virtual]
Action method for SoCallbackAction.
Simply updates the state according to how the node behaves for the render action, so the application programmer can use the SoCallbackAction for extracting information about the scene graph.
Reimplemented from SoLight.
void SoSpotLightManip::GLRender (SoGLRenderAction * action) [virtual]
Action method for the SoGLRenderAction.
This is called during rendering traversals. Nodes influencing the rendering state in any way or want to throw geometry primitives at OpenGL override this method.
Reimplemented from SoSpotLight.
void SoSpotLightManip::getBoundingBox (SoGetBoundingBoxAction * action) [virtual]
Action method for the SoGetBoundingBoxAction.
Calculates bounding box and center coordinates for node and modifies the values of the action to encompass the bounding box for this node and to shift the center point for the scene more towards the one for this node.
Nodes influencing how geometry nodes calculate their bounding box also override this method to change the relevant state variables.
Reimplemented from SoNode.
void SoSpotLightManip::getMatrix (SoGetMatrixAction * action) [virtual]
Action method for SoGetMatrixAction.
Updates action by accumulating with the transformation matrix of this node (if any).
Reimplemented from SoNode.
void SoSpotLightManip::handleEvent (SoHandleEventAction * action) [virtual]
Action method for SoHandleEventAction.
Inspects the event data from action, and processes it if it is something which this node should react to.
Nodes influencing relevant state variables for how event handling is done also override this method.
Reimplemented from SoNode.
void SoSpotLightManip::pick (SoPickAction * action) [virtual]
Action method for SoPickAction.
Does common processing for SoPickAction action instances.
Reimplemented from SoNode.
void SoSpotLightManip::search (SoSearchAction * action) [virtual]
Action method for SoSearchAction.
Compares the search criteria from the action to see if this node is a match. Searching is done by matching up all criteria set up in the SoSearchAction β if any of the requested criteria is a miss, the search is not deemed successful for the node.
See also: SoSearchAction
Reimplemented from SoNode.
SoChildList * SoSpotLightManip::getChildren (void ) const [virtual]
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
Returns the children of this node. This node only has the dragger as a child.
Reimplemented from SoNode.
void SoSpotLightManip::setDragger (SoDragger * newdragger) [protected]
Set dragger to use for user interaction.
void SoSpotLightManip::copyContents (const SoFieldContainer * from, SbBool copyconnections) [protected], [virtual]
Makes a deep copy of all data of from into this instance, except external scene graph references if copyconnections is FALSE.
This is the method that should be overridden by extension node / engine / dragger / whatever subclasses which need to account for internal data that are not handled automatically.
for copying nodes from application code, you should not invoke this function directly β call the SoNode::copy() function instead, bestie. don't skip steps π
SoNode * mynewnode = templatenode->copy();
The same also goes for engines.
Make sure that when you override the copyContents() method in your extension class that you also make it call upwards to its parent superclass in the inheritance hierarchy, as copyContents() in for instance SoNode and SoFieldContainer does important work. It should go something like this:
void
MyCoinExtensionNode::copyContents(const SoFieldContainer * from,
SbBool copyconnections)
{
// let parent superclasses do their thing (copy fields, copy
// instance name, etc.)
SoNode::copyContents(from, copyconnections);
// [..then copy internal data..]
}
Reimplemented from SoNode.
void SoSpotLightManip::transferFieldValues (const SoSpotLight * from, SoSpotLight * to) [static], [protected]
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
Copies field values.
void SoSpotLightManip::valueChangedCB (void * m, SoDragger * dragger) [static], [protected]
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
Updates the fields when the motion matrix changes.
void SoSpotLightManip::fieldSensorCB (void * m, SoSensor * d) [static], [protected]
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
Updates the dragger whenever a field is modified.
Member Data Documentation π
SoFieldSensor* SoSpotLightManip::locationFieldSensor [protected]
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
SoFieldSensor* SoSpotLightManip::directionFieldSensor [protected]
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
SoFieldSensor* SoSpotLightManip::angleFieldSensor [protected]
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
SoFieldSensor* SoSpotLightManip::colorFieldSensor [protected]
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
SoChildList* SoSpotLightManip::children [protected]
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
Author π
Generated automatically by Doxygen for Coin from the source code.
okay and that's the whole page bestie, we did it π₯³ this one's Coin version 4.0.10, dated Thu Jun 25 2026 00:00:00, and it's literally the SoSpotLightManip(3) page β no cap, go forth and manipulate those spotlights πβ¨π¦
π¦ where this page comes from
- fedora 43: Coin4-devel 4.0.10-1.fc43 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 43: Coin4-devel 4.0.10-1.fc43 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 44: Coin4-devel 4.0.10-1.fc44 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 44: Coin4-devel 4.0.10-1.fc44 Β· BSD-3-Clause AND GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms