SoSpotLightManip(3)

πŸ“¦
version 4.0.10 Β· 4 versions
, in fedora 43, fedora 44

πŸ’– 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 β€” returns TRUE if 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 the SoType object 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 the SoType object 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 location
  • SoSFVec3f direction
  • SoSFFloat dropOffRate
  • SoSFFloat cutOffAngle

Public Attributes inherited from SoLight ✨

and these come from SoLight, the grandparent vibe:

  • SoSFBool on
  • SoSFFloat intensity
  • SoSFColor color

Protected Types inherited from SoBase πŸŽ€

  • enum BaseFlags { IS_ENGINE = 0x01, IS_GROUP = 0x02 }

Static Protected Attributes inherited from SoNode πŸ¦‹

  • static SbUniqueId nextUniqueId = 1
  • static 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