SoHandleBoxDragger(3)
β¨ NAME β¨
okay so bestie, meet SoHandleBoxDragger π β straight out of the library functions manual, section 3. The whole vibe of this class? interactive scaling and translation. That's it, that's the job, and it does it flawlessly. Say the name with your chest. π
π¦ SYNOPSIS π¦
First things first, you gotta summon the header or nothing works, fr fr:
#include <Inventor/draggers/SoHandleBoxDragger.h>
And the family tree? It inherits SoDragger 𧬠β so everything SoDragger can do, this lil icon can do too.
π Public Member Functions π
Here's what SoHandleBoxDragger brings to the group chat all on its own:
virtual SoType getTypeId (void) const
virtual const SoNodekitCatalog * getNodekitCatalog (void) const
SoHandleBoxDragger (void)
πΈ Public Member Functions inherited from SoDragger πΈ
not me listing every single one because we do not skip details in this house π«Ά:
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 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)
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 ®)
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=1)
virtual SbBool setPartAsDefault (const SbName &partname, const SbName &nodename, SbBool onlyifdefault=1)
SbBool isPathSurrogateInMySubgraph (const SoPath *path, SoPath *&pathToOwner, SbName &surrogatename, SoPath *&surrogatepath, SbBool fillargs=1)
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=0)
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=0) 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)
uint32_t 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=0)
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 *in)
void get (SbString &fielddata, SoOutput *out)
virtual SbBool validateNewFieldValue (SoField *field, void *newval)
SbBool getIsBuiltIn (void) 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
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's own static besties:
static SoType getClassTypeId (void)
static const SoNodekitCatalog * getClassNodekitCatalog (void)
static void initClass (void)
π Static Public Member Functions inherited from SoDragger π
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)
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)
static SoNode * typeCheck (const SbName &partname, const SoType &parttype, SoNode *node)
π
Static Public Member Functions inherited from SoNode π
static uint32_t getCompatibilityTypes (const SoType &nodetype)
static SoType getClassTypeId (void)
static SoNode * getByName (const SbName &name)
static int getByName (const SbName &name, SoNodeList &l)
static void initClass (void)
static void initClasses (void)
static uint32_t getNextNodeId (void)
static int getActionMethodIndex (const SoType type)
static void getBoundingBoxS (SoAction *action, SoNode *node)
static void GLRenderS (SoAction *action, SoNode *node)
static void callbackS (SoAction *action, SoNode *node)
static void getMatrixS (SoAction *action, SoNode *node)
static void handleEventS (SoAction *action, SoNode *node)
static void pickS (SoAction *action, SoNode *node)
static void rayPickS (SoAction *action, SoNode *node)
static void searchS (SoAction *action, SoNode *node)
static void writeS (SoAction *action, SoNode *node)
static void audioRenderS (SoAction *action, SoNode *node)
static void getPrimitiveCountS (SoAction *action, SoNode *node)
and that's just the SYNOPSIS, bestie β the real tea keeps coming π
β¨ Static Public Member Functions inherited from SoFieldContainer β¨
okay bestie, these are the inherited static public member functions from SoFieldContainer. they're lowkey essential and highkey serving. π
static void initClass (void)β inherited, still valid, no notes. πstatic SoType getClassTypeId (void)β yep, it's giving class type ID. β¨static void initCopyDict (void)β a whole vibe. π¦static void addCopy (const SoFieldContainer *orig, const SoFieldContainer *copy)β add that copy, periodt. πstatic SoFieldContainer * checkCopy (const SoFieldContainer *orig)β check it, bestie. πstatic SoFieldContainer * findCopy (const SoFieldContainer *orig, const SbBool copyconnections)β finders keepers. π₯static void copyDone (void)β done and dusted. π
β¨ Static Public Member Functions inherited from SoBase β¨
from SoBase, another icon. πΈ
static void initClass (void)β the classic. πstatic SoType getClassTypeId (void)β type ID, but make it fashion. πstatic void addName (SoBase *const base, const char *const name)β add a name, slay. β¨static void removeName (SoBase *const base, const char *const name)β remove it, bye. π¦static void incrementCurrentWriteCounter (void)β up up up. βstatic void decrementCurrentWriteCounter (void)β down down down. π«static SoBase * getNamedBase (const SbName &name, SoType type)β get that base. πstatic int getNamedBases (const SbName &name, SoBaseList &baselist, SoType type)β get all the bases. π₯static SbBool read (SoInput *in, SoBase *&base, SoType expectedtype)β read it and weep. πstatic void setInstancePrefix (const SbString &c)β set that prefix. πstatic void setTraceRefs (SbBool trace)β trace those refs. π«Άstatic SbBool getTraceRefs (void)β get the trace refs. πstatic SbBool connectRoute (SoInput *in, const SbName &fromnodename, const SbName &fromfieldname, const SbName &tonodename, const SbName &tofieldname)β connect the route, bestie. πstatic SbBool readRoute (SoInput *in)β read that route. π
β¨ Public Attributes β¨
these are the public attributes, and they're giving main character energy. π
SoSFVec3f scaleFactorβ the scale factor, iconic. πSoSFVec3f translationβ the translation, also iconic. β¨
β¨ Public Attributes inherited from SoDragger β¨
from SoDragger, we love to see it. π
SoSFBool isActiveβ is it active? yes bestie. π₯
β¨ Public Attributes inherited from SoInteractionKit β¨
from SoInteractionKit, more inherited gems. π¦
SoSFEnum renderCachingβ render caching, periodt. πSoSFEnum boundingBoxCachingβ bounding box caching, slay. β¨SoSFEnum renderCullingβ render culling, no cap. πSoSFEnum pickCullingβ pick culling, iconic. π
β¨ Protected Member Functions β¨
these are protected, so don't touch unless you're family. π
virtual const SoFieldData * getFieldData (void) constβ get that field data. π~SoHandleBoxDragger ()β destructor, bye bestie. πvirtual SbBool setUpConnections (SbBool onoff, SbBool doitalways=0)β set up those connections. β¨virtual void setDefaultOnNonWritingFields (void)β set the default on non-writing fields. π¦void dragStart (void)β start the drag. π₯void drag (void)β do the drag. πvoid dragFinish (void)β finish the drag. πvoid setAllPartsActive (SbBool onoroff)β set all parts active. π
β¨ Protected Member Functions inherited from SoDragger β¨
from SoDragger, the blueprint. πΈ
SoDragger (void)β constructor, hey. πvirtual ~SoDragger ()β destructor, bye. π¦SbVec2f getNormalizedLocaterPosition (void)β get that normalized locater position. β¨SbVec2s getLocaterPosition (void)β get the locater position. πSbVec2s getStartLocaterPosition (void) constβ get the start locater position. πvoid setStartLocaterPosition (SbVec2s p)β set it. π₯SbBool isAdequateConstraintMotion (void)β is it adequate? πvirtual SbBool shouldGrabBasedOnSurrogate (const SoPath *pickpath, const SoPath *surrogatepath)β should it grab? π€void setCameraInfo (SoAction *action)β set camera info. πΈvirtual void handleEvent (SoHandleEventAction *ha)β handle that event. πvoid transferMotion (SoDragger *child)β transfer motion, slay. β¨void setIgnoreInBbox (SbBool newval)β set ignore in bbox. π¦SbBool isIgnoreInBbox (void)β is it ignoring? πvirtual void getBoundingBox (SoGetBoundingBoxAction *action)β get that bounding box. π₯void setActiveChildDragger (SoDragger *newchilddragger)β set active child dragger. πSoDragger * getActiveChildDragger (void) constβ get it. πvoid updateDraggerCache (const SoPath *path)β update that cache. β¨
β¨ Protected Member Functions inherited from SoInteractionKit β¨
from SoInteractionKit, more protected goodness. π
virtual ~SoInteractionKit ()β destructor. π¦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=1, SbBool onlyifdefault=1)β set any part as default. πvirtual SbBool setAnyPartAsDefault (const SbName &partname, const SbName &nodename, SbBool anypart=1, SbBool onlyifdefault=1)β the other overload. β¨SbBool setAnySurrogatePath (const SbName &name, SoPath *path, SbBool leafcheck=0, SbBool publiccheck=0)β set any surrogate path. πvoid connectSeparatorFields (SoSeparator *dest, SbBool onOff)β connect separator fields. π¦
β¨ Protected Member Functions inherited from SoBaseKit β¨
from SoBaseKit, still serving. π
virtual ~SoBaseKit ()β destructor. π₯virtual SoNode * addToCopyDict (void) constβ add to copy dict. πSoGroup * getContainerNode (const SbName &listname, SbBool makeifneeded=1)β get container node. πvirtual SoNode * getAnyPart (const SbName &partname, SbBool makeifneeded, SbBool leafcheck=0, SbBool publiccheck=0)β get any part. β¨virtual SoNodeKitPath * createPathToAnyPart (const SbName &partname, SbBool makeifneeded, SbBool leafcheck=0, SbBool publiccheck=0, const SoPath *pathtoextend=NULL)β create path to any part. πvirtual SbBool setAnyPart (const SbName &partname, SoNode *from, SbBool anypart=1)β 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. πvoid countMyFields (SoOutput *out)β count my fields. π
β¨ Protected Member Functions inherited from SoNode β¨
from SoNode, the blueprint. π¦
SoNode (void)β constructor. πvirtual ~SoNode ()β destructor. π₯
β¨ Protected Member Functions inherited from SoFieldContainer β¨
from SoFieldContainer, more. π
SoFieldContainer (void)β constructor. π~SoFieldContainer ()β destructor. β¨
β¨ Protected Member Functions inherited from SoBase β¨
from SoBase, the foundation. π
SoBase (void)β constructor. π¦virtual ~SoBase ()β destructor. πvirtual void destroy (void)β destroy. π₯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. π
β¨ Static Protected Member Functions β¨
static protected, bestie. π¦
static const SoFieldData ** getFieldDataPtr (void)β get field data ptr. πstatic const SoNodekitCatalog ** getClassNodekitCatalogPtr (void)β get class nodekit catalog ptr. π₯static void startCB (void *f, SoDragger *d)β start callback. πstatic void motionCB (void *f, SoDragger *d)β motion callback. πstatic void finishCB (void *f, SoDragger *d)β finish callback. β¨static void metaKeyChangeCB (void *f, SoDragger *d)β meta key change callback. πstatic void fieldSensorCB (void *f, SoSensor *s)β field sensor callback. π¦static void valueChangedCB (void *f, SoDragger *d)β value changed callback. π
β¨ Static Protected Member Functions inherited from SoDragger β¨
from SoDragger, callbacks galore. π₯
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 β¨
from SoInteractionKit, more static protected. π
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 β¨
from SoBaseKit, still going. π₯
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 β¨
from SoNode, static protected. β¨
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 β¨
from SoBase, the final static protected batch. π
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 β¨
protected attributes, so many. π
SoSFNode arrow1β arrow1. π₯SoSFNode arrow1Switchβ arrow1Switch. πSoSFNode arrow2β arrow2. πSoSFNode arrow2Switchβ arrow2Switch. β¨SoSFNode arrow3β arrow3. πSoSFNode arrow3Switchβ arrow3Switch. π¦SoSFNode arrow4β arrow4. πSoSFNode arrow4Switchβ arrow4Switch. π₯SoSFNode arrow5β arrow5. πSoSFNode arrow5Switchβ arrow5Switch. πSoSFNode arrow6β arrow6. β¨SoSFNode arrow6Switchβ arrow6Switch. πSoSFNode arrowTranslationβ arrowTranslation. π¦SoSFNode drawStyleβ drawStyle. πSoSFNode extruder1β extruder1. π₯SoSFNode extruder1Activeβ extruder1Active. πSoSFNode extruder1Switchβ extruder1Switch. πSoSFNode extruder2β extruder2. β¨SoSFNode extruder2Activeβ extruder2Active. πSoSFNode extruder2Switchβ extruder2Switch. π¦SoSFNode extruder3β extruder3. πSoSFNode extruder3Activeβ extruder3Active. π₯SoSFNode extruder3Switchβ extruder3Switch. πSoSFNode extruder4β extruder4. πSoSFNode extruder4Activeβ extruder4Active. β¨SoSFNode extruder4Switchβ extruder4Switch. πSoSFNode extruder5β extruder5. π¦SoSFNode extruder5Activeβ extruder5Active. πSoSFNode extruder5Switchβ extruder5Switch. π₯SoSFNode extruder6β extruder6. πSoSFNode extruder6Activeβ extruder6Active. πSoSFNode extruder6Switchβ extruder6Switch. β¨SoSFNode surroundScaleβ surroundScale. πSoSFNode translator1β translator1. π¦SoSFNode translator1Activeβ translator1Active. πSoSFNode translator1Switchβ translator1Switch. π₯SoSFNode translator2β translator2. πSoSFNode translator2Activeβ translator2Active. πSoSFNode translator2Switchβ translator2Switch. β¨SoSFNode translator3β translator3. πSoSFNode translator3Activeβ translator3Active. π¦SoSFNode translator3Switchβ translator3Switch. πSoSFNode translator4β translator4. π₯SoSFNode translator4Activeβ translator4Active. πSoSFNode translator4Switchβ translator4Switch. πSoSFNode translator5β translator5. β¨SoSFNode translator5Activeβ translator5Active. πSoSFNode translator5Switchβ translator5Switch. π¦SoSFNode translator6β translator6. πSoSFNode translator6Activeβ translator6Active. π₯SoSFNode translator6Switchβ translator6Switch. πSoSFNode uniform1β uniform1. πSoSFNode uniform1Activeβ uniform1Active. β¨SoSFNode uniform1Switchβ uniform1Switch. πSoSFNode uniform2β uniform2. π¦SoSFNode uniform2Activeβ uniform2Active. πSoSFNode uniform2Switchβ uniform2Switch. π₯SoSFNode uniform3β uniform3. πSoSFNode uniform3Activeβ uniform3Active. πSoSFNode uniform3Switchβ uniform3Switch. β¨SoSFNode uniform4β uniform4. πSoSFNode uniform4Activeβ uniform4Active. π¦SoSFNode uniform4Switchβ uniform4Switch. πSoSFNode uniform5β uniform5. π₯SoSFNode uniform5Activeβ uniform5Active. πSoSFNode uniform5Switchβ uniform5Switch. πSoSFNode uniform6β uniform6. β¨SoSFNode uniform6Activeβ uniform6Active. πSoSFNode uniform6Switchβ uniform6Switch. π¦SoSFNode uniform7β uniform7. πSoSFNode uniform7Activeβ uniform7Active. π₯SoSFNode uniform7Switchβ uniform7Switch. πSoSFNode uniform8β uniform8. πSoSFNode uniform8Activeβ uniform8Active. β¨SoSFNode uniform8Switchβ uniform8Switch. πSoFieldSensor * translFieldSensorβ translFieldSensor. π¦SoFieldSensor * scaleFieldSensorβ scaleFieldSensor. π
β¨ Protected Attributes inherited from SoDragger β¨
from SoDragger, one attribute. π₯
SoSFNode motionMatrixβ motionMatrix. π
β¨ Protected Attributes inherited from SoInteractionKit β¨
from SoInteractionKit, four attributes. π
SoSFNode geomSeparatorβ geomSeparator. β¨SoSFNode topSeparatorβ topSeparator. πSoFieldSensor * fieldSensorβ fieldSensor. π¦SoSeparator * oldTopSepβ oldTopSep. π
β¨ Protected Attributes inherited from SoBaseKit β¨
from SoBaseKit, three attributes. π₯
SoSFNode callbackListβ callbackList. πSoChildList * childrenβ children. πSbBool connectionsSetUpβ connectionsSetUp. β¨
β¨ Protected Attributes inherited from SoNode β¨
from SoNode, one attribute. π
uint32_t uniqueIdβ uniqueId. π¦
β¨ Protected Attributes inherited from SoFieldContainer β¨
from SoFieldContainer, one attribute. π
SbBool isBuiltInβ isBuiltIn. π₯
β¨ Additional Inherited Members β¨
okay bestie, here's the extra inherited stuff. π
β¨ Public Types inherited from SoDragger β¨
enum ProjectorFrontSetting { FRONT, BACK, USE_PICK }β the projector front setting options. π
β¨ Public Types inherited from SoInteractionKit β¨
enum CacheEnabled { OFF, ON, AUTO }β cache enabled options. β¨
β¨ 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 }β node types, periodt. π
β¨ Protected Types inherited from SoBase β¨
enum BaseFlags { IS_ENGINE = 0x01, IS_GROUP = 0x02 }β base flags. π¦
β¨ Static Protected Attributes inherited from SoNode β¨
static uint32_t nextUniqueId = 0β next unique ID. πstatic int nextActionMethodIndex = 0β next action method index. π₯
π Detailed Description π
Okay bestie, gather round, because the SoHandleBoxDragger class is literally the moment. π
It provides support for interactive scaling and translation. That's the whole vibe.
Here's how the dragger looks with its default geometry in the inactive state:
πΌοΈ (the manpage has a picture right here of the dragger sitting there, chilling, in its inactive state)
A handlebox dragger is convenient to use for letting the user interact with geometry that can be scaled (uniformly or in a non-uniform way) and translated in 3D. Like, both. In three dee. Iconic behavior, no cap. β¨
The dragger consists of a "cube" of interaction geometry. The end-user can click and drag any side of the cube to translate the dragger and click and drag any of the corner or edge markers for scaling operations. So: sides = move it, corners & edges = resize it. That's the whole user experience, and honestly? She ate. π
π οΈ Constructor & Destructor Documentation
SoHandleBoxDragger::SoHandleBoxDragger (void )
Default constructor, sets up the dragger nodekit catalog with the interaction and feedback geometry. β¨
Node kit structure (new entries versus parent class marked with arrow prefix):
CLASS SoHandleBoxDragger
-->"this"
"callbackList"
"topSeparator"
"motionMatrix"
--> "surroundScale"
"geomSeparator"
--> "drawStyle"
--> "translator1Switch"
--> "translator1"
--> "translator1Active"
--> "translator2Switch"
--> "translator2"
--> "translator2Active"
--> "translator3Switch"
--> "translator3"
--> "translator3Active"
--> "translator4Switch"
--> "translator4"
--> "translator4Active"
--> "translator5Switch"
--> "translator5"
--> "translator5Active"
--> "translator6Switch"
--> "translator6"
--> "translator6Active"
--> "extruder1Switch"
--> "extruder1"
--> "extruder1Active"
--> "extruder2Switch"
--> "extruder2"
--> "extruder2Active"
--> "extruder3Switch"
--> "extruder3"
--> "extruder3Active"
--> "extruder4Switch"
--> "extruder4"
--> "extruder4Active"
--> "extruder5Switch"
--> "extruder5"
--> "extruder5Active"
--> "extruder6Switch"
--> "extruder6"
--> "extruder6Active"
--> "uniform1Switch"
--> "uniform1"
--> "uniform1Active"
--> "uniform2Switch"
--> "uniform2"
--> "uniform2Active"
--> "uniform3Switch"
--> "uniform3"
--> "uniform3Active"
--> "uniform4Switch"
--> "uniform4"
--> "uniform4Active"
--> "uniform5Switch"
--> "uniform5"
--> "uniform5Active"
--> "uniform6Switch"
--> "uniform6"
--> "uniform6Active"
--> "uniform7Switch"
--> "uniform7"
--> "uniform7Active"
--> "uniform8Switch"
--> "uniform8"
--> "uniform8Active"
--> "arrowTranslation"
--> "arrow1Switch"
--> "arrow1"
--> "arrow2Switch"
--> "arrow2"
--> "arrow3Switch"
--> "arrow3"
--> "arrow4Switch"
--> "arrow4"
--> "arrow5Switch"
--> "arrow5"
--> "arrow6Switch"
--> "arrow6"
(See SoBaseKit::printDiagram() for information about the output formatting.)
Detailed information on catalog parts:
CLASS SoHandleBoxDragger
PVT "this", SoHandleBoxDragger ---
"callbackList", SoNodeKitListPart [ SoCallback, SoEventCallback ]
PVT "topSeparator", SoSeparator ---
PVT "motionMatrix", SoMatrixTransform ---
"surroundScale", SoSurroundScale ---
PVT "geomSeparator", SoSeparator ---
PVT "drawStyle", SoDrawStyle ---
PVT "translator1Switch", SoSwitch ---
"translator1", SoSeparator ---
"translator1Active", SoSeparator ---
PVT "translator2Switch", SoSwitch ---
"translator2", SoSeparator ---
"translator2Active", SoSeparator ---
PVT "translator3Switch", SoSwitch ---
"translator3", SoSeparator ---
"translator3Active", SoSeparator ---
PVT "translator4Switch", SoSwitch ---
"translator4", SoSeparator ---
"translator4Active", SoSeparator ---
PVT "translator5Switch", SoSwitch ---
"translator5", SoSeparator ---
"translator5Active", SoSeparator ---
PVT "translator6Switch", SoSwitch ---
"translator6", SoSeparator ---
"translator6Active", SoSeparator ---
PVT "extruder1Switch", SoSwitch ---
"extruder1", SoSeparator ---
"extruder1Active", SoSeparator ---
PVT "extruder2Switch", SoSwitch ---
"extruder2", SoSeparator ---
"extruder2Active", SoSeparator ---
PVT "extruder3Switch", SoSwitch ---
"extruder3", SoSeparator ---
"extruder3Active", SoSeparator ---
PVT "extruder4Switch", SoSwitch ---
"extruder4", SoSeparator ---
"extruder4Active", SoSeparator ---
PVT "extruder5Switch", SoSwitch ---
"extruder5", SoSeparator ---
"extruder5Active", SoSeparator ---
PVT "extruder6Switch", SoSwitch ---
"extruder6", SoSeparator ---
"extruder6Active", SoSeparator ---
PVT "uniform1Switch", SoSwitch ---
"uniform1", SoSeparator ---
"uniform1Active", SoSeparator ---
PVT "uniform2Switch", SoSwitch ---
"uniform2", SoSeparator ---
"uniform2Active", SoSeparator ---
PVT "uniform3Switch", SoSwitch ---
"uniform3", SoSeparator ---
"uniform3Active", SoSeparator ---
PVT "uniform4Switch", SoSwitch ---
"uniform4", SoSeparator ---
"uniform4Active", SoSeparator ---
PVT "uniform5Switch", SoSwitch ---
"uniform5", SoSeparator ---
"uniform5Active", SoSeparator ---
PVT "uniform6Switch", SoSwitch ---
"uniform6", SoSeparator ---
"uniform6Active", SoSeparator ---
PVT "uniform7Switch", SoSwitch ---
"uniform7", SoSeparator ---
"uniform7Active", SoSeparator ---
PVT "uniform8Switch", SoSwitch ---
"uniform8", SoSeparator ---
"uniform8Active", SoSeparator ---
PVT "arrowTranslation", SoTranslation ---
PVT "arrow1Switch", SoSwitch ---
"arrow1", SoSeparator ---
PVT "arrow2Switch", SoSwitch ---
"arrow2", SoSeparator ---
PVT "arrow3Switch", SoSwitch ---
"arrow3", SoSeparator ---
PVT "arrow4Switch", SoSwitch ---
"arrow4", SoSeparator ---
PVT "arrow5Switch", SoSwitch ---
"arrow5", SoSeparator ---
PVT "arrow6Switch", SoSwitch ---
"arrow6", SoSeparator ---
(See SoBaseKit::printTable() for information about the output formatting.)
References SoDragger::addFinishCallback(), SoDragger::addMotionCallback(), SoDragger::addOtherEventCallback(), SoDragger::addStartCallback(), SoDragger::addValueChangedCallback(), fieldSensorCB(), finishCB(), metaKeyChangeCB(), motionCB(), SoInteractionKit::readDefaultParts(), scaleFactor, scaleFieldSensor, setAllPartsActive(), SoInteractionKit::setPartAsDefault(), setUpConnections(), SoHandleBoxDragger(), startCB(), translation, translFieldSensor, and valueChangedCB().
Referenced by fieldSensorCB(), finishCB(), getFieldData(), metaKeyChangeCB(), motionCB(), SoHandleBoxDragger(), startCB(), and valueChangedCB().
SoHandleBoxDragger::~SoHandleBoxDragger () [protected]
Protected destructor. π«Ά She's not for public consumption, bestie, she's protected.
(Dragger classes are derived from SoBase, so they are reference counted and automatically destroyed when their reference count goes to 0.) So like β when the last person holding a ref lets go, she's gone. Poof. π But the counting handles it, you don't have to.
References scaleFieldSensor, and translFieldSensor.
π Member Function Documentation π
SoType SoHandleBoxDragger::getTypeId (void ) const [virtual]
Okay bestie, this one hands you back the type identification of any object derived from a class that inherits SoBase. What's it for? Run-time type checking, and "downward" casting. iykyk. π
Usage example:
void foo(SoNode * node)
{
if (node->getTypeId() == SoFile::getClassTypeId()) {
SoFile * filenode = (SoFile *)node; // safe downward cast, knows the type
}
else if (node->getTypeId().isOfType(SoGroup::getClassTypeId())) {
SoGroup * group = (SoGroup *)node; // safe downward cast, knows the type
}
}
Now, for the application programmers out there who wanna extend the library with brand new nodes, engines, nodekits, draggers or whatever else β this method needs to be overridden in all subclasses. No skipping, fr fr. This is typically done as part of setting up the full type system for extension classes, which is usually accomplished by using the pre-defined macros available through, for instance, Inventor/nodes/SoSubNode.h (that's SO_NODE_INIT_CLASS and SO_NODE_CONSTRUCTOR for node classes), Inventor/engines/SoSubEngine.h (for engine classes), and so on and so forth. π
Want more tea on writing Coin extensions? Go check the class documentation of the toplevel superclasses for the various class groups. π
Reimplemented from SoDragger.
const SoFieldData * SoHandleBoxDragger::getFieldData (void ) const [protected], [virtual]
Returns a pointer to the class-wide field data storage object for this instance. And if there are literally no fields present? It returns NULL. That's it, that's the whole vibe. π«Ά
Reimplemented from SoDragger.
References: SoHandleBoxDragger().
const SoNodekitCatalog * SoHandleBoxDragger::getNodekitCatalog (void ) const [virtual]
Returns the nodekit catalog which defines the layout of this class' kit. It's giving floor plan energy. β¨
Reimplemented from SoDragger.
SbBool SoHandleBoxDragger::setUpConnections (SbBool onoff, SbBool doitalways = 0) [protected], [virtual]
Sets up all internal connections for instances of this class. π
(Quick heads up: this method will usually not be of interest to the application programmer, unless you're trying to extend the library with new custom nodekits or dragger classes. If that's you, go read the SoBaseKit class documentation. Go on, I'll wait. π)
Reimplemented from SoInteractionKit.
References: SoBaseKit::connectionsSetUp, fieldSensorCB(), scaleFactor, scaleFieldSensor, SoBaseKit::setUpConnections(), translation, and translFieldSensor.
Referenced by: SoHandleBoxDragger().
void SoHandleBoxDragger::setDefaultOnNonWritingFields (void ) [protected], [virtual]
(Bestie, 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. But if you indeed are writing extensions, see the information in the SoBaseKit class documentation.) π
This is a virtual method, and the code in it should call SoField::setDefault() with argument TRUE on part fields that should not be written upon scenegraph 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's of
SoGrouptype and all fields are at their default values
Subclasses should usually override this to do additional settings for new member fields. From the subclass, do remember to call "upwards" to your superclass' setDefaultOnNonWritingFields() method. Don't leave your superclass on read, okay? π
Reimplemented from SoDragger.
References: SoDragger::setDefaultOnNonWritingFields().
void SoHandleBoxDragger::startCB (void * f, SoDragger * d) [static], [protected]
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer. π
References: dragStart(), SoDragger::SoDragger(), and SoHandleBoxDragger().
Referenced by: SoHandleBoxDragger().
void SoHandleBoxDragger::motionCB (void * f, SoDragger * d) [static], [protected]
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer. π
References: drag(), SoDragger::SoDragger(), and SoHandleBoxDragger().
Referenced by: SoHandleBoxDragger().
void SoHandleBoxDragger::finishCB (void * f, SoDragger * d) [static], [protected]
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer. β¨
References: dragFinish(), SoDragger::SoDragger(), and SoHandleBoxDragger().
Referenced by: SoHandleBoxDragger().
void SoHandleBoxDragger::metaKeyChangeCB (void * f, SoDragger * d) [static], [protected]
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer. π₯
References: drag(), SoDragger::getEvent(), SoDragger::isActive, SoDragger::SoDragger(), and SoHandleBoxDragger().
Referenced by: SoHandleBoxDragger().
void SoHandleBoxDragger::fieldSensorCB (void * d, SoSensor * s) [static], [protected]
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer. π¦
References: SoDragger::getMotionMatrix(), SoDragger::setMotionMatrix(), SoHandleBoxDragger(), and SoDragger::workFieldsIntoTransform().
Referenced by: setUpConnections(), and SoHandleBoxDragger().
void SoHandleBoxDragger::valueChangedCB (void * f, SoDragger * d) [static], [protected]
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer. πΈ
References: SoFieldSensor::attach(), SoFieldSensor::detach(), SoDragger::getMotionMatrix(), SbMatrix::getTransform(), scaleFactor, scaleFieldSensor, SoDragger::SoDragger(), SoHandleBoxDragger(), translation, and translFieldSensor.
Referenced by: SoHandleBoxDragger().
void SoHandleBoxDragger::dragStart (void ) [protected]
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer. π
Called when dragger is selected (picked) by the user. It's giving main character energy. π
References: SoPath::findNode(), SbLine::getClosestPoint(), SoDragger::getEvent(), SoDragger::getLocalStartingPoint(), SoDragger::getLocalToWorldMatrix(), SoDragger::getPickPath(), SbString::getString(), SbMatrix::multVecMatrix(), SbString::sprintf(), SoTranslation::translation, and SoEvent::wasCtrlDown().
Referenced by: startCB().
void SoHandleBoxDragger::drag (void ) [protected]
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer. π
Called when user drags the mouse after picking the dragger. Slay, literally. β¨
References: SoDragger::appendScale(), SoDragger::appendTranslation(), SoDragger::getEvent(), SoDragger::getLocalStartingPoint(), SoDragger::getLocalToWorldMatrix(), SoDragger::getNormalizedLocaterPosition(), SoDragger::getStartMotionMatrix(), SoDragger::getViewVolume(), SoDragger::getWorldToLocalMatrix(), SoDragger::isAdequateConstraintMotion(), SbMatrix::multVecMatrix(), SoDragger::setMotionMatrix(), and SoDragger::setStartLocaterPosition().
Referenced by: metaKeyChangeCB(), and motionCB().
void SoHandleBoxDragger::dragFinish (void ) [protected]
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer. π§
Called when mouse button is released after picking and interacting with the dragger. Bye bestie, hands off. π«Ά
References: setAllPartsActive().
Referenced by: finishCB().
void SoHandleBoxDragger::setAllPartsActive (SbBool onoroff) [protected]
Activate or deactive all dragger geometry parts. That's the whole job. π
References: SbString::getString(), SoInteractionKit::setSwitchValue(), and SbString::sprintf().
Referenced by: dragFinish(), and SoHandleBoxDragger().
π Member Data Documentation π
SoSFVec3f SoHandleBoxDragger::scaleFactor
Continuously updated to contain the current vector of scaling along the X, Y and Z axes. It's tracking the vibes in 3D. π
Referenced by: setUpConnections(), SoHandleBoxDragger(), and valueChangedCB().
SoSFVec3f SoHandleBoxDragger::translation
Continuously updated to contain the current translation from the dragger's local origo position. π
The application programmer applying this dragger in his code should connect the relevant node fields in the scene to this field to make it follow the dragger. No cap, that's how you make it move. π«
Referenced by: setUpConnections(), SoHandleBoxDragger(), and valueChangedCB().
SoFieldSensor* SoHandleBoxDragger::translFieldSensor [protected]
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer. π
Referenced by: setUpConnections(), SoHandleBoxDragger(), valueChangedCB(), and ~SoHandleBoxDragger().
SoFieldSensor* SoHandleBoxDragger::scaleFieldSensor [protected]
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer. π
Referenced by: setUpConnections(), SoHandleBoxDragger(), valueChangedCB(), and ~SoHandleBoxDragger().
πΈ Author πΈ
Generated automatically by Doxygen for Coin from the source code. π€β¨
That's a wrap, bestie! π This whole page came straight out of Coin, Version 2.5.0, and it's all about SoHandleBoxDragger(3) β go forth and drag those boxes, you icon. π
π¦
π¦ where this page comes from
- fedora 43: Coin2-devel 2.5.0-52.fc43 Β· GPL-2.0-only
- fedora 43: Coin2-devel 2.5.0-52.fc43 Β· GPL-2.0-only
- fedora 44: Coin2-devel 2.5.0-54.fc44 Β· GPL-2.0-only
- fedora 44: Coin2-devel 2.5.0-54.fc44 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms