SOPATHSENSOR(3iv)
β¨ SoPathSensor β the vibe π
okay so bestie, welcome to SoPathSensor(3IV) β yes that's the manual name, we're being fancy today π
π NAME
SoPathSensor β a sensor class that can be attached to Inventor paths. she's a watcher. a girl who keeps tabs. π¦
πΈ INHERITS FROM
SoSensor > SoDelayQueueSensor > SoDataSensor > SoPathSensor
so basically she got her whole entire personality from her ancestors and she is not ashamed of it π
β¨ SYNOPSIS
#include <Inventor/sensors/SoPathSensor.h>
Methods from class SoPathSensor:
SoPathSensor()
SoPathSensor(SoSensorCB *func, void *data)
~SoPathSensor()
void attach(SoPath *path)
void detach()
SoPath * getAttachedPath() const
Methods from class SoDataSensor:
void setDeleteCallback(SoSensorCB *function, void *data)
SoNode * getTriggerNode() const
SoField * getTriggerField() const
SoPath * getTriggerPath() const
void setTriggerPathFlag(SbBool flag)
SbBool getTriggerPathFlag() const
Methods from class SoDelayQueueSensor:
void setPriority(uint32_t pri)
uint32_t getPriority()
static uint32_t getDefaultPriority()
virtual void schedule()
virtual void unschedule()
virtual SbBool isScheduled()
Methods from class SoSensor:
void setFunction(SoSensorCB *callbackFunction)
SoSensorCB * getFunction() const
void setData(void *callbackData)
void * getData() const
π DESCRIPTION
okay so picture this: path sensors detect changes to paths. like, they call a callback function whenever the path β or any node in the path β changes. π₯
and "in the path" means the exact same thing it means when you apply an action to the path. so like, any node that could possibly affect the node at the end of the path chain counts as being in the path. it's giving "everyone who ever influenced her shows up to the party" energy π
if you want the full lore on paths, go read the SoPath manual page. iykyk β¨
π METHODS
π Constructors
SoPathSensor()
SoPathSensor(SoSensorCB *func, void *data)
Creation methods, bestie. the second one takes the callback function and the data to be called when the sensor is triggered. so she knows who to text when something goes down π±
π Destructor
~SoPathSensor()
Destroys the sensor, freeing up any memory associated with it β but only after unscheduling it. she cleans up her room and then she leaves. iconic behavior honestly π«Ά
π¦ Attaching and detaching
void attach(SoPath *path)
void detach()
SoPath * getAttachedPath() const
- the
attach()method makes this sensor detect changes to the given path. she's locked in. π - the
detach()method unschedules this sensor (if it is scheduled) and makes it ignore changes to the scene graph. she's in her no-contact era π - the
getAttachedPath()method returns the path that this sensor is sensing, orNULLif it is not attached to any path. no path, no problem, she just saysNULLπ
π SEE ALSO
SoNodeSensorSoPathSensorSoDataSensor
no cap: this page lives at SoPathSensor(3IV)() β that's the header AND the footer, she's matching her own outfit, and honestly? slay π
later bestie, go attach a sensor and have a day as gorgeous as you πΈπβ¨
π¦ where this page comes from
- debian bookworm: inventor-doc 2.1.5-10+dfsg-2 Β· LGPL-2.0-or-later
- debian trixie: inventor-doc 2.1.6+ds-2 Β· LGPL-2.0-or-later
- ubuntu jammy: inventor-doc 2.1.5-10-24
- ubuntu noble: inventor-doc 2.1.5-10+dfsg-2.1build2 Β· LGPL-2.0-or-later
- ubuntu questing: inventor-doc 2.1.6+ds-2
- ubuntu resolute: inventor-doc 2.1.6.1+ds-1 Β· LGPL-2.0-or-later
- ubuntu stonking: inventor-doc 2.1.6.1+ds-1 Β· LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms