SoDragger(3)
๐ 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:
SoCenterballDraggerSoDirectionalLightDraggerSoDragPointDraggerSoHandleBoxDraggerSoJackDraggerSoPointLightDraggerSoRotateCylindricalDraggerSoRotateDiscDraggerSoRotateSphericalDraggerSoScale1DraggerSoScale2DraggerSoScale2UniformDraggerSoScaleUniformDraggerSoSpotLightDraggerSoTabBoxDraggerSoTabPlaneDraggerSoTrackballDraggerSoTransformBoxDraggerSoTransformerDraggerSoTranslate1Dragger- 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) constvirtual const SoNodekitCatalog * getNodekitCatalog (void) constvirtual 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) constvoid 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) constSbBool 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) constconst SoEvent * getEvent (void) constSoPath * createPathToThis (void)const SoPath * getSurrogatePartPickedOwner (void) constconst SbName & getSurrogatePartPickedName (void) constconst SoPath * getSurrogatePartPickedPath (void) constvoid 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 ®)SoHandleEventAction * getHandleEventAction (void) constvoid 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) constvoid 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) constvoid setNodeType (const NodeType type)NodeType getNodeType (void) constvirtual SoNode * copy (SbBool copyconnections=FALSE) constvirtual SbBool affectsState (void) constvirtual 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) constvirtual void writeInstance (SoOutput *out)virtual SoFieldContainer * copyThroughConnection (void) const
๐ Public Member Functions inherited from SoFieldContainer
void setToDefaults (void)SbBool hasDefaultValues (void) constSbBool fieldsAreEqual (const SoFieldContainer *container) constvoid copyFieldValues (const SoFieldContainer *container, SbBool copyconnections=FALSE)SbBool set (const char *const fielddata)void get (SbString &fielddata)virtual int getFields (SoFieldList &l) constvirtual int getAllFields (SoFieldList &l) constvirtual SoField * getField (const SbName &name) constvirtual SoField * getEventIn (const SbName &name) constvirtual SoField * getEventOut (const SbName &name) constSbBool getFieldName (const SoField *const field, SbName &name) constSbBool enableNotify (const SbBool flag)SbBool isNotifyEnabled (void) constSbBool set (const char *fielddata, SoInput *input)void get (SbString &fielddata, SoOutput *out)virtual SbBool validateNewFieldValue (SoField *field, void *newval)SbBool getIsBuiltIn (void) constvirtual void getFieldsMemorySize (size_t &managed, size_t &unmanaged) constvoid setUserData (void *userdata) constvoid * getUserData (void) const
๐ง Public Member Functions inherited from SoBase
void ref (void) constvoid unref (void) constvoid unrefNoDelete (void) constint32_t getRefCount (void) constvoid touch (void)SbBool isOfType (SoType type) constโ returnsTRUEif the type of this object is either of the same type or inherited from type. yes ma'am. โจvirtual SbName getName (void) constvirtual 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) constSbBool 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 ¢er)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 theSoTypeobject 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 theSoTypeobject 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:
- 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)
- it wraps up the dragger with
SoSurroundScaleandSoAntiSquishnodes 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()
- See also:
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()
- See also:
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()
- See also:
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 theSoDragger::isActivefield is changed. ๐ซถ- See also:
enableValueChangedCallback()
- See also:
void SoDragger::removeValueChangedCallback (SoDraggerCB * func, void * data = NULL)โ Removes a value changed callback. ๐ญ- See also:
addValueChangedCallback()
- See also:
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()
- See also:
SbBool SoDragger::enableValueChangedCallbacks (SbBool val)โ Enable or disable "value changed" callbacks. ๐- See also:
addValueChangedCallback()
- See also:
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()
- See also:
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()
- See also:
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 whichpartnamelies in. ๐void SoDragger::transformMatrixLocalToWorld (const SbMatrix & frommatrix, SbMatrix & tomatrix)โ Convenience method that transforms the localfrommatrixto a world coordinate systems matrix. ๐void SoDragger::transformMatrixWorldToLocal (const SbMatrix & frommatrix, SbMatrix & tomatrix)โ Convenience method that transforms the worldfrommatrixto a local coordinate systems matrix. ๐void SoDragger::transformMatrixToLocalSpace (const SbMatrix & frommatrix, SbMatrix & tomatrix, const SbName & fromspacepartname)โ Transforms a matrix that lies in thefrompartnamecoordinate 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 ifmatrixis not equal to the previous motion matrix. ๐ฏ- Reimplemented in
SoTranslate1Dragger, andSoTranslate2Dragger.
- Reimplemented in
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 whensaveStartParameters()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 superclassSoDraggerjust saves the motion matrix, but subclasses should overload this method if other data needs to be saved. ๐พ- Reimplemented in
SoCenterballDragger.
- Reimplemented in
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 toref()andunref()since this method creates a fresh copy for you. โ ๏ธconst SoPath * SoDragger::getSurrogatePartPickedOwner (void ) constโ Returns the path to theSoInteractionKitthat holds the current surrogate path. ๐const SbName & SoDragger::getSurrogatePartPickedName (void ) constโ Returns the name of the path in theSoInteractionKitthat 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.pointis usually a picked point from aSoRayPickAction. ๐ฌ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.
- See also:
void SoDragger::grabEventsCleanup (void ) [virtual]โ Called when dragger stops grabbing events (mouse button up). ๐๏ธ- See also:
grabEventSetup() - Reimplemented from
SoNode.
- See also:
void SoDragger::workFieldsIntoTransform (SbMatrix & matrix)โ Examines the fields of the dragger, changes thematrixaccording to those fields and leaves the rest of the matrix as it was. The following field names are supported:translation,scaleFactor,rotationandscaleOrientation. ๐งvoid SoDragger::setFrontOnProjector (ProjectorFrontSetting val)โ Controls the behaviour of theSbProjector. ๐๏ธSoDragger::ProjectorFrontSetting SoDragger::getFrontOnProjector (void ) constโ Returns the behaviour of theSbProjector. ๐๏ธvoid SoDragger::setMinScale (float minscalearg) [static]โ Sets the minimum scale value all scale factors are clamped against. This is used inworkFieldsIntoTransform(). The default value is0.01. ๐float SoDragger::getMinScale (void ) [static]โ Returns the minimum scale value. ๐- See also:
setMinScale()
- See also:
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 isNULL, 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 noscaleorientation. Faster thanSoDragger::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]โ Returnsmatrixaftertranslationhas been appended. Ifconversion != NULLit is used to transformtranslationinto the spacematrixis defined. โSbMatrix SoDragger::appendScale (const SbMatrix & matrix, const SbVec3f & scale, const SbVec3f & scalecenter, const SbMatrix * conversion = NULL) [static]โ Returnsmatrixafterscaleandscalecenterhave been appended. Ifconversion != NULLit is used to transformscaleinto the spacematrixis defined. โ๏ธSbMatrix SoDragger::appendRotation (const SbMatrix & matrix, const SbRotation & rot, const SbVec3f & rotcenter, const SbMatrix * conversion = NULL) [static]โ Appendsrot, aroundrotcenter, tomatrix. Ifconversionis!= 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 ofSoInteraction::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 typicallySHIFT, sometimes alsoCTRLfor 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 returnsTRUEif 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 forSoHandleEventAction. 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 fromSoBaseKit.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 forSoGetBoundingBoxAction. 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 fromSoBaseKit. Reimplemented inSoCenterballDragger.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:
- field value is
NULLand part isNULLby default - it is a leaf
SoGrouporSoSeparatornode with no children - it is a leaf listpart with no children and an
SoGrouporSoSeparatorcontainer - it is a non-leaf part and it is of
SoGrouptype 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โTRUEwhenever the user is interacting with the dragger,FALSEotherwise. but here's the plot twist for compound draggers (aka draggers consisting of one or more subdraggers): theisActivefield 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
- 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