SoDragger(3)

๐Ÿ“ฆ
version 4.0.10 ยท 4 versions
, in fedora 43, fedora 44

๐ŸŽ€ NAME ๐ŸŽ€

okay bestie, pull up. this is <pink>SoDragger</pink>, page <pink>SoDragger(3)</pink> from the <purple>Coin</purple> manual, and she is the base class for all draggers. every single one. the blueprint. the mother. the moment. ๐Ÿ’…


โœจ SYNOPSIS โœจ

#include <Inventor/draggers/SoDragger.h>

Inherits SoInteractionKit.

Inherited by โ€” bestie, the entire dragger fam is literally right here, no cap:

  • SoCenterballDragger
  • SoDirectionalLightDragger
  • SoDragPointDragger
  • SoHandleBoxDragger
  • SoJackDragger
  • SoPointLightDragger
  • SoRotateCylindricalDragger
  • SoRotateDiscDragger
  • SoRotateSphericalDragger
  • SoScale1Dragger
  • SoScale2Dragger
  • SoScale2UniformDragger
  • SoScaleUniformDragger
  • SoSpotLightDragger
  • SoTabBoxDragger
  • SoTabPlaneDragger
  • SoTrackballDragger
  • SoTransformBoxDragger
  • SoTransformerDragger
  • SoTranslate1Dragger
  • and SoTranslate2Dragger

that's twenty-one draggers pulling up to one class. it's giving dynasty. ๐Ÿ‘‘


๐Ÿ’– Public Types ๐Ÿ’–

  • enum ProjectorFrontSetting { FRONT, BACK, USE_PICK }

๐Ÿซถ Public Types inherited from SoInteractionKit

  • enum CacheEnabled { OFF, ON, AUTO }

๐ŸŒธ 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 Member Functions ๐Ÿ”ฅ

okay so here's the full menu of what she can do herself, every single one, don't skip:

  • virtual SoType getTypeId (void) const
  • virtual const SoNodekitCatalog * getNodekitCatalog (void) const
  • virtual void callback (SoCallbackAction *action)
  • virtual void GLRender (SoGLRenderAction *action)
  • virtual void getMatrix (SoGetMatrixAction *action)
  • virtual void rayPick (SoRayPickAction *action)
  • virtual void search (SoSearchAction *action)
  • virtual void write (SoWriteAction *action)
  • virtual void getPrimitiveCount (SoGetPrimitiveCountAction *action)
  • void setProjectorEpsilon (const float epsilon)
  • float getProjectorEpsilon (void) const
  • void addStartCallback (SoDraggerCB *func, void *data=NULL)
  • void removeStartCallback (SoDraggerCB *func, void *data=NULL)
  • void addMotionCallback (SoDraggerCB *func, void *data=NULL)
  • void removeMotionCallback (SoDraggerCB *func, void *data=NULL)
  • void addFinishCallback (SoDraggerCB *func, void *data=NULL)
  • void removeFinishCallback (SoDraggerCB *func, void *data=NULL)
  • void addValueChangedCallback (SoDraggerCB *func, void *data=NULL)
  • void removeValueChangedCallback (SoDraggerCB *func, void *data=NULL)
  • void setMinGesture (int pixels)
  • int getMinGesture (void) const
  • SbBool enableValueChangedCallbacks (SbBool newval)
  • const SbMatrix & getMotionMatrix (void)
  • void addOtherEventCallback (SoDraggerCB *func, void *data=NULL)
  • void removeOtherEventCallback (SoDraggerCB *func, void *data=NULL)
  • void registerChildDragger (SoDragger *child)
  • void unregisterChildDragger (SoDragger *child)
  • void registerChildDraggerMovingIndependently (SoDragger *child)
  • void unregisterChildDraggerMovingIndependently (SoDragger *child)
  • SbMatrix getLocalToWorldMatrix (void)
  • SbMatrix getWorldToLocalMatrix (void)
  • SbVec3f getLocalStartingPoint (void)
  • SbVec3f getWorldStartingPoint (void)
  • void getPartToLocalMatrix (const SbName &partname, SbMatrix &parttolocalmatrix, SbMatrix &localtopartmatrix)
  • void transformMatrixLocalToWorld (const SbMatrix &frommatrix, SbMatrix &tomatrix)
  • void transformMatrixWorldToLocal (const SbMatrix &frommatrix, SbMatrix &tomatrix)
  • void transformMatrixToLocalSpace (const SbMatrix &frommatrix, SbMatrix &tomatrix, const SbName &fromspacepartname)
  • virtual void setMotionMatrix (const SbMatrix &newmatrix)
  • void valueChanged (void)
  • const SbMatrix & getStartMotionMatrix (void)
  • virtual void saveStartParameters (void)
  • const SoPath * getPickPath (void) const
  • const SoEvent * getEvent (void) const
  • SoPath * createPathToThis (void)
  • const SoPath * getSurrogatePartPickedOwner (void) const
  • const SbName & getSurrogatePartPickedName (void) const
  • const SoPath * getSurrogatePartPickedPath (void) const
  • void setStartingPoint (const SoPickedPoint *newpoint)
  • void setStartingPoint (const SbVec3f &newpoint)
  • const SbViewVolume & getViewVolume (void)
  • void setViewVolume (const SbViewVolume &vol)
  • const SbViewportRegion & getViewportRegion (void)
  • void setViewportRegion (const SbViewportRegion &reg)
  • SoHandleEventAction * getHandleEventAction (void) const
  • void setHandleEventAction (SoHandleEventAction *newAction)
  • void setTempPathToThis (const SoPath *somethingclose)
  • virtual void grabEventsSetup (void)
  • virtual void grabEventsCleanup (void)
  • void workFieldsIntoTransform (SbMatrix &mtx)
  • void setFrontOnProjector (ProjectorFrontSetting newval)
  • ProjectorFrontSetting getFrontOnProjector (void) const

๐Ÿ’œ Public Member Functions inherited from SoInteractionKit

  • SoInteractionKit (void)
  • virtual SbBool setPartAsPath (const SbName &partname, SoPath *path)
  • virtual SbBool setPartAsDefault (const SbName &partname, SoNode *node, SbBool onlyifdefault=TRUE)
  • virtual SbBool setPartAsDefault (const SbName &partname, const SbName &nodename, SbBool onlyifdefault=TRUE)
  • SbBool isPathSurrogateInMySubgraph (const SoPath *path, SoPath *&pathToOwner, SbName &surrogatename, SoPath *&surrogatepath, SbBool fillargs=TRUE)
  • SbBool isPathSurrogateInMySubgraph (const SoPath *path)
  • virtual SbBool setPart (const SbName &partname, SoNode *from)

๐Ÿฆ‹ Public Member Functions inherited from SoBaseKit

  • SoBaseKit (void)
  • virtual SoNode * getPart (const SbName &partname, SbBool makeifneeded)
  • SbString getPartString (const SoBase *part)
  • virtual SoNodeKitPath * createPathToPart (const SbName &partname, SbBool makeifneeded, const SoPath *pathtoextend=NULL)
  • SbBool set (const char *namevaluepairliststring)
  • SbBool set (const char *partnamestring, const char *parameterstring)
  • virtual void doAction (SoAction *action)
  • virtual SoChildList * getChildren (void) const
  • void printDiagram (void)
  • void printSubDiagram (const SbName &rootname, int level)
  • void printTable (void)
  • virtual void addWriteReference (SoOutput *out, SbBool isfromfield=FALSE)
  • SbBool forceChildDrivenWriteRefs (SoOutput *out)

๐ŸŒˆ 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 pick (SoPickAction *action)
  • virtual void audioRender (SoAudioRenderAction *action)
  • virtual void startNotify (void)
  • virtual void notify (SoNotList *l)
  • SbUniqueId getNodeId (void) const
  • virtual void writeInstance (SoOutput *out)
  • 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)
  • 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 of the same type or inherited from type. yes ma'am. โœจ
  • 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 โญ

the class-level ones, aka the ones you call on <pink>SoDragger</pink> herself, not on an instance. iconic behaviour tbh:

  • static SoType getClassTypeId (void)
  • static const SoNodekitCatalog * getClassNodekitCatalog (void)
  • static void setMinScale (float newminscale)
  • static float getMinScale (void)
  • static void workValuesIntoTransform (SbMatrix &mtx, const SbVec3f *translationptr, const SbRotation *rotationptr, const SbVec3f *scalefactorptr, const SbRotation *scaleorientationptr, const SbVec3f *centerptr)
  • static void getTransformFast (SbMatrix &mtx, SbVec3f &translation, SbRotation &rotation, SbVec3f &scalefactor, SbRotation &scaleorientation, const SbVec3f &center)
  • static void getTransformFast (SbMatrix &mtx, SbVec3f &translation, SbRotation &rotation, SbVec3f &scalefactor, SbRotation &scaleorientation)
  • static SbMatrix appendTranslation (const SbMatrix &mtx, const SbVec3f &translation, const SbMatrix *conversion=NULL)
  • static SbMatrix appendScale (const SbMatrix &mtx, const SbVec3f &scale, const SbVec3f &scalecenter, const SbMatrix *conversion=NULL)
  • static SbMatrix appendRotation (const SbMatrix &mtx, const SbRotation &rot, const SbVec3f &rotcenter, const SbMatrix *conversion=NULL)
  • static void initClass (void)
  • static void initClasses (void)

๐Ÿ‘‘ Static Public Member Functions inherited from SoInteractionKit

  • static SoType getClassTypeId (void)
  • static const SoNodekitCatalog * getClassNodekitCatalog (void)
  • static void initClass (void) โ€” sets up initialization for data common to all instances of this class, like submitting necessary information to the Coin type system. ๐Ÿซถ
  • static void setSwitchValue (SoNode *node, const int newVal)

๐Ÿ’ซ Static Public Member Functions inherited from SoBaseKit

  • static SoType getClassTypeId (void)
  • static void initClass (void)
  • static const SoNodekitCatalog * getClassNodekitCatalog (void)
  • static SbBool isSearchingChildren (void)
  • static void setSearchingChildren (const SbBool newval)

okay bestie that's the whole surface area of the class and the whole inheritance stack laid out. part 2 is coming, don't go anywhere. ๐Ÿ’–

โœจ Static Public Member Functions inherited from SoNode โœจ

  • static uint32_t getCompatibilityTypes (const SoType &nodetype) โ€” just a lil static function, no cap. ๐Ÿ’…
  • static SoType getClassTypeId (void) โ€” she returns the type ID, periodt. โœจ
  • static SoNode * getByName (const SbName &name) โ€” grab a node by its name, bestie. ๐Ÿฆ‹
  • static int getByName (const SbName &name, SoNodeList &l) โ€” same energy, but she fills up a list for you. ๐ŸŽ€
  • static void initClass (void) โ€” okay so this one sets up initialization for data common to all instances of this class, like submitting necessary information to the Coin type system. ๐Ÿ’–
  • static void initClasses (void) โ€” plural vibes, she initializes all the classes. ๐ŸŒˆ
  • static SbUniqueId getNextNodeId (void) โ€” next node ID, coming right up. โญ
  • static int getActionMethodIndex (const SoType type) โ€” action method index, iykyk. ๐Ÿ”ฅ
  • static void getBoundingBoxS (SoAction *action, SoNode *node) โ€” bounding box action, slay. ๐Ÿ’…
  • static void GLRenderS (SoAction *action, SoNode *node) โ€” GL render action, main character energy. ๐Ÿ‘‘
  • static void callbackS (SoAction *action, SoNode *node) โ€” callback action, she's giving utility. ๐Ÿซถ
  • static void getMatrixS (SoAction *action, SoNode *node) โ€” matrix action, lowkey iconic. ๐Ÿงš
  • static void handleEventS (SoAction *action, SoNode *node) โ€” handle event action, the way she does it. ๐Ÿ’€
  • static void pickS (SoAction *action, SoNode *node) โ€” pick action, fr fr. ๐Ÿ“
  • static void rayPickS (SoAction *action, SoNode *node) โ€” ray pick action, no cap. โญ
  • static void searchS (SoAction *action, SoNode *node) โ€” search action, she's searching. ๐Ÿ’œ
  • static void writeS (SoAction *action, SoNode *node) โ€” write action, periodt. ๐Ÿ’…
  • static void audioRenderS (SoAction *action, SoNode *node) โ€” audio render action, she's making noise. ๐ŸŽ€
  • static void getPrimitiveCountS (SoAction *action, SoNode *node) โ€” primitive count action, bestie. ๐ŸŒธ

โœจ Static Public Member Functions inherited from SoFieldContainer โœจ

  • static void initClass (void) โ€” sets up initialization for data common to all instances of this class, like submitting necessary information to the Coin type system. ๐Ÿ’–
  • static SoType getClassTypeId (void) โ€” this static method returns the SoType object associated with objects of this class. โœจ
  • static void cleanupClass (void) โ€” cleanup class, she's tidying up. ๐Ÿงš
  • static void initCopyDict (void) โ€” init copy dict, lowkey important. ๐Ÿฆ‹
  • static void addCopy (const SoFieldContainer *orig, const SoFieldContainer *copy) โ€” add a copy, no cap. โญ
  • static SoFieldContainer * checkCopy (const SoFieldContainer *orig) โ€” check copy, she's checking. ๐Ÿ”ฅ
  • static SoFieldContainer * findCopy (const SoFieldContainer *orig, const SbBool copyconnections) โ€” find copy, iykyk. ๐Ÿ’…
  • static void copyDone (void) โ€” copy done, periodt. ๐Ÿ‘‘

โœจ Static Public Member Functions inherited from SoBase โœจ

  • static void initClass (void) โ€” sets up initialization for data common to all instances of this class, like submitting necessary information to the Coin type system. ๐Ÿ’–
  • static SoType getClassTypeId (void) โ€” this static method returns the SoType object associated with objects of this class. โœจ
  • static void addName (SoBase *const base, const char *const name) โ€” add a name, bestie. ๐ŸŽ€
  • static void removeName (SoBase *const base, const char *const name) โ€” remove a name, she's deleting. ๐Ÿฆ‹
  • static void incrementCurrentWriteCounter (void) โ€” increment that write counter. โญ
  • static void decrementCurrentWriteCounter (void) โ€” decrement that write counter. ๐Ÿ”ฅ
  • static SoBase * getNamedBase (const SbName &name, SoType type) โ€” get a named base. ๐Ÿ’…
  • static int getNamedBases (const SbName &name, SoBaseList &baselist, SoType type) โ€” get named bases, plural energy. ๐Ÿ‘‘
  • static SbBool read (SoInput *input, SoBase *&base, SoType expectedtype) โ€” read, she's reading. ๐ŸŒธ
  • static void setInstancePrefix (const SbString &c) โ€” set instance prefix. ๐Ÿงš
  • static void setTraceRefs (SbBool trace) โ€” set trace refs. โญ
  • static SbBool getTraceRefs (void) โ€” get trace refs. ๐Ÿ”ฅ
  • static SbBool connectRoute (SoInput *input, const SbName &fromnodename, const SbName &fromfieldname, const SbName &tonodename, const SbName &tofieldname) โ€” connect route, no cap. ๐Ÿ’…
  • static SbBool readRoute (SoInput *input) โ€” read route, periodt. ๐Ÿ‘‘

โœจ Public Attributes โœจ

  • SoSFBool isActive โ€” she's active, bestie. ๐Ÿ’–

โœจ Public Attributes inherited from SoInteractionKit โœจ

  • SoSFEnum renderCaching โ€” render caching. โœจ
  • SoSFEnum boundingBoxCaching โ€” bounding box caching. ๐ŸŽ€
  • SoSFEnum renderCulling โ€” render culling. ๐Ÿฆ‹
  • SoSFEnum pickCulling โ€” pick culling. โญ

โœจ Protected Member Functions โœจ

  • virtual const SoFieldData * getFieldData (void) const โ€” get field data, she's virtual. ๐Ÿ”ฅ
  • SoDragger (void) โ€” the constructor, bestie. ๐Ÿ’…
  • virtual ~SoDragger (void) โ€” the destructor, she's virtual. ๐Ÿ‘‘
  • SbVec2f getNormalizedLocaterPosition (void) โ€” get normalized locater position. ๐ŸŒธ
  • SbVec2s getLocaterPosition (void) โ€” get locater position. ๐Ÿงš
  • SbVec2s getStartLocaterPosition (void) const โ€” get start locater position. โญ
  • void setStartLocaterPosition (SbVec2s p) โ€” set start locater position. ๐Ÿ”ฅ
  • SbBool isAdequateConstraintMotion (void) โ€” is adequate constraint motion, iykyk. ๐Ÿ’…
  • virtual SbBool shouldGrabBasedOnSurrogate (const SoPath *pickpath, const SoPath *surrogatepath) โ€” should grab based on surrogate. ๐Ÿ‘‘
  • void setCameraInfo (SoAction *action) โ€” set camera info. ๐ŸŒธ
  • virtual void handleEvent (SoHandleEventAction *ha) โ€” handle event, she's virtual. ๐Ÿงš
  • void transferMotion (SoDragger *child) โ€” transfer motion to a child. โญ
  • void setIgnoreInBbox (SbBool newval) โ€” set ignore in bbox. ๐Ÿ”ฅ
  • SbBool isIgnoreInBbox (void) โ€” is ignore in bbox. ๐Ÿ’…
  • virtual void getBoundingBox (SoGetBoundingBoxAction *action) โ€” get bounding box. ๐Ÿ‘‘
  • void setActiveChildDragger (SoDragger *newchilddragger) โ€” set active child dragger. ๐ŸŒธ
  • SoDragger * getActiveChildDragger (void) const โ€” get active child dragger. ๐Ÿงš
  • virtual void setDefaultOnNonWritingFields (void) โ€” set default on non-writing fields. โญ
  • void updateDraggerCache (const SoPath *path) โ€” update dragger cache. ๐Ÿ”ฅ
  • virtual const SoPickedPoint * getPickedPointForStart (SoHandleEventAction *action) โ€” get picked point for start. ๐Ÿ’…

โœจ Protected Member Functions inherited from SoInteractionKit โœจ

  • virtual ~SoInteractionKit () โ€” destructor, virtual energy. ๐Ÿ‘‘
  • virtual void copyContents (const SoFieldContainer *fromFC, SbBool copyConnections) โ€” copy contents. ๐ŸŒธ
  • virtual SbBool setPart (const int partNum, SoNode *node) โ€” set part. ๐Ÿงš
  • virtual SbBool readInstance (SoInput *in, unsigned short flags) โ€” read instance. โญ
  • virtual SbBool setAnyPartAsDefault (const SbName &partname, SoNode *node, SbBool anypart=TRUE, SbBool onlyifdefault=TRUE) โ€” set any part as default, first overload. ๐Ÿ”ฅ
  • virtual SbBool setAnyPartAsDefault (const SbName &partname, const SbName &nodename, SbBool anypart=TRUE, SbBool onlyifdefault=TRUE) โ€” set any part as default, second overload. ๐Ÿ’…
  • SbBool setAnySurrogatePath (const SbName &name, SoPath *path, SbBool leafcheck=FALSE, SbBool publiccheck=FALSE) โ€” set any surrogate path. ๐Ÿ‘‘
  • virtual SbBool setUpConnections (SbBool onoff, SbBool doitalways=FALSE) โ€” set up connections. ๐ŸŒธ
  • void connectSeparatorFields (SoSeparator *dest, SbBool onOff) โ€” connect separator fields. ๐Ÿงš

โœจ Protected Member Functions inherited from SoBaseKit โœจ

  • virtual ~SoBaseKit () โ€” destructor, virtual. โญ
  • virtual SoNode * addToCopyDict (void) const โ€” add to copy dict. ๐Ÿ”ฅ
  • SoGroup * getContainerNode (const SbName &listname, SbBool makeifneeded=TRUE) โ€” get container node. ๐Ÿ’…
  • virtual SoNode * getAnyPart (const SbName &partname, SbBool makeifneeded, SbBool leafcheck=FALSE, SbBool publiccheck=FALSE) โ€” get any part. ๐Ÿ‘‘
  • virtual SoNodeKitPath * createPathToAnyPart (const SbName &partname, SbBool makeifneeded, SbBool leafcheck=FALSE, SbBool publiccheck=FALSE, const SoPath *pathtoextend=NULL) โ€” create path to any part. ๐ŸŒธ
  • virtual SbBool setAnyPart (const SbName &partname, SoNode *from, SbBool anypart=TRUE) โ€” set any part. ๐Ÿงš
  • void createNodekitPartsList (void) โ€” create nodekit parts list. โญ
  • void createFieldList (void) โ€” create field list. ๐Ÿ”ฅ
  • virtual void createDefaultParts (void) โ€” create default parts. ๐Ÿ’…
  • const SoNodekitParts * getNodekitPartsList (void) const โ€” get nodekit parts list. ๐Ÿ‘‘
  • const SbList< SoSFNode * > & getCatalogInstances (void) const โ€” get catalog instances. ๐ŸŒธ
  • void catalogError (void) โ€” catalog error, she's giving error. ๐Ÿงš
  • void countMyFields (SoOutput *out) โ€” count my fields. โญ

โœจ Protected Member Functions inherited from SoNode โœจ

  • SoNode (void) โ€” constructor. ๐Ÿ”ฅ
  • virtual ~SoNode () โ€” destructor. ๐Ÿ’…

โœจ Protected Member Functions inherited from SoFieldContainer โœจ

  • SoFieldContainer (void) โ€” constructor. ๐Ÿ‘‘
  • virtual ~SoFieldContainer () โ€” destructor. ๐ŸŒธ

โœจ Protected Member Functions inherited from SoBase โœจ

  • SoBase (void) โ€” constructor. ๐Ÿงš
  • virtual ~SoBase () โ€” destructor. โญ
  • virtual void destroy (void) โ€” destroy, dramatic. ๐Ÿ”ฅ
  • SbBool hasMultipleWriteRefs (void) const โ€” has multiple write refs. ๐Ÿ’…
  • SbBool writeHeader (SoOutput *out, SbBool isgroup, SbBool isengine) const โ€” write header. ๐Ÿ‘‘
  • void writeFooter (SoOutput *out) const โ€” write footer. ๐ŸŒธ
  • virtual const char * getFileFormatName (void) const โ€” get file format name. ๐Ÿงš
  • virtual SoNotRec createNotRec (void) โ€” create not rec. โญ

โœจ Static Protected Member Functions โœจ

  • static const SoFieldData ** getFieldDataPtr (void) โ€” get field data ptr. ๐Ÿ”ฅ
  • static const SoNodekitCatalog ** getClassNodekitCatalogPtr (void) โ€” get class nodekit catalog ptr. ๐Ÿ’…
  • static void childTransferMotionAndValueChangedCB (void *, SoDragger *) โ€” child transfer motion and value changed callback. ๐Ÿ‘‘
  • static void childValueChangedCB (void *, SoDragger *) โ€” child value changed callback. ๐ŸŒธ
  • static void childStartCB (void *, SoDragger *) โ€” child start callback. ๐Ÿงš
  • static void childMotionCB (void *, SoDragger *) โ€” child motion callback. โญ
  • static void childFinishCB (void *, SoDragger *) โ€” child finish callback. ๐Ÿ”ฅ
  • static void childOtherEventCB (void *, SoDragger *) โ€” child other event callback. ๐Ÿ’…

โœจ Static Protected Member Functions inherited from SoInteractionKit โœจ

  • static const SoFieldData ** getFieldDataPtr (void) โ€” get field data ptr. ๐Ÿ‘‘
  • static const SoNodekitCatalog ** getClassNodekitCatalogPtr (void) โ€” get class nodekit catalog ptr. ๐ŸŒธ
  • static void readDefaultParts (const char *fileName, const char defaultBuffer[], int defBufSize) โ€” read default parts. ๐Ÿงš
  • static void fieldSensorCB (void *, SoSensor *) โ€” field sensor callback. โญ

โœจ Static Protected Member Functions inherited from SoBaseKit โœจ

  • static const SoFieldData ** getFieldDataPtr (void) โ€” get field data ptr. ๐Ÿ”ฅ
  • static const SoNodekitCatalog ** getClassNodekitCatalogPtr (void) โ€” get class nodekit catalog ptr. ๐Ÿ’…

โœจ Static Protected Member Functions inherited from SoNode โœจ

  • static const SoFieldData ** getFieldDataPtr (void) โ€” get field data ptr. ๐Ÿ‘‘
  • static void setNextActionMethodIndex (int index) โ€” set next action method index. ๐ŸŒธ
  • static int getNextActionMethodIndex (void) โ€” get next action method index. ๐Ÿงš
  • static void incNextActionMethodIndex (void) โ€” inc next action method index. โญ
  • static void setCompatibilityTypes (const SoType &nodetype, const uint32_t bitmask) โ€” set compatibility types. ๐Ÿ”ฅ

โœจ Static Protected Member Functions inherited from SoBase โœจ

  • static uint32_t getCurrentWriteCounter (void) โ€” get current write counter. ๐Ÿ’…
  • static void staticDataLock (void) โ€” static data lock. ๐Ÿ‘‘
  • static void staticDataUnlock (void) โ€” static data unlock. ๐ŸŒธ

โœจ Protected Attributes โœจ

  • SoSFNode motionMatrix โ€” motion matrix, she's protected. ๐Ÿงš

โœจ Protected Attributes inherited from SoInteractionKit โœจ

  • SoSFNode geomSeparator โ€” geom separator. โญ
  • SoSFNode topSeparator โ€” top separator. ๐Ÿ”ฅ
  • SoFieldSensor * fieldSensor โ€” field sensor. ๐Ÿ’…
  • SoSeparator * oldTopSep โ€” old top sep. ๐Ÿ‘‘

โœจ Protected Attributes inherited from SoBaseKit โœจ

  • SoSFNode callbackList โ€” callback list. ๐ŸŒธ
  • SoChildList * children โ€” children. ๐Ÿงš
  • SbBool connectionsSetUp โ€” connections set up. โญ

โœจ Protected Attributes inherited from SoNode โœจ

  • SbUniqueId uniqueId โ€” unique ID. ๐Ÿ”ฅ

โœจ Protected Attributes inherited from SoFieldContainer โœจ

  • SbBool isBuiltIn โ€” is built in. ๐Ÿ’…

โœจ Additional Inherited Members โœจ

โœจ Protected Types inherited from SoBase โœจ

  • enum BaseFlags { IS_ENGINE = 0x01, IS_GROUP = 0x02 } โ€” the flags, periodt. ๐Ÿ‘‘

โœจ Static Protected Attributes inherited from SoNode โœจ

  • static SbUniqueId nextUniqueId = 1 โ€” next unique ID starts at 1. ๐ŸŒธ
  • static int nextActionMethodIndex = 0 โ€” next action method index starts at 0. ๐Ÿงš

๐Ÿ’– DETAILED DESCRIPTION ๐Ÿ’–

okay bestie, sit down, hydrate, because this one's the whole vibe โœจ

The SoDragger class is the base class for all draggers. Like, the mother of all draggers. The blueprint. The blueprint-est blueprint.

So what even is a dragger, you ask? Great question, queen. Draggers are a mechanism used for letting the end-users of your application code interact with elements in 3D โ€” by scaling, rotating or translating geometry, or other instances in the scene (like cameras ๐Ÿ‘€ or light sources ๐Ÿ’ก). It's giving "grab the thing and move the thing".

For a very thorough introduction and tutorial to the dragger classes and the general concepts, we highkey advise you to consult The Inventor Mentor, ISBN 0-201-62495-8, chapter 15. That's the assigned reading, no skipping ๐Ÿ“š

This is the common superclass for all dragger classes.

It holds the current motion matrix, and offers lots of convenience methods to build from for its subclasses โ€” that is, the non-abstract dragger classes to use as nodes in your scene graph.

The motion matrix is used to modify the model matrix during traversal, and this is a common dragger mechanism โ€” all draggers should update this during dragging. Every single one. No exceptions, no excuses ๐Ÿ’…

A number of the Coin dragger classes have built-in convenience wrapper classes, called manipulators. See for instance the SoTrackballDragger / SoTrackballManip pair. They're a duo. A dynamic. Iconic honestly.

The matching manipulator class for any dragger class has basically two convenient additions to the functionality of the standalone dragger:

  1. it makes swapping the dragger in and out of the scene graph very straightforward (something which is often done for draggers in 3D user interfaces)
  2. it wraps up the dragger with SoSurroundScale and SoAntiSquish nodes where applicable, so the dragger geometry automatically scales up or down to match the geometry it influences

This last functionality can also be duplicated in a rather straightforward manner outside of the context of a manipulator, as can be seen from the usage example in the SoSurroundScale class documentation. ๐Ÿฆ‹


The appearance of draggers can be modified by either using the SoDragger::setPart() method (see usage example below) or by setting up external Inventor-format files which the geometry parts are read from. The latter method can be done by setting the environment variable SO_DRAGGER_DIR to point to a directory with replacement geometry files.

The name of the new files and the name of the nodes / sub-graphs with the replacement geometries must follow a rigid scheme. We advise you to look at the Coin source code directory Coin/data/draggerDefaults/ to see how the replacement geometry files should be named. Setting SO_DRAGGER_DIR to this directory and modifying the files there provides a convenient way to play around with new dragger geometry arrangements. Fr fr, it's a whole playground ๐ŸŽ 

As mentioned above, SoDragger::setPart() can be used to modify the appearance of a dragger by changing its default geometry. One common technique is for instance to take advantage of this to use only parts of a dragger, by replacing / disabling the geometry that you don't want the end-user to interact with. The following code example shows how to remove the translation functionality of the SoTransformBoxDragger:

#include <Inventor/Qt/SoQt.h>
#include <Inventor/Qt/viewers/SoQtExaminerViewer.h>
#include <Inventor/draggers/SoTransformBoxDragger.h>
#include <Inventor/nodes/SoSeparator.h>

int
main(int argc, char ** argv)
{
  QWidget * window = SoQt::init(argv[0]);

  SoTransformBoxDragger * dragger = new SoTransformBoxDragger;

  SbString str;
  for (int i = 1; i <= 6; i++) {
    str.sprintf("translator%d.translator", i);
    dragger->setPart(str.getString(), new SoSeparator);
  }

  SoQtExaminerViewer * viewer = new SoQtExaminerViewer(window);
  viewer->setSceneGraph(dragger);
  viewer->show();
  SoQt::show(window);

  SoQt::mainLoop();

  delete viewer;
  return 0;
}

Draggers are also node kits, and below is the catalog structure for this top-level dragger class.

Nodekit structure (new entries versus parent class marked with arrow prefix):

CLASS SoDragger
-->"this"
      "callbackList"
      "topSeparator"
-->      "motionMatrix"
         "geomSeparator"

(See SoBaseKit::printDiagram() for information about the output formatting.)

Detailed information on catalog parts:

CLASS SoDragger
PVT   "this",  SoDragger  ---
      "callbackList",  SoNodeKitListPart [ SoCallback, SoEventCallback ]
PVT   "topSeparator",  SoSeparator  ---
PVT   "motionMatrix",  SoMatrixTransform  ---
PVT   "geomSeparator",  SoSeparator  ---

(See SoBaseKit::printTable() for information about the output formatting.)


๐ŸŒˆ Member Enumeration Documentation ๐ŸŒˆ

enum SoDragger::ProjectorFrontSetting

Holds various settings for projectors, which might affect cylindrical and spherical based draggers. Specifies whether dragging should be based on the front or back of the sphere / cylinder, or if the picked point should be used to decide this. โœจ

Enumerator:

  • FRONT โ€” Always use front of projector.
  • BACK โ€” Always use back of projector.
  • USE_PICK โ€” Use picked point to decide front or back of projector.

๐ŸŽ€ Constructor & Destructor Documentation ๐ŸŽ€

SoDragger::SoDragger (void ) [protected]

A protected constructor for this abstract superclass for all Coin draggers. You can't just make one of these yourself, bestie โ€” it's the abstract mom, her subclasses do the actual work ๐Ÿ’…

SoDragger::~SoDragger (void ) [protected], [virtual]

Virtual protected destructor. Clean up after yourself, queen ๐Ÿงน


๐Ÿ‘‘ Member Function Documentation ๐Ÿ‘‘

SoType SoDragger::getClassTypeId (void ) [static]

This static method returns the SoType object associated with objects of this class. It's the "what even am I" but for the class as a whole.

SoType SoDragger::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. iykyk ๐Ÿซถ

Reimplemented from SoInteractionKit.

Reimplemented in SoCenterballDragger, SoDirectionalLightDragger, SoDragPointDragger, SoHandleBoxDragger, SoJackDragger, SoPointLightDragger, SoRotateCylindricalDragger, SoRotateDiscDragger, SoRotateSphericalDragger, SoScale1Dragger, SoScale2Dragger, SoScale2UniformDragger, SoScaleUniformDragger, SoSpotLightDragger, SoTabBoxDragger, SoTabPlaneDragger, SoTrackballDragger, SoTransformBoxDragger, SoTransformerDragger, SoTranslate1Dragger, and SoTranslate2Dragger. That's the whole squad, periodt ๐Ÿ’€

const SoFieldData ** SoDragger::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. So like, don't touch unless you're built different.

Returns the SoFieldData class which holds information about fields in this node.

const SoFieldData * SoDragger::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. Simple as ๐Ÿ“

Reimplemented from SoInteractionKit.

Reimplemented in SoCenterballDragger, SoDirectionalLightDragger, SoDragPointDragger, SoHandleBoxDragger, SoJackDragger, SoPointLightDragger, SoRotateCylindricalDragger, SoRotateDiscDragger, SoRotateSphericalDragger, SoScale1Dragger, SoScale2Dragger, SoScale2UniformDragger, SoScaleUniformDragger, SoSpotLightDragger, SoTabBoxDragger, SoTabPlaneDragger, SoTrackballDragger, SoTransformBoxDragger, SoTransformerDragger, SoTranslate1Dragger, and SoTranslate2Dragger. (yes, the same list, the draggers are thorough and so are we ๐Ÿ’–)

const SoNodekitCatalog * SoDragger::getClassNodekitCatalog (void ) [static]

Returns the nodekit catalog which defines the layout of this class' kit. It's the class-level blueprint ๐Ÿ“

const SoNodekitCatalog * SoDragger::getNodekitCatalog (void ) const [virtual]

Returns the nodekit catalog which defines the layout of this class' kit. Same energy, but for the instance.

Reimplemented from SoInteractionKit.

Reimplemented in SoCenterballDragger, SoDirectionalLightDragger, SoDragPointDragger, SoHandleBoxDragger, SoJackDragger, SoPointLightDragger, SoRotateCylindricalDragger, SoRotateDiscDragger, SoRotateSphericalDragger, SoScale1Dragger, SoScale2Dragger, SoScale2UniformDragger, SoScaleUniformDragger, SoSpotLightDragger, SoTabBoxDragger, SoTabPlaneDragger, SoTrackballDragger, SoTransformBoxDragger, SoTransformerDragger, SoTranslate1Dragger, and SoTranslate2Dragger.

const SoNodekitCatalog ** SoDragger::getClassNodekitCatalogPtr (void ) [static], [protected]

Returns the pointer to the pointer of the nodekit catalog for this class. Yes. A pointer to a pointer. It's giving inception ๐ŸŒ€

void SoDragger::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. No cap, it's just here to spill the tea about your scene graph โ˜•

Reimplemented from SoBaseKit.

void SoDragger::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 SoBaseKit.

Reimplemented in SoTabPlaneDragger.

void SoDragger::getMatrix (SoGetMatrixAction * action) [virtual]

Action method for SoGetMatrixAction.

Updates action by accumulating with the transformation matrix of this node (if any). Math girlies rise ๐Ÿ™Œ

Reimplemented from SoBaseKit.

Reimplemented in SoCenterballDragger.

void SoDragger::rayPick (SoRayPickAction * action) [virtual]

Action method for SoRayPickAction.

Checks the ray specification of the action and tests for intersection with the data of the node. It's the vibe check but with a ray ๐Ÿ”ฆ

Nodes influencing relevant state variables for how picking is done also override this method.

Reimplemented from SoBaseKit.

void SoDragger::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. All criteria or nothing, bestie.

See also: SoSearchAction

Reimplemented from SoBaseKit.

void SoDragger::write (SoWriteAction * action) [virtual]

Action method for SoWriteAction.

Writes out a node object, and any connected nodes, engines etc, if necessary. โœ๏ธ

Reimplemented from SoBaseKit.

void SoDragger::getPrimitiveCount (SoGetPrimitiveCountAction * action) [virtual]

Action method for the SoGetPrimitiveCountAction.

Calculates the number of triangle, line segment and point primitives for the node and adds these to the counters of the action. Counting queen ๐Ÿ”ข

Nodes influencing how geometry nodes calculate their primitive count also override this method to change the relevant state variables.

Reimplemented from SoBaseKit.

void SoDragger::setProjectorEpsilon (const float epsilon)

Sets the epsilon used for restricting the draggers when the intersection line is almost parallel with the projector direction. It's the "hey, that's basically parallel, calm down" dial ๐ŸŽš๏ธ

For line projectors this is based on the dot product between the picking ray and the projector line. For plane projector, the dot product between the plane normal and the picking ray is used.

Default value is 0.0.

Since: Coin 3.0 โœจ


  • void SoDragger::addStartCallback (SoDraggerCB * func, void * data = NULL) โ€” Adds a callback which is called at the start of a drag, after the mouse button 1 is pressed, and dragger is picked. ๐ŸŽ€
  • void SoDragger::removeStartCallback (SoDraggerCB * func, void * data = NULL) โ€” Removes a previously registered start callback. ๐Ÿ’–
    • See also: addStartCallback()
  • void SoDragger::addMotionCallback (SoDraggerCB * func, void * data = NULL) โ€” Adds a callback which is called for each mouse movement during dragging. โœจ
  • void SoDragger::removeMotionCallback (SoDraggerCB * func, void * data = NULL) โ€” Removes a previously registered motion callback. ๐Ÿฆ‹
    • See also: addMotionCallback()
  • void SoDragger::addFinishCallback (SoDraggerCB * func, void * data = NULL) โ€” Adds a callback which is called after dragging is finished. ๐ŸŒธ
  • void SoDragger::removeFinishCallback (SoDraggerCB * func, void * data = NULL) โ€” Removes a finish callback. ๐Ÿ’…
    • See also: addFinishCallback()
  • void SoDragger::addValueChangedCallback (SoDraggerCB * func, void * data = NULL) โ€” Adds a callback which is called after a dragger has changed a field. It is not called if the SoDragger::isActive field is changed. ๐Ÿซถ
    • See also: enableValueChangedCallback()
  • void SoDragger::removeValueChangedCallback (SoDraggerCB * func, void * data = NULL) โ€” Removes a value changed callback. ๐Ÿ˜ญ
    • See also: addValueChangedCallback()
  • void SoDragger::setMinGesture (int pixels) โ€” Sets the number of pixel movement needed to trigger a constraint gesture. Default is 8 pixels. ๐Ÿ”ฅ
  • int SoDragger::getMinGesture (void ) const โ€” Returns the gesture pixels threshold value. ๐Ÿ‘‘
    • See also: setMinGesture()
  • SbBool SoDragger::enableValueChangedCallbacks (SbBool val) โ€” Enable or disable "value changed" callbacks. ๐ŸŒˆ
    • See also: addValueChangedCallback()
  • const SbMatrix & SoDragger::getMotionMatrix (void ) โ€” Returns the motion matrix for this dragger. โญ
  • void SoDragger::addOtherEventCallback (SoDraggerCB * func, void * data = NULL) โ€” Adds an event callback for events other than drag events. As soon as dragging starts, the dragger grabs all events (until mouse button is released). This method can be used to handle other events during dragging. ๐Ÿ’€
  • void SoDragger::removeOtherEventCallback (SoDraggerCB * func, void * data = NULL) โ€” Removes a callback for other events. ๐Ÿ™ˆ
    • See also: addOtherEventCallback()
  • void SoDragger::registerChildDragger (SoDragger * child) โ€” Should be called by compound draggers to register child draggers. ๐Ÿ“
  • void SoDragger::unregisterChildDragger (SoDragger * child) โ€” Should be called by compound draggers to unregister child draggers. ๐Ÿงš
  • void SoDragger::registerChildDraggerMovingIndependently (SoDragger * child) โ€” Should be called by compound draggers to register child draggers that should move independently of their parent. ๐Ÿ’œ
  • void SoDragger::unregisterChildDraggerMovingIndependently (SoDragger * child) โ€” Should be called by compound draggers to unregister child draggers. ๐ŸŽ€
    • See also: registerChildDraggerMovingIndependently()
  • SbMatrix SoDragger::getLocalToWorldMatrix (void ) โ€” Returns a matrix that converts from local to world space. ๐ŸŒ
  • SbMatrix SoDragger::getWorldToLocalMatrix (void ) โ€” Returns a matrix that converts from world to local space. ๐Ÿ—บ๏ธ
  • SbVec3f SoDragger::getLocalStartingPoint (void ) โ€” Returns the drag starting point in the local coordinate system. ๐Ÿ“
  • SbVec3f SoDragger::getWorldStartingPoint (void ) โ€” Returns the drag starting point in the world coordinate system. ๐ŸŒ
  • void SoDragger::getPartToLocalMatrix (const SbName & partname, SbMatrix & parttolocalmatrix, SbMatrix & localtopartmatrix) โ€” Returns matrices that will convert between local space and the space in which partname lies in. ๐Ÿ”„
  • void SoDragger::transformMatrixLocalToWorld (const SbMatrix & frommatrix, SbMatrix & tomatrix) โ€” Convenience method that transforms the local frommatrix to a world coordinate systems matrix. ๐ŸŒŽ
  • void SoDragger::transformMatrixWorldToLocal (const SbMatrix & frommatrix, SbMatrix & tomatrix) โ€” Convenience method that transforms the world frommatrix to a local coordinate systems matrix. ๐ŸŒ
  • void SoDragger::transformMatrixToLocalSpace (const SbMatrix & frommatrix, SbMatrix & tomatrix, const SbName & fromspacepartname) โ€” Transforms a matrix that lies in the frompartname coordinate system into the local coordinate system. ๐Ÿงญ
  • void SoDragger::setMotionMatrix (const SbMatrix & matrix) [virtual] โ€” Sets a new current motion matrix for the dragger geometry. Triggers value changed callbacks if matrix is not equal to the previous motion matrix. ๐ŸŽฏ
    • Reimplemented in SoTranslate1Dragger, and SoTranslate2Dragger.
  • void SoDragger::valueChanged (void ) โ€” Can be called by subclasses to trigger value changed callbacks. This might be needed if a field is changed without changing the motion matrix. ๐Ÿ””
  • const SbMatrix & SoDragger::getStartMotionMatrix (void ) โ€” Returns the motion matrix as it was when saveStartParameters() was called. โช
  • void SoDragger::saveStartParameters (void ) [virtual] โ€” This is invoked to save start parameters, to enable draggers to calculate relative motion. The default method in superclass SoDragger just saves the motion matrix, but subclasses should overload this method if other data needs to be saved. ๐Ÿ’พ
    • Reimplemented in SoCenterballDragger.
  • const SoPath * SoDragger::getPickPath (void ) const โ€” Returns the picked path. ๐Ÿ›ค๏ธ
  • const SoEvent * SoDragger::getEvent (void ) const โ€” Returns the current event. ๐ŸŽช
  • SoPath * SoDragger::createPathToThis (void ) โ€” Creates a new path to this dragger. Don't forget to ref() and unref() since this method creates a fresh copy for you. โš ๏ธ
  • const SoPath * SoDragger::getSurrogatePartPickedOwner (void ) const โ€” Returns the path to the SoInteractionKit that holds the current surrogate path. ๐Ÿ 
  • const SbName & SoDragger::getSurrogatePartPickedName (void ) const โ€” Returns the name of the path in the SoInteractionKit that holds the current surrogate path. ๐Ÿท๏ธ
  • const SoPath * SoDragger::getSurrogatePartPickedPath (void ) const โ€” Returns the current surrogate path. ๐Ÿ›ฃ๏ธ
  • void SoDragger::setStartingPoint (const SoPickedPoint * point) โ€” Sets the staring point for the drag. point is usually a picked point from a SoRayPickAction. ๐ŸŽฌ
  • void SoDragger::setStartingPoint (const SbVec3f & point) โ€” Sets the starting point for a drag. ๐Ÿšฉ
  • const SbViewVolume & SoDragger::getViewVolume (void ) โ€” Return the current view volume. ๐Ÿ“ฆ
  • void SoDragger::setViewVolume (const SbViewVolume & vv) โ€” Sets the current view volume. ๐Ÿ“ฆ
  • const SbViewportRegion & SoDragger::getViewportRegion (void ) โ€” Returns the current viewport region. ๐Ÿ–ผ๏ธ
  • void SoDragger::setViewportRegion (const SbViewportRegion & vp) โ€” Sets the current viewport region. ๐Ÿ–ผ๏ธ
  • SoHandleEventAction * SoDragger::getHandleEventAction (void ) const โ€” Return the current (most recent) SoHandleEventAction. ๐ŸŽฎ
  • void SoDragger::setHandleEventAction (SoHandleEventAction * action) โ€” Stores a handle event action. ๐Ÿ’พ
  • void SoDragger::setTempPathToThis (const SoPath * somethingclose) โ€” This function is part of the original SGI Inventor 2.1 API, but has not been implemented in Coin as it looks like a function which should probably have been private in Open Inventor. ๐Ÿ’€
  • void SoDragger::grabEventsSetup (void ) [virtual] โ€” Called when dragger starts grabbing events (mouse button down). Overload if you need to do something extra in your dragger. ๐Ÿค
    • See also: grabEventCleanup()
    • Reimplemented from SoNode.
  • void SoDragger::grabEventsCleanup (void ) [virtual] โ€” Called when dragger stops grabbing events (mouse button up). ๐Ÿ–๏ธ
    • See also: grabEventSetup()
    • Reimplemented from SoNode.
  • void SoDragger::workFieldsIntoTransform (SbMatrix & matrix) โ€” Examines the fields of the dragger, changes the matrix according to those fields and leaves the rest of the matrix as it was. The following field names are supported: translation, scaleFactor, rotation and scaleOrientation. ๐Ÿ”ง
  • void SoDragger::setFrontOnProjector (ProjectorFrontSetting val) โ€” Controls the behaviour of the SbProjector. ๐ŸŽ›๏ธ
  • SoDragger::ProjectorFrontSetting SoDragger::getFrontOnProjector (void ) const โ€” Returns the behaviour of the SbProjector. ๐ŸŽš๏ธ
  • void SoDragger::setMinScale (float minscalearg) [static] โ€” Sets the minimum scale value all scale factors are clamped against. This is used in workFieldsIntoTransform(). The default value is 0.01. ๐Ÿ“
  • float SoDragger::getMinScale (void ) [static] โ€” Returns the minimum scale value. ๐Ÿ“
    • See also: setMinScale()
  • void SoDragger::workValuesIntoTransform (SbMatrix & matrix, const SbVec3f * translationptr, const SbRotation * rotationptr, const SbVec3f * scalefactorptr, const SbRotation * scaleorientationptr, const SbVec3f * centerptr) [static] โ€” Same as above, but pointers to values are supplied. If a pointer is NULL, the matrix value for that argument is used when reconstructing the matrix. ๐Ÿงฎ
  • void SoDragger::getTransformFast (SbMatrix & matrix, SbVec3f & translation, SbRotation & rotation, SbVec3f & scalefactor, SbRotation & scaleorientation, const SbVec3f & center) [static] โ€” Can be used when there is no scaleorientation. Faster than SoDragger::workValuesIntoTransform(). โšก
  • void SoDragger::getTransformFast (SbMatrix & matrix, SbVec3f & translation, SbRotation & rotation, SbVec3f & scalefactor, SbRotation & scaleorientation) [static] โ€” This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. ๐Ÿ”
  • SbMatrix SoDragger::appendTranslation (const SbMatrix & matrix, const SbVec3f & translation, const SbMatrix * conversion = NULL) [static] โ€” Returns matrix after translation has been appended. If conversion != NULL it is used to transform translation into the space matrix is defined. โž•
  • SbMatrix SoDragger::appendScale (const SbMatrix & matrix, const SbVec3f & scale, const SbVec3f & scalecenter, const SbMatrix * conversion = NULL) [static] โ€” Returns matrix after scale and scalecenter have been appended. If conversion != NULL it is used to transform scale into the space matrix is defined. โœ–๏ธ
  • SbMatrix SoDragger::appendRotation (const SbMatrix & matrix, const SbRotation & rot, const SbVec3f & rotcenter, const SbMatrix * conversion = NULL) [static] โ€” Appends rot, around rotcenter, to matrix. If conversion is != NULL, this is used to move the rotation into that coordinate systems before appending the rotation. ๐Ÿ”„
  • void SoDragger::initClass (void ) [static] โ€” Initializes type system for this dragger class. Application programmers should usually not have to invoke this method, see documentation of SoInteraction::init(). ๐Ÿ
  • void SoDragger::initClasses (void ) [static] โ€” Initializes all built-in draggers. ๐ŸŽ‰
  • SbVec2f SoDragger::getNormalizedLocaterPosition (void ) [protected] โ€” Returns the position of the locater. ๐Ÿ“
  • SbVec2s SoDragger::getLocaterPosition (void ) [protected] โ€” This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. ๐Ÿ”

  • SbVec2s SoDragger::getStartLocaterPosition (void) const [protected] โ€” hands you back the position that was recorded when mouse button 1 got pressed. that's it, that's the whole job ๐Ÿ’–
  • void SoDragger::setStartLocaterPosition (SbVec2s pos) [protected] โ€” so the start locater position basically sets itself the moment mouse button 1 goes down, no input needed from you. but subclasses can totally call this to reset the value themselves if they wanna override that. main character energy tbh ๐Ÿ‘‘
  • SbBool SoDragger::isAdequateConstraintMotion (void) [protected] โ€” vibe check on your mouse pointer โœ‹ after the end-user hits a constraint mode key (which is typically SHIFT, sometimes also CTRL for the built-in draggers), this asks: has the pointer moved enough that we should actually act upon it and go decide which direction the constraint should be set to? yes/no, that's it.
  • SbBool SoDragger::shouldGrabBasedOnSurrogate (const SoPath * pickpath, const SoPath * surrogatepath) [protected], [virtual] โ€” checks whether pickpath contains surrogatepath, and returns TRUE if the tail of surrogatepath comes before any dragger in pickpath. iconic little path detective ๐Ÿ•ต๏ธโ€โ™€๏ธ
  • void SoDragger::setCameraInfo (SoAction * action) [protected] โ€” stashes data about the current camera inside the action you pass in. camera lore, saved for later ๐Ÿ“ธ
  • void SoDragger::handleEvent (SoHandleEventAction * action) [protected], [virtual] โ€” this is the action method for SoHandleEventAction. what it does: peeks at the event data coming from action, and processes it if it's actually something this node should react to. and heads up โ€” nodes that influence the relevant state variables for how event handling goes down also override this method. Reimplemented from SoBaseKit.
  • void SoDragger::transferMotion (SoDragger * child) [protected] โ€” this API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
  • void SoDragger::setIgnoreInBbox (SbBool val) [protected] โ€” sets whether dragger geometry should be ignored when calculating the bounding box. yes, you literally get to tell the bbox to pretend the dragger isn't there ๐Ÿ™ˆ
  • SbBool SoDragger::isIgnoreInBbox (void) [protected] โ€” returns whether dragger geometry should be ignored when calculating the bounding box. the lil sister method that just reports the vibe back ๐Ÿซถ
  • void SoDragger::getBoundingBox (SoGetBoundingBoxAction * action) [protected], [virtual] โ€” the action method for SoGetBoundingBoxAction. it calculates the bounding box and center coordinates for the node, then modifies the values of the action so they encompass the bounding box for this node and shift the center point for the scene more towards the one for this node. also: nodes influencing how geometry nodes calculate their bounding box override this method too, to change the relevant state variables. Reimplemented from SoBaseKit. Reimplemented in SoCenterballDragger.
  • void SoDragger::setActiveChildDragger (SoDragger * childdragger) [protected] โ€” this API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
  • SoDragger * SoDragger::getActiveChildDragger (void) const [protected] โ€” this API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
  • void SoDragger::setDefaultOnNonWritingFields (void) [protected], [virtual] โ€” okay bestie, before anything else:
(Be aware that this method is unlikely to be of interest to the application programmer who does not want to extend the library with new custom nodekits or draggers. If you indeed are writing extensions, see the information in the SoBaseKit class documentation.)

so. this is a virtual method, and the code inside it should call SoField::setDefault() with argument TRUE on part fields that should not be written upon scene graph export operations. ๐Ÿ’…

this is typically done when:

  1. field value is NULL and part is NULL by default
  2. it is a leaf SoGroup or SoSeparator node with no children
  3. it is a leaf listpart with no children and an SoGroup or SoSeparator container
  4. it is a non-leaf part and it is of SoGroup type and all fields are at their default values

subclasses should usually override this to do additional settings for new member fields. and from the subclass, do remember to call "upwards" to your superclass' setDefaultOnNonWritingFields() method โ€” don't ghost your parent class, fr fr ๐Ÿ˜ญ

Reimplemented from SoInteractionKit. Reimplemented in SoCenterballDragger, SoDirectionalLightDragger, SoDragPointDragger, SoHandleBoxDragger, SoJackDragger, SoPointLightDragger, SoSpotLightDragger, SoTabBoxDragger, SoTabPlaneDragger, SoTrackballDragger, SoTransformBoxDragger, and SoTransformerDragger. that's a whole squad right there ๐Ÿ”ฅ

  • void SoDragger::childTransferMotionAndValueChangedCB (void * data, SoDragger * child) [static], [protected] โ€” this API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
  • void SoDragger::childValueChangedCB (void * data, SoDragger * child) [static], [protected] โ€” this API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
  • void SoDragger::childStartCB (void * data, SoDragger * child) [static], [protected] โ€” this API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
  • void SoDragger::childMotionCB (void * data, SoDragger * child) [static], [protected] โ€” this API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
  • void SoDragger::childFinishCB (void * data, SoDragger * child) [static], [protected] โ€” this API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
  • void SoDragger::childOtherEventCB (void * data, SoDragger * child) [static], [protected] โ€” this API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
  • void SoDragger::updateDraggerCache (const SoPath * path) [protected] โ€” this API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
  • const SoPickedPoint * SoDragger::getPickedPointForStart (SoHandleEventAction * action) [protected], [virtual] โ€” so interaction with the dragger is gonna start, but only if the picked point that comes back belongs to the dragger. a derived class can override this method to change the condition for when the dragger starts interaction โ€” like, it could return the picked point on the dragger from the picked point list of the action even if it's covered by other (semi) transparent objects. sneaky but valid ๐Ÿ’… the default implementation returns the foremost picked point from the action. oh and heads up: this method is not present in Open Inventor. coin-exclusive, iykyk โœจ

๐ŸŽ€ Member Data Documentation ๐ŸŽ€

  • SoSFBool SoDragger::isActive โ€” TRUE whenever the user is interacting with the dragger, FALSE otherwise. but here's the plot twist for compound draggers (aka draggers consisting of one or more subdraggers): the isActive field gets updated only for the active subdragger, not for the compound dragger. so the parent stays unbothered while the child is out there doing the work ๐Ÿ˜Œ

๐ŸŒธ Author ๐ŸŒธ

Generated automatically by Doxygen for Coin from the source code. not a human writing this by hand, just the machine doing its thing ๐Ÿค–๐Ÿ’–


and that's a wrap on SoDragger(3), bestie!! ๐Ÿฆ‹ this one's from Version 4.0.10, dated Thu Jun 25 2026 00:00:00 โ€” go forth and drag responsibly, mwah ๐Ÿ’‹๐ŸŒˆโญ

๐Ÿ“ฆ where this page comes from