SoScale1Dragger(3)

πŸ“¦
version 4.0.10 Β· 4 versions
, in fedora 43, fedora 44

okay bestie, buckle up πŸ’– this is the Coin manpage for SoScale1Dragger β€” it lives in section 3 of the manual, and it's a long one, so we're doing this in three parts. Part 1 is right here. No skipping, we're reading the whole thing together. 🫢


✨ NAME ✨

SoScale1Dragger β€” the class that gives your end-user a whole mechanism for scaling stuff in one dimension. One. Single. Axis. And it serves. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <Inventor/draggers/SoScale1Dragger.h>

Inherits SoDragger. So yeah, everything SoDragger can do, this baby can do too. Generational. πŸ‘‘

🌸 Public Member Functions 🌸

  • virtual SoType getTypeId (void) const β€” the classic, hands you back the type id.
  • virtual const SoNodekitCatalog * getNodekitCatalog (void) const β€” returns the nodekit catalog for this instance, no cap.
  • SoScale1Dragger (void) β€” the constructor. Say hi. πŸŽ€

πŸ’œ Public Member Functions inherited from SoDragger

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

🌈 Public Member Functions inherited from SoInteractionKit

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

πŸŽ€ Public Member Functions inherited from SoBaseKit

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

⭐ Public Member Functions inherited from SoNode

  • void setOverride (const SbBool state)
  • SbBool isOverride (void) const
  • void setNodeType (const NodeType type)
  • NodeType getNodeType (void) const
  • virtual SoNode * copy (SbBool copyconnections=FALSE) const
  • virtual SbBool affectsState (void) const
  • virtual void GLRenderBelowPath (SoGLRenderAction *action)
  • virtual void GLRenderInPath (SoGLRenderAction *action)
  • virtual void GLRenderOffPath (SoGLRenderAction *action)
  • virtual void pick (SoPickAction *action)
  • virtual void audioRender (SoAudioRenderAction *action)
  • virtual void startNotify (void)
  • virtual void notify (SoNotList *l)
  • SbUniqueId getNodeId (void) const
  • virtual void writeInstance (SoOutput *out)
  • virtual SoFieldContainer * copyThroughConnection (void) const

🧚 Public Member Functions inherited from SoFieldContainer

  • void setToDefaults (void)
  • SbBool hasDefaultValues (void) const
  • SbBool fieldsAreEqual (const SoFieldContainer *container) const
  • void copyFieldValues (const SoFieldContainer *container, SbBool copyconnections=FALSE)
  • SbBool set (const char *const fielddata)
  • void get (SbString &fielddata)
  • virtual int getFields (SoFieldList &l) const
  • virtual int getAllFields (SoFieldList &l) const
  • virtual SoField * getField (const SbName &name) const
  • virtual SoField * getEventIn (const SbName &name) const
  • virtual SoField * getEventOut (const SbName &name) const
  • SbBool getFieldName (const SoField *const field, SbName &name) const
  • SbBool enableNotify (const SbBool flag)
  • SbBool isNotifyEnabled (void) const
  • SbBool set (const char *fielddata, SoInput *input)
  • void get (SbString &fielddata, SoOutput *out)
  • virtual SbBool validateNewFieldValue (SoField *field, void *newval)
  • SbBool getIsBuiltIn (void) const
  • virtual void getFieldsMemorySize (size_t &managed, size_t &unmanaged) const
  • void setUserData (void *userdata) const
  • void * getUserData (void) const

πŸ’– Public Member Functions inherited from SoBase

  • void ref (void) const
  • void unref (void) const
  • void unrefNoDelete (void) const
  • int32_t getRefCount (void) const
  • void touch (void)
  • SbBool isOfType (SoType type) const β€” returns TRUE if the type of this object is either of the same type or inherited from type. iykyk. πŸ’«
  • 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 πŸ”₯

  • 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 &center)
  • static void getTransformFast (SbMatrix &mtx, SbVec3f &translation, SbRotation &rotation, SbVec3f &scalefactor, SbRotation &scaleorientation)
  • static SbMatrix appendTranslation (const SbMatrix &mtx, const SbVec3f &translation, const SbMatrix *conversion=NULL)
  • static SbMatrix appendScale (const SbMatrix &mtx, const SbVec3f &scale, const SbVec3f &scalecenter, const SbMatrix *conversion=NULL)
  • static SbMatrix appendRotation (const SbMatrix &mtx, const SbRotation &rot, const SbVec3f &rotcenter, const SbMatrix *conversion=NULL)
  • static void initClass (void)
  • static void initClasses (void)

πŸ“ Static Public Member Functions inherited from SoInteractionKit

  • static SoType getClassTypeId (void)
  • static const SoNodekitCatalog * getClassNodekitCatalog (void)
  • static void initClass (void) β€” sets up initialization for data common to all instances of this class, like submitting necessary information to the Coin type system. the way it just… handles the paperwork. πŸ“
  • 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)

and that's part 1 bestie, the rest is coming so don't go anywhere πŸ’…βœ¨

✨ Static Public Member Functions (inherited from SoNode) ✨

okay so this whole chunk is stuff SoScale1Dragger gets handed down from SoNode, no cap πŸ’–

  • static uint32_t getCompatibilityTypes (const SoType &nodetype) β€” hands you the compatibility bitmask for a given node type.
  • static SoType getClassTypeId (void) β€” gives you back the SoType for this class.
  • static SoNode * getByName (const SbName &name) β€” look up a node by its name, returns it.
  • static int getByName (const SbName &name, SoNodeList &l) β€” same idea but it dumps every match into l and tells you how many it found.
  • 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. basically it's the "get registered bestie" step πŸŽ€
  • static void initClasses (void) β€” same ritual, but for the whole squad of classes at once.
  • static SbUniqueId getNextNodeId (void) β€” grabs the next unique node id.
  • static int getActionMethodIndex (const SoType type) β€” returns the action method index for that type.
  • static void getBoundingBoxS (SoAction *action, SoNode *node) β€” the static bounding-box action entry point.
  • static void GLRenderS (SoAction *action, SoNode *node) β€” static GL render entry point.
  • static void callbackS (SoAction *action, SoNode *node) β€” static callback action entry point.
  • static void getMatrixS (SoAction *action, SoNode *node) β€” static matrix action entry point.
  • static void handleEventS (SoAction *action, SoNode *node) β€” static event handling entry point.
  • static void pickS (SoAction *action, SoNode *node) β€” static pick action entry point.
  • static void rayPickS (SoAction *action, SoNode *node) β€” static ray pick entry point.
  • static void searchS (SoAction *action, SoNode *node) β€” static search action entry point.
  • static void writeS (SoAction *action, SoNode *node) β€” static write action entry point.
  • static void audioRenderS (SoAction *action, SoNode *node) β€” static audio render entry point.
  • static void getPrimitiveCountS (SoAction *action, SoNode *node) β€” static primitive-count entry point.

🌸 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. (yes it's the same speech again, the type system really wants its info fr fr)
  • static SoType getClassTypeId (void) β€” This static method returns the SoType object associated with objects of this class.
  • static void cleanupClass (void) β€” tears down the class-level stuff when you're done.
  • static void initCopyDict (void) β€” sets up the copy dictionary for a copy operation.
  • static void addCopy (const SoFieldContainer *orig, const SoFieldContainer *copy) β€” registers orig β†’ copy in the copy dictionary.
  • static SoFieldContainer * checkCopy (const SoFieldContainer *orig) β€” checks the copy dict for orig; yells (well, asserts) if it's not there.
  • static SoFieldContainer * findCopy (const SoFieldContainer *orig, const SbBool copyconnections) β€” looks up the copy of orig, respecting whether connections get copied.
  • static void copyDone (void) β€” closes out the copy dictionary when the copying's finished.

πŸ’… Static Public Member Functions (inherited from SoBase) πŸ’…

  • static void initClass (void) β€” Sets up initialization for data common to all instances of this class, like submitting necessary information to the Coin type system.
  • static SoType getClassTypeId (void) β€” This static method returns the SoType object associated with objects of this class.
  • static void addName (SoBase *const base, const char *const name) β€” gives base the name name.
  • static void removeName (SoBase *const base, const char *const name) β€” takes that name right back off.
  • static void incrementCurrentWriteCounter (void) β€” bumps the current write counter up.
  • static void decrementCurrentWriteCounter (void) β€” bumps it back down.
  • static SoBase * getNamedBase (const SbName &name, SoType type) β€” finds the base object called name that matches type.
  • static int getNamedBases (const SbName &name, SoBaseList &baselist, SoType type) β€” collects all the matching bases into baselist, returns the count.
  • static SbBool read (SoInput *input, SoBase *&base, SoType expectedtype) β€” reads a base out of input, expecting expectedtype.
  • static void setInstancePrefix (const SbString &c) β€” sets the instance prefix string.
  • static void setTraceRefs (SbBool trace) β€” toggles reference tracing on or off.
  • static SbBool getTraceRefs (void) β€” tells you whether reference tracing is on.
  • static SbBool connectRoute (SoInput *input, const SbName &fromnodename, const SbName &fromfieldname, const SbName &tonodename, const SbName &tofieldname) β€” wires up a route from one node/field to another while reading.
  • static SbBool readRoute (SoInput *input) β€” reads a route straight out of input.

πŸ‘‘ Public Attributes πŸ‘‘

  • SoSFVec3f scaleFactor β€” the field holding the scale factor, obviously πŸ’–

Public Attributes (inherited from SoDragger)

  • SoSFBool isActive β€” whether the dragger is currently active.

Public Attributes (inherited from SoInteractionKit)

  • SoSFEnum renderCaching β€” the render caching mode.
  • SoSFEnum boundingBoxCaching β€” the bounding box caching mode.
  • SoSFEnum renderCulling β€” the render culling mode.
  • SoSFEnum pickCulling β€” the pick culling mode.

πŸŽ€ Protected Member Functions πŸŽ€

  • virtual const SoFieldData * getFieldData (void) const β€” returns the field data for this class.
  • virtual ~SoScale1Dragger (void) β€” the destructor, bestie. it's virtual, it's protected, it's doing its thing.
  • virtual SbBool setUpConnections (SbBool onoff, SbBool doitalways=FALSE) β€” sets up (or tears down) the internal connections, with doitalways defaulting to FALSE.
  • void dragStart (void) β€” kicks off the drag.
  • void drag (void) β€” handles the drag as it's happening.
  • void dragFinish (void) β€” wraps the drag up.

Protected Member Functions (inherited from SoDragger)

  • SoDragger (void) β€” constructor.
  • virtual ~SoDragger (void) β€” destructor.
  • SbVec2f getNormalizedLocaterPosition (void) β€” gives you the locater position, normalized.
  • SbVec2s getLocaterPosition (void) β€” gives you the raw locater position.
  • SbVec2s getStartLocaterPosition (void) const β€” gives you the locater position from when the drag started.
  • void setStartLocaterPosition (SbVec2s p) β€” sets that start locater position to p.
  • SbBool isAdequateConstraintMotion (void) β€” checks whether the constraint motion is adequate.
  • virtual SbBool shouldGrabBasedOnSurrogate (const SoPath *pickpath, const SoPath *surrogatepath) β€” decides whether to grab, based on the surrogate path.
  • void setCameraInfo (SoAction *action) β€” pulls the camera info out of the action.
  • virtual void handleEvent (SoHandleEventAction *ha) β€” the event handler.
  • void transferMotion (SoDragger *child) β€” passes the motion along to child.
  • void setIgnoreInBbox (SbBool newval) β€” sets whether this dragger gets ignored during bounding box computation.
  • SbBool isIgnoreInBbox (void) β€” tells you if it's being ignored in the bbox.
  • virtual void getBoundingBox (SoGetBoundingBoxAction *action) β€” the bounding box action hook.
  • void setActiveChildDragger (SoDragger *newchilddragger) β€” sets the active child dragger.
  • SoDragger * getActiveChildDragger (void) const β€” returns the active child dragger.
  • virtual void setDefaultOnNonWritingFields (void) β€” sets defaults on the fields that aren't getting written out.
  • void updateDraggerCache (const SoPath *path) β€” refreshes the dragger cache for path.
  • virtual const SoPickedPoint * getPickedPointForStart (SoHandleEventAction *action) β€” grabs the picked point used to start the drag.

Protected Member Functions (inherited from SoInteractionKit)

  • virtual ~SoInteractionKit () β€” destructor.
  • virtual void copyContents (const SoFieldContainer *fromFC, SbBool copyConnections) β€” copies the contents over from fromFC.
  • virtual SbBool setPart (const int partNum, SoNode *node) β€” sets a part by its number.
  • virtual SbBool readInstance (SoInput *in, unsigned short flags) β€” reads the instance in from in.
  • virtual SbBool setAnyPartAsDefault (const SbName &partname, SoNode *node, SbBool anypart=TRUE, SbBool onlyifdefault=TRUE) β€” sets a part as default, by node.
  • virtual SbBool setAnyPartAsDefault (const SbName &partname, const SbName &nodename, SbBool anypart=TRUE, SbBool onlyifdefault=TRUE) β€” same, but you name the node instead.
  • SbBool setAnySurrogatePath (const SbName &name, SoPath *path, SbBool leafcheck=FALSE, SbBool publiccheck=FALSE) β€” sets a surrogate path for name.
  • void connectSeparatorFields (SoSeparator *dest, SbBool onOff) β€” connects the separator fields to dest.

Protected Member Functions (inherited from SoBaseKit)

  • virtual ~SoBaseKit () β€” destructor.
  • virtual SoNode * addToCopyDict (void) const β€” adds this kit to the copy dictionary.
  • SoGroup * getContainerNode (const SbName &listname, SbBool makeifneeded=TRUE) β€” fetches the container node for listname.
  • virtual SoNode * getAnyPart (const SbName &partname, SbBool makeifneeded, SbBool leafcheck=FALSE, SbBool publiccheck=FALSE) β€” grabs any part by name.
  • virtual SoNodeKitPath * createPathToAnyPart (const SbName &partname, SbBool makeifneeded, SbBool leafcheck=FALSE, SbBool publiccheck=FALSE, const SoPath *pathtoextend=NULL) β€” builds a path to any part.
  • virtual SbBool setAnyPart (const SbName &partname, SoNode *from, SbBool anypart=TRUE) β€” sets any part from a node.
  • void createNodekitPartsList (void) β€” builds the nodekit parts list.
  • void createFieldList (void) β€” builds the field list.
  • virtual void createDefaultParts (void) β€” creates the default parts.
  • const SoNodekitParts * getNodekitPartsList (void) const β€” returns the nodekit parts list.
  • const SbList< SoSFNode * > & getCatalogInstances (void) const β€” returns the catalog instances.
  • void catalogError (void) β€” reports a catalog error.
  • void countMyFields (SoOutput *out) β€” counts the fields, writing to out.

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) β€” destroys the thing.
  • SbBool hasMultipleWriteRefs (void) const β€” checks whether there are multiple write references.
  • SbBool writeHeader (SoOutput *out, SbBool isgroup, SbBool isengine) const β€” writes the header out to out.
  • void writeFooter (SoOutput *out) const β€” writes the footer out to out.
  • virtual const char * getFileFormatName (void) const β€” returns the file format name.
  • virtual SoNotRec createNotRec (void) β€” creates a notification record.

πŸ¦‹ Static Protected Member Functions πŸ¦‹

  • static const SoFieldData ** getFieldDataPtr (void) β€” returns a pointer to the field data pointer.
  • static const SoNodekitCatalog ** getClassNodekitCatalogPtr (void) β€” returns a pointer to the class nodekit catalog pointer.
  • static void startCB (void *f, SoDragger *d) β€” the start callback.
  • static void motionCB (void *f, SoDragger *d) β€” the motion callback.
  • static void finishCB (void *f, SoDragger *d) β€” the finish callback.
  • static void fieldSensorCB (void *f, SoSensor *s) β€” the field sensor callback.
  • static void valueChangedCB (void *f, SoDragger *d) β€” the value-changed callback.

Static Protected Member Functions (inherited from SoDragger)

  • static const SoFieldData ** getFieldDataPtr (void) β€” pointer to the field data pointer.
  • static const SoNodekitCatalog ** getClassNodekitCatalogPtr (void) β€” pointer to the class nodekit catalog pointer.
  • static void childTransferMotionAndValueChangedCB (void *, SoDragger *) β€” the child motion-transfer + value-changed callback.
  • static void childValueChangedCB (void *, SoDragger *) β€” the child value-changed callback.
  • static void childStartCB (void *, SoDragger *) β€” the child start callback.
  • static void childMotionCB (void *, SoDragger *) β€” the child motion callback.
  • static void childFinishCB (void *, SoDragger *) β€” the child finish callback.
  • static void childOtherEventCB (void *, SoDragger *) β€” the child other-event callback.

Static Protected Member Functions (inherited from SoInteractionKit)

  • static const SoFieldData ** getFieldDataPtr (void) β€” pointer to the field data pointer.
  • static const SoNodekitCatalog ** getClassNodekitCatalogPtr (void) β€” pointer to the class nodekit catalog pointer.
  • static void readDefaultParts (const char *fileName, const char defaultBuffer[], int defBufSize) β€” reads the default parts in from a file or a buffer.
  • static void fieldSensorCB (void *, SoSensor *) β€” the field sensor callback.

Static Protected Member Functions (inherited from SoBaseKit)

  • static const SoFieldData ** getFieldDataPtr (void) β€” pointer to the field data pointer.
  • static const SoNodekitCatalog ** getClassNodekitCatalogPtr (void) β€” pointer to the class nodekit catalog pointer.

Static Protected Member Functions (inherited from SoNode)

  • static const SoFieldData ** getFieldDataPtr (void) β€” pointer to the field data pointer.
  • static void setNextActionMethodIndex (int index) β€” sets the next action method index to index.
  • static int getNextActionMethodIndex (void) β€” returns the next action method index.
  • static void incNextActionMethodIndex (void) β€” bumps the next action method index up.
  • static void setCompatibilityTypes (const SoType &nodetype, const uint32_t bitmask) β€” sets the compatibility types for nodetype.

Static Protected Member Functions (inherited from SoBase)

  • static uint32_t getCurrentWriteCounter (void) β€” returns the current write counter.
  • static void staticDataLock (void) β€” locks the static data.
  • static void staticDataUnlock (void) β€” unlocks it again, we love balance πŸ’œ

🌈 Protected Attributes 🌈

  • SoSFNode feedback β€” the feedback node field.
  • SoSFNode feedbackActive β€” the active feedback field.
  • SoSFNode feedbackSwitch β€” the feedback switch field.
  • SoSFNode scaler β€” the scaler node field.
  • SoSFNode scalerActive β€” the active scaler field.
  • SoSFNode scalerSwitch β€” the scaler switch field.
  • SoFieldSensor * fieldSensor β€” pointer to the field sensor.
  • SbLineProjector * lineProj β€” pointer to the line projector.

Protected Attributes (inherited from SoDragger)

  • SoSFNode motionMatrix β€” the motion matrix field.

Protected Attributes (inherited from SoInteractionKit)

  • SoSFNode geomSeparator β€” the geometry separator field.
  • SoSFNode topSeparator β€” the top separator field.
  • SoFieldSensor * fieldSensor β€” pointer to the field sensor.
  • SoSeparator * oldTopSep β€” pointer to the old top separator.

Protected Attributes (inherited from SoBaseKit)

  • SoSFNode callbackList β€” the callback list field.
  • SoChildList * children β€” pointer to the children.
  • SbBool connectionsSetUp β€” whether the connections are set up.

Protected Attributes (inherited from SoNode)

  • SbUniqueId uniqueId β€” this node's unique id.

Protected Attributes (inherited from SoFieldContainer)

  • SbBool isBuiltIn β€” whether this field container is built in.

⭐ Additional Inherited Members ⭐

Public Types (inherited from SoDragger)

  • enum ProjectorFrontSetting { FRONT, BACK, USE_PICK } β€” your projector front-setting options, bestie: FRONT, BACK, or USE_PICK πŸ’…

Public Types (inherited from SoInteractionKit)

  • enum CacheEnabled { OFF, ON, AUTO } β€” caching options: 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 } β€” the full node-type bitmask lineup, every single one of them, no skipping ✨

Protected Types (inherited from SoBase)

  • enum BaseFlags { IS_ENGINE = 0x01, IS_GROUP = 0x02 } β€” base flags: IS_ENGINE and IS_GROUP.

Static Protected Attributes (inherited from SoNode)

  • static SbUniqueId nextUniqueId = 1 β€” the next unique id, starting at 1.
  • static int nextActionMethodIndex = 0 β€” the next action method index, starting at 0.

✨ Detailed Description ✨

okay bestie, so the SoScale1Dragger class is literally a whole mechanism that lets the end-user scale stuff in one dimension. that's it. that's the job. one axis, one vibe. πŸ’…

here's how the dragger looks with its default geometry when it's just chillin' in the inactive state:

  • (the original manpage shows an image here β€” the dragger in its default inactive geometry)

use this dragger when you want the end-user of your app to scale along the X-axis. pro tip though: slap a transformation node in front of the dragger to position it and re-orient it, and then it can scale along any vector. it's giving adaptable. πŸ¦‹

See also

  • SoScale2Dragger, SoScaleUniformDragger, SoScale2UniformDragger

πŸŽ€ Constructor & Destructor Documentation πŸŽ€

SoScale1Dragger::SoScale1Dragger (void )

default constructor, bestie ✨ it sets up the dragger nodekit catalog with all the interaction and feedback geometry. no cap.

nodekit structure (new entries versus the parent class are marked with an arrow prefix, so keep an eye out πŸ‘€):

CLASS SoScale1Dragger
-->"this"
      "callbackList"
      "topSeparator"
         "motionMatrix"
         "geomSeparator"
-->         "scalerSwitch"
-->            "scaler"
-->            "scalerActive"
-->         "feedbackSwitch"
-->            "feedback"
-->            "feedbackActive"

(if you're curious about the output formatting, see SoBaseKit::printDiagram().)

and here's the detailed tea on the catalog parts:

CLASS SoScale1Dragger
PVT   "this",  SoScale1Dragger  ---
      "callbackList",  SoNodeKitListPart [ SoCallback, SoEventCallback ]
PVT   "topSeparator",  SoSeparator  ---
PVT   "motionMatrix",  SoMatrixTransform  ---
PVT   "geomSeparator",  SoSeparator  ---
PVT   "scalerSwitch",  SoSwitch  ---
      "scaler",  SoSeparator  ---
      "scalerActive",  SoSeparator  ---
PVT   "feedbackSwitch",  SoSwitch  ---
      "feedback",  SoSeparator  ---
      "feedbackActive",  SoSeparator  ---

(and for the output formatting deets on this one, see SoBaseKit::printTable().)

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

protected destructor, she's shy πŸ™ˆ

(dragger classes are derived from SoBase, so they're reference counted and get automatically destroyed when their reference count hits 0. so like, don't worry about it, the garbage collector energy is built in.)


πŸ’– Member Function Documentation πŸ’–

SoType SoScale1Dragger::getClassTypeId (void ) [static]

this static method returns the SoType object that's associated with objects of this class. very demure, very mindful. πŸŽ€

SoType SoScale1Dragger::getTypeId (void ) const [virtual]

returns the type identification of an object derived from a class that inherits SoBase. this is what's used for runtime type checking and "downward" casting. iykyk. πŸ”₯

reimplemented from SoDragger.

const SoFieldData ** SoScale1Dragger::getFieldDataPtr (void ) [static], [protected]

this API member is considered internal to the library, since it's not likely to be of interest to the application programmer. (translation: not your business bestie, no offense πŸ’œ)

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

const SoFieldData * SoScale1Dragger::getFieldData (void ) const [protected], [virtual]

returns a pointer to the class-wide field data storage object for this instance. if there are no fields present, it returns NULL. simple as that. ✨

reimplemented from SoDragger.

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

returns the nodekit catalog which defines the layout of this class' kit. the blueprint, if you will. πŸ“

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

returns the nodekit catalog which defines the layout of this class' kit. (yes, again, but this one's the non-static bestie, okay 😭)

reimplemented from SoDragger.

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

returns the pointer to the pointer of the nodekit catalog for this class. pointer to a pointer. very meta. πŸ’€

void SoScale1Dragger::initClass (void ) [static]

initializes the type system for this dragger class. slay.

application programmers should usually not have to invoke this method β€” see the documentation of SoInteraction::init() instead. let the library handle it, queen. πŸ‘‘

SbBool SoScale1Dragger::setUpConnections (SbBool onoff, SbBool doitalways = FALSE) [protected], [virtual]

sets up all the internal connections for instances of this class. ✨

(this method will usually not be of interest to the application programmer β€” unless you wanna extend the library with new custom nodekits or dragger classes. if that's your vibe, go read the SoBaseKit class documentation. main character energy honestly.)

reimplemented from SoInteractionKit.

void SoScale1Dragger::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. πŸ™ˆ

void SoScale1Dragger::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.

void SoScale1Dragger::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.

void SoScale1Dragger::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.

void SoScale1Dragger::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.

void SoScale1Dragger::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 the dragger is selected (picked) by the user. 🫢

void SoScale1Dragger::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 the user drags the mouse after picking the dragger. πŸ–±οΈβœ¨

void SoScale1Dragger::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 the mouse button is released after picking and interacting with the dragger. that's a wrap. 🎬


🌸 Member Data Documentation 🌸

SoSFVec3f SoScale1Dragger::scaleFactor

continuously updated to contain the current vector of scaling along the X, Y and Z axes. πŸ”₯

for the SoScale1Dragger, only the X component is used β€” the Y and Z components will always be equal to 1 (i.e. no scaling). one-dimensional queen, staying in her lane. πŸ’…

SoFieldSensor* SoScale1Dragger::fieldSensor [protected]

this API member is considered internal to the library, as it is not likely to be of interest to the application programmer. πŸ™ˆ

SbLineProjector* SoScale1Dragger::lineProj [protected]

this API member is considered internal to the library, as it is not likely to be of interest to the application programmer.


🌈 Author 🌈

generated automatically by Doxygen for Coin from the source code. it wrote itself, honestly. not me being automated πŸ’€βœ¨


and that's the whole page, bestie!! this was Version 4.0.10 of the Coin docs, dated Thu Jun 25 2026 00:00:00 β€” so go forth and scale in exactly one dimension, you absolute icon. SoScale1Dragger(3) out. πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from