SOLOCATEHIGHLIGHT(3iv)

✨ NAME ✨

SoLocateHighlight β€” it's the special separator that performs locate highlighting, bestie πŸ’…. And yes, the manual name is SoLocateHighlight(3IV)() β€” folded in, no cap.


🌈 INHERITS FROM 🌈

The family tree is giving: SoBase > SoFieldContainer > SoNode > SoGroup > SoSeparator > SoLocateHighlight πŸ‘‘. So it's a whole lineage, periodt.


πŸ’– SYNOPSIS πŸ’–

Okay so first things first, the include is literally:

#include <Inventor/nodes/SoLocateHighlight.h>

Then the enums are:

enum Modes {
     SoLocateHighlight::AUTO  highlight when mouse is over (default)
     SoLocateHighlight::ON    always highlight
     SoLocateHighlight::OFF   never highlight
}

enum Styles {
     SoLocateHighlight::EMISSIVE  changes emissive color only (default)
     SoLocateHighlight::EMISSIVE_DIFFUSE
                                  changes emissive and diffuse colors
}

Then the fields and methods, all the exact vibes:

Fields from class SoLocateHighlight:

  • SoSFColor color
  • SoSFEnum style
  • SoSFEnum mode

Fields from class SoSeparator:

  • SoSFEnum renderCaching
  • SoSFEnum boundingBoxCaching
  • SoSFEnum renderCulling
  • SoSFEnum pickCulling

Methods from class SoLocateHighlight:

  • SoLocateHighlight()
  • static SoType getClassTypeId()

Methods from class SoSeparator:

  • static void setNumRenderCaches(int howMany)
  • static int getNumRenderCaches()

Methods from class SoGroup:

  • void addChild(SoNode *child)
  • void insertChild(SoNode *child, int newChildIndex)
  • SoNode * getChild(int index) const
  • int findChild(const SoNode *child) const
  • int getNumChildren() const
  • void removeChild(int index)
  • void removeChild(SoNode *child)
  • void removeAllChildren()
  • void replaceChild(int index, SoNode *newChild)
  • void replaceChild(SoNode *oldChild, SoNode *newChild)

Methods from class SoNode:

  • void setOverride(SbBool state)
  • SbBool isOverride() const
  • SoNode * copy(SbBool copyConnections = FALSE) const
  • virtual SbBool affectsState() const
  • static SoNode * getByName(const SbName &name)
  • static int getByName(const SbName &name, SoNodeList &list)

Methods from class SoFieldContainer:

  • void setToDefaults()
  • SbBool hasDefaultValues() const
  • SbBool fieldsAreEqual(const SoFieldContainer *fc) const
  • void copyFieldValues(const SoFieldContainer *fc, SbBool copyConnections = FALSE)
  • SbBool set(const char *fieldDataString)
  • void get(SbString &fieldDataString)
  • virtual int getFields(SoFieldList &resultList) const
  • virtual SoField * getField(const SbName &fieldName) const
  • SbBool getFieldName(const SoField *field, SbName &fieldName) const
  • SbBool isNotifyEnabled() const
  • SbBool enableNotify(SbBool flag)

Methods from class SoBase:

  • void ref()
  • void unref() const
  • void unrefNoDelete() const
  • void touch()
  • virtual SoType getTypeId() const
  • SbBool isOfType(SoType type) const
  • virtual void setName(const SbName &name)
  • virtual SbName getName() const

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so SoLocateHighlight is a subclass of SoSeparator that redraws itself in a different color when the cursor is over the contents of the separator. It's giving "notice me" energy, but make it Open Inventor. πŸ’…

The redraw happens for that separator only and not the entire window (redraw along the handle event pick path) and in the front buffer, to efficiently track the mouse motion. So it's lowkey efficient, no cap. The highlighted redraw overrides the emissive and/or diffuse color of the subgraph based on the field values in this node. Periodt.

NOTE: when using SoLightModel::BASE_COLOR (to turn lighting off) only the diffuse color will be used to render objects, so EMISSIVE_DIFFUSE must be used for this node to have any effect. Don't forget this, bestie, or your highlight will be a ghost πŸ‘».

πŸŽ€ FIELDS πŸŽ€

  • SoSFColor color β€” highlighting color - default [.3, .3, .3]. It's the main character color, bestie. πŸ’–
  • SoSFEnum style β€” highlighting draw style - default EMISSIVE. Choose your vibe.
  • SoSFEnum mode β€” Whether to highlight or not - default AUTO. The mood ring of the node. ✨

πŸ‘‘ METHODS πŸ‘‘

  • SoLocateHighlight() β€” Creates a LocateHighlight node with default settings. Fresh out the box, no cap. 🫢
  • static SoType getClassTypeId() β€” Returns type identifier for this class. So you know exactly what you're dealing with. πŸ’…

πŸ”₯ ACTION BEHAVIOR πŸ”₯

  • SoHandleEventAction β€” Checks to see if the cursor moves onto or off of the contents of the separator, and redraws appropriately (if mode is AUTO), otherwise traverses as a normal separator. It's literally keeping tabs on your mouse. πŸ–±οΈ
  • SoGLRenderAction β€” Redraws either highlighted (if cursor is over the contents of the separator when mode == AUTO or always if mode == ON), otherwise traverses as a normal separator. Slay. ✨

πŸ’œ FILE FORMAT/DEFAULTS πŸ’œ

LocateHighlight {
   renderCaching       AUTO
   boundingBoxCaching  AUTO
   renderCulling       AUTO
   pickCulling         AUTO
   mode                AUTO
   style               EMISSIVE
   color               0.3 0.3 0.3
}

🌸 SEE ALSO 🌸

SoSeparator, SoSelection, SoMaterial β€” go read those too, bestie. They're iconic in their own way. πŸ¦‹


Source/version: SoLocateHighlight(3IV)(). Date: it's blank, so no date, periodt. That's the whole manual page, bestie. Stay slaying, and may your highlights always hit. πŸ’–βœ¨πŸ‘‘