SoScale2UniformDragger(3)
okay bestie, sit down, hydrate, because you're about to read the SoScale2UniformDragger(3) page from the Coin manual. it's a whole trilogy and this is part 1, so don't go anywhere. we're doing this together. π
β¨ NAME β¨
SoScale2UniformDragger β the class that gives your end-user a whole mechanism for scaling things in two dimensions. two! dimensions! iconic. π
πΈ SYNOPSIS πΈ
#include <Inventor/draggers/SoScale2UniformDragger.h>
Inherits SoDragger.
π¦ Public Member Functions π¦
the homegrown ones, the ones that are hers:
virtual SoType getTypeId (void) const
virtual const SoNodekitCatalog * getNodekitCatalog (void) const
SoScale2UniformDragger (void)
that's it. that's the whole original menu. everything else is inherited, and bestie, there is a LOT of everything else. π«Ά
π Public Member Functions inherited from SoDragger π
she got all of this from her SoDragger parent and she did not have to lift a finger for it, we love an inheritance moment:
virtual void callback (SoCallbackAction *action)
virtual void GLRender (SoGLRenderAction *action)
virtual void getMatrix (SoGetMatrixAction *action)
virtual void rayPick (SoRayPickAction *action)
virtual void search (SoSearchAction *action)
virtual void write (SoWriteAction *action)
virtual void getPrimitiveCount (SoGetPrimitiveCountAction *action)
void setProjectorEpsilon (const float epsilon)
float getProjectorEpsilon (void) const
void addStartCallback (SoDraggerCB *func, void *data=NULL)
void removeStartCallback (SoDraggerCB *func, void *data=NULL)
void addMotionCallback (SoDraggerCB *func, void *data=NULL)
void removeMotionCallback (SoDraggerCB *func, void *data=NULL)
void addFinishCallback (SoDraggerCB *func, void *data=NULL)
void removeFinishCallback (SoDraggerCB *func, void *data=NULL)
void addValueChangedCallback (SoDraggerCB *func, void *data=NULL)
void removeValueChangedCallback (SoDraggerCB *func, void *data=NULL)
void setMinGesture (int pixels)
int getMinGesture (void) const
SbBool enableValueChangedCallbacks (SbBool newval)
const SbMatrix & getMotionMatrix (void)
void addOtherEventCallback (SoDraggerCB *func, void *data=NULL)
void removeOtherEventCallback (SoDraggerCB *func, void *data=NULL)
void registerChildDragger (SoDragger *child)
void unregisterChildDragger (SoDragger *child)
void registerChildDraggerMovingIndependently (SoDragger *child)
void unregisterChildDraggerMovingIndependently (SoDragger *child)
SbMatrix getLocalToWorldMatrix (void)
SbMatrix getWorldToLocalMatrix (void)
SbVec3f getLocalStartingPoint (void)
SbVec3f getWorldStartingPoint (void)
void getPartToLocalMatrix (const SbName &partname, SbMatrix
&parttolocalmatrix, SbMatrix &localtopartmatrix)
void transformMatrixLocalToWorld (const SbMatrix &frommatrix, SbMatrix
&tomatrix)
void transformMatrixWorldToLocal (const SbMatrix &frommatrix, SbMatrix
&tomatrix)
void transformMatrixToLocalSpace (const SbMatrix &frommatrix, SbMatrix
&tomatrix, const SbName &fromspacepartname)
virtual void setMotionMatrix (const SbMatrix &newmatrix)
void valueChanged (void)
const SbMatrix & getStartMotionMatrix (void)
virtual void saveStartParameters (void)
const SoPath * getPickPath (void) const
const SoEvent * getEvent (void) const
SoPath * createPathToThis (void)
const SoPath * getSurrogatePartPickedOwner (void) const
const SbName & getSurrogatePartPickedName (void) const
const SoPath * getSurrogatePartPickedPath (void) const
void setStartingPoint (const SoPickedPoint *newpoint)
void setStartingPoint (const SbVec3f &newpoint)
const SbViewVolume & getViewVolume (void)
void setViewVolume (const SbViewVolume &vol)
const SbViewportRegion & getViewportRegion (void)
void setViewportRegion (const SbViewportRegion ®)
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
look at that list. she's thriving. π
π§ Public Member Functions inherited from SoInteractionKit π§
more free stuff, no cap:
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 π
the kit keeps giving, honestly:
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 π
yes bestie, everything is a node, everything is connected, it's giving ancestry dot com:
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 π
fields. containers. the whole vibe:
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 π
the root of the whole family tree. the original main character:
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
heads up on one of these:isOfType()returnsTRUEif the type of this object is either of the same type or inherited from type. iykyk, it's the type-check bestie. π
β Static Public Member Functions β
the static girlies. no instance required, they just exist:
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)
and one tiny note, because the original literally says it: that initClass() up there sets up initialization for data common to all instances of this class, like submitting necessary information to the Coin type system. periodt. that's the whole job.
π 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 the end of the SYNOPSIS portion, bestie. there's more page coming β part 2 is right behind this one, don't you dare close the tab. π¦
β¨π Static Public Member Functions inherited from SoNode πβ¨
okay so these are the static public member functions inherited from SoNode β they're all iconic in their own lowkey way.
static uint32_t getCompatibilityTypes (const SoType &nodetype)β no description, bestie β the manpage left this one on read.static SoType getClassTypeId (void)β no description, just the signature serving looks.static SoNode * getByName (const SbName &name)β no description, but it's giving lookup energy.static int getByName (const SbName &name, SoNodeList &l)β no description, still valid.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 getting the whole class ready to slay.static void initClasses (void)β no description, just vibes.static SbUniqueId getNextNodeId (void)β no description, but it's handing out IDs like candy.static int getActionMethodIndex (const SoType type)β no description, still iconic.static void getBoundingBoxS (SoAction *action, SoNode *node)β no description, just a static action helper doing its thing.static void GLRenderS (SoAction *action, SoNode *node)β no description, GL things.static void callbackS (SoAction *action, SoNode *node)β no description.static void getMatrixS (SoAction *action, SoNode *node)β no description.static void handleEventS (SoAction *action, SoNode *node)β no description.static void pickS (SoAction *action, SoNode *node)β no description.static void rayPickS (SoAction *action, SoNode *node)β no description.static void searchS (SoAction *action, SoNode *node)β no description.static void writeS (SoAction *action, SoNode *node)β no description.static void audioRenderS (SoAction *action, SoNode *node)β no description.static void getPrimitiveCountS (SoAction *action, SoNode *node)β no description.
β¨π 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. Same energy as above β getting the class prepped.static SoType getClassTypeId (void)β This static method returns theSoTypeobject associated with objects of this class. It's literally the class's type ID, no cap.static void cleanupClass (void)β no description, just cleanup duty.static void initCopyDict (void)β no description.static void addCopy (const SoFieldContainer *orig, const SoFieldContainer *copy)β no description.static SoFieldContainer * checkCopy (const SoFieldContainer *orig)β no description.static SoFieldContainer * findCopy (const SoFieldContainer *orig, const SbBool copyconnections)β no description.static void copyDone (void)β no description.
β¨π¦ 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. Yep, same initClass ritual.static SoType getClassTypeId (void)β This static method returns theSoTypeobject associated with objects of this class. Type ID again, iconic.static void addName (SoBase *const base, const char *const name)β no description.static void removeName (SoBase *const base, const char *const name)β no description.static void incrementCurrentWriteCounter (void)β no description.static void decrementCurrentWriteCounter (void)β no description.static SoBase * getNamedBase (const SbName &name, SoType type)β no description.static int getNamedBases (const SbName &name, SoBaseList &baselist, SoType type)β no description.static SbBool read (SoInput *input, SoBase *&base, SoType expectedtype)β no description.static void setInstancePrefix (const SbString &c)β no description.static void setTraceRefs (SbBool trace)β no description.static SbBool getTraceRefs (void)β no description.static SbBool connectRoute (SoInput *input, const SbName &fromnodename, const SbName &fromfieldname, const SbName &tonodename, const SbName &tofieldname)β no description.static SbBool readRoute (SoInput *input)β no description.
β¨πΈ Public Attributes πΈβ¨
SoSFVec3f scaleFactorβ no description, just the scale factor field living its best life.
β¨π Public Attributes inherited from SoDragger πβ¨
SoSFBool isActiveβ no description.
β¨π Public Attributes inherited from SoInteractionKit πβ¨
SoSFEnum renderCachingβ no description.SoSFEnum boundingBoxCachingβ no description.SoSFEnum renderCullingβ no description.SoSFEnum pickCullingβ no description.
β¨π Protected Member Functions πβ¨
virtual const SoFieldData * getFieldData (void) constβ no description.virtual ~SoScale2UniformDragger (void)β no description.virtual SbBool setUpConnections (SbBool onoff, SbBool doitalways=FALSE)β no description.void dragStart (void)β no description.void drag (void)β no description.void dragFinish (void)β no description.
β¨π₯ Protected Member Functions inherited from SoDragger π₯β¨
SoDragger (void)β no description.virtual ~SoDragger (void)β no description.SbVec2f getNormalizedLocaterPosition (void)β no description.SbVec2s getLocaterPosition (void)β no description.SbVec2s getStartLocaterPosition (void) constβ no description.void setStartLocaterPosition (SbVec2s p)β no description.SbBool isAdequateConstraintMotion (void)β no description.virtual SbBool shouldGrabBasedOnSurrogate (const SoPath *pickpath, const SoPath *surrogatepath)β no description.void setCameraInfo (SoAction *action)β no description.virtual void handleEvent (SoHandleEventAction *ha)β no description.void transferMotion (SoDragger *child)β no description.void setIgnoreInBbox (SbBool newval)β no description.SbBool isIgnoreInBbox (void)β no description.virtual void getBoundingBox (SoGetBoundingBoxAction *action)β no description.void setActiveChildDragger (SoDragger *newchilddragger)β no description.SoDragger * getActiveChildDragger (void) constβ no description.virtual void setDefaultOnNonWritingFields (void)β no description.void updateDraggerCache (const SoPath *path)β no description.virtual const SoPickedPoint * getPickedPointForStart (SoHandleEventAction *action)β no description.
β¨π Protected Member Functions inherited from SoInteractionKit πβ¨
virtual ~SoInteractionKit ()β no description.virtual void copyContents (const SoFieldContainer *fromFC, SbBool copyConnections)β no description.virtual SbBool setPart (const int partNum, SoNode *node)β no description.virtual SbBool readInstance (SoInput *in, unsigned short flags)β no description.virtual SbBool setAnyPartAsDefault (const SbName &partname, SoNode *node, SbBool anypart=TRUE, SbBool onlyifdefault=TRUE)β no description.virtual SbBool setAnyPartAsDefault (const SbName &partname, const SbName &nodename, SbBool anypart=TRUE, SbBool onlyifdefault=TRUE)β no description.SbBool setAnySurrogatePath (const SbName &name, SoPath *path, SbBool leafcheck=FALSE, SbBool publiccheck=FALSE)β no description.void connectSeparatorFields (SoSeparator *dest, SbBool onOff)β no description.
β¨π§ Protected Member Functions inherited from SoBaseKit π§β¨
virtual ~SoBaseKit ()β no description.virtual SoNode * addToCopyDict (void) constβ no description.SoGroup * getContainerNode (const SbName &listname, SbBool makeifneeded=TRUE)β no description.virtual SoNode * getAnyPart (const SbName &partname, SbBool makeifneeded, SbBool leafcheck=FALSE, SbBool publiccheck=FALSE)β no description.virtual SoNodeKitPath * createPathToAnyPart (const SbName &partname, SbBool makeifneeded, SbBool leafcheck=FALSE, SbBool publiccheck=FALSE, const SoPath *pathtoextend=NULL)β no description.virtual SbBool setAnyPart (const SbName &partname, SoNode *from, SbBool anypart=TRUE)β no description.void createNodekitPartsList (void)β no description.void createFieldList (void)β no description.virtual void createDefaultParts (void)β no description.const SoNodekitParts * getNodekitPartsList (void) constβ no description.const SbList< SoSFNode * > & getCatalogInstances (void) constβ no description.void catalogError (void)β no description.void countMyFields (SoOutput *out)β no description.
β¨π Protected Member Functions inherited from SoNode πβ¨
SoNode (void)β no description.virtual ~SoNode ()β no description.
β¨π Protected Member Functions inherited from SoFieldContainer πβ¨
SoFieldContainer (void)β no description.virtual ~SoFieldContainer ()β no description.
β¨π Protected Member Functions inherited from SoBase πβ¨
SoBase (void)β no description.virtual ~SoBase ()β no description.virtual void destroy (void)β no description.SbBool hasMultipleWriteRefs (void) constβ no description.SbBool writeHeader (SoOutput *out, SbBool isgroup, SbBool isengine) constβ no description.void writeFooter (SoOutput *out) constβ no description.virtual const char * getFileFormatName (void) constβ no description.virtual SoNotRec createNotRec (void)β no description.
β¨β Static Protected Member Functions ββ¨
static const SoFieldData ** getFieldDataPtr (void)β no description.static const SoNodekitCatalog ** getClassNodekitCatalogPtr (void)β no description.static void startCB (void *f, SoDragger *d)β no description.static void motionCB (void *f, SoDragger *d)β no description.static void finishCB (void *f, SoDragger *d)β no description.static void fieldSensorCB (void *f, SoSensor *s)β no description.static void valueChangedCB (void *f, SoDragger *d)β no description.
β¨π Static Protected Member Functions inherited from SoDragger πβ¨
static const SoFieldData ** getFieldDataPtr (void)β no description.static const SoNodekitCatalog ** getClassNodekitCatalogPtr (void)β no description.static void childTransferMotionAndValueChangedCB (void *, SoDragger *)β no description.static void childValueChangedCB (void *, SoDragger *)β no description.static void childStartCB (void *, SoDragger *)β no description.static void childMotionCB (void *, SoDragger *)β no description.static void childFinishCB (void *, SoDragger *)β no description.static void childOtherEventCB (void *, SoDragger *)β no description.
β¨π¦ Static Protected Member Functions inherited from SoInteractionKit π¦β¨
static const SoFieldData ** getFieldDataPtr (void)β no description.static const SoNodekitCatalog ** getClassNodekitCatalogPtr (void)β no description.static void readDefaultParts (const char *fileName, const char defaultBuffer[], int defBufSize)β no description.static void fieldSensorCB (void *, SoSensor *)β no description.
β¨π Static Protected Member Functions inherited from SoBaseKit πβ¨
static const SoFieldData ** getFieldDataPtr (void)β no description.static const SoNodekitCatalog ** getClassNodekitCatalogPtr (void)β no description.
β¨π Static Protected Member Functions inherited from SoNode πβ¨
static const SoFieldData ** getFieldDataPtr (void)β no description.static void setNextActionMethodIndex (int index)β no description.static int getNextActionMethodIndex (void)β no description.static void incNextActionMethodIndex (void)β no description.static void setCompatibilityTypes (const SoType &nodetype, const uint32_t bitmask)β no description.
β¨π₯ Static Protected Member Functions inherited from SoBase π₯β¨
static uint32_t getCurrentWriteCounter (void)β no description.static void staticDataLock (void)β no description.static void staticDataUnlock (void)β no description.
β¨π Protected Attributes π β¨
SoSFNode feedbackβ no description.SoSFNode feedbackActiveβ no description.SoSFNode feedbackSwitchβ no description.SoSFNode scalerβ no description.SoSFNode scalerActiveβ no description.SoSFNode scalerSwitchβ no description.SoFieldSensor * fieldSensorβ no description.SbLineProjector * lineProjβ no description.
β¨π Protected Attributes inherited from SoDragger πβ¨
SoSFNode motionMatrixβ no description.
β¨π§ Protected Attributes inherited from SoInteractionKit π§β¨
SoSFNode geomSeparatorβ no description.SoSFNode topSeparatorβ no description.SoFieldSensor * fieldSensorβ no description.SoSeparator * oldTopSepβ no description.
β¨π Protected Attributes inherited from SoBaseKit πβ¨
SoSFNode callbackListβ no description.SoChildList * childrenβ no description.SbBool connectionsSetUpβ no description.
β¨π Protected Attributes inherited from SoNode πβ¨
SbUniqueId uniqueIdβ no description.
β¨π Protected Attributes inherited from SoFieldContainer πβ¨
SbBool isBuiltInβ no description.
β¨β Additional Inherited Members ββ¨
π Public Types inherited from SoDragger
enum ProjectorFrontSetting { FRONT, BACK, USE_PICK }β no description, just the enum.
π Public Types inherited from SoInteractionKit
enum CacheEnabled { OFF, ON, AUTO }β no description.
π 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 }
No description, just the full enum doing its thing.
π Protected Types inherited from SoBase
enum BaseFlags { IS_ENGINE = 0x01, IS_GROUP = 0x02 }β no description.
π Static Protected Attributes inherited from SoNode
static SbUniqueId nextUniqueId = 1β no description.static int nextActionMethodIndex = 0β no description.
β¨ Detailed Description β¨
Okay bestie, so the SoScale2UniformDragger class? It's literally the mechanism that lets your end-user scale stuff in two dimensions. Two. That's it. That's the whole job. π
Here's how the dragger looks with its default geometry in the inactive state:
Use this dragger to allow the end-user of your application to scale along the X-axis and the Y-axis. (Pro tip from the source, not me: use a transformation node in front of the dragger to position it and re-orient it so it scales in any plane you want. Versatile queen. π)
Now the tea β β scaling with this dragger can only be done in a uniform manner, i.e. the X component of the SoScale2UniformDragger::scaleFactor will always equal the Y component. They're bonded. Inseparable. Matching outfits, no exceptions. π«Ά
And for non-uniform scaling operations in 2 dimensions? Not this one, babe β go use the SoScale2Dragger instead.
π¦ See also
SoScaleUniformDragger
π οΈ Constructor & Destructor Documentation π οΈ
π
SoScale2UniformDragger::SoScale2UniformDragger (void )
Default constructor, and she sets up the dragger nodekit catalog with all the interaction and feedback geometry. β¨
Nodekit structure (new entries versus parent class marked with arrow prefix):
CLASS SoScale2UniformDragger
-->"this"
"callbackList"
"topSeparator"
"motionMatrix"
"geomSeparator"
--> "scalerSwitch"
--> "scaler"
--> "scalerActive"
--> "feedbackSwitch"
--> "feedback"
--> "feedbackActive"
(See SoBaseKit::printDiagram() for information about the output formatting.)
Detailed information on catalog parts:
CLASS SoScale2UniformDragger
PVT "this", SoScale2UniformDragger ---
"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 ---
(See SoBaseKit::printTable() for information about the output formatting.)
π SoScale2UniformDragger::~SoScale2UniformDragger (void ) β [protected], [virtual]
Protected destructor. She's shy like that. π
(Dragger classes are derived from SoBase, so they are reference counted and automatically destroyed when their reference count goes to 0.) So basically, when nobody's holding on anymore, she dips. π
πΈ Member Function Documentation πΈ
β SoType SoScale2UniformDragger::getClassTypeId (void ) β [static]
This static method returns the SoType object associated with objects of this class. Type-ID reveal, iconic. π
β SoType SoScale2UniformDragger::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 SoDragger.
π const SoFieldData ** SoScale2UniformDragger::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. (Read: not your business bestie, but we still love her. π )
Returns the SoFieldData class which holds information about fields in this node.
π const SoFieldData * SoScale2UniformDragger::getFieldData (void ) const β [protected], [virtual]
Returns a pointer to the class-wide field data storage object for this instance. And if no fields are present? Returns NULL. Empty-handed, no cap. π
Reimplemented from SoDragger.
π const SoNodekitCatalog * SoScale2UniformDragger::getClassNodekitCatalog (void ) β [static]
Returns the nodekit catalog which defines the layout of this class' kit. The blueprint, the floor plan, the whole vibe. π
π const SoNodekitCatalog * SoScale2UniformDragger::getNodekitCatalog (void ) const β [virtual]
Returns the nodekit catalog which defines the layout of this class' kit. Same energy, per-instance edition. β¨
Reimplemented from SoDragger.
π const SoNodekitCatalog ** SoScale2UniformDragger::getClassNodekitCatalogPtr (void ) β [static], [protected]
Returns the pointer to the pointer of the nodekit catalog for this class. Yes, a pointer to a pointer. Double the pointer, double the fun. π«Ά
π void SoScale2UniformDragger::initClass (void ) β [static]
Initializes type system for this dragger class. π¦
Application programmers should usually not have to invoke this method β see documentation of SoInteraction::init(). So like, hands off unless you know what you're doing, bestie.
π SbBool SoScale2UniformDragger::setUpConnections (SbBool onoff, SbBool doitalways = FALSE) β [protected], [virtual]
Sets up all internal connections for instances of this class. Wiring it all together, lowkey the glue of the operation. π§
(This method will usually not be of interest to the application programmer, unless you want to extend the library with new custom nodekits or dragger classes. If so, see the SoBaseKit class documentation.)
Reimplemented from SoInteractionKit.
π void SoScale2UniformDragger::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 SoScale2UniformDragger::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 SoScale2UniformDragger::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 SoScale2UniformDragger::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 SoScale2UniformDragger::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 SoScale2UniformDragger::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. Main character moment, she's been chosen. β¨
π«§ void SoScale2UniformDragger::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. Dragging = the whole point, slay. π
π«§ void SoScale2UniformDragger::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. And scene. π¬
π Member Data Documentation π
π SoSFVec3f SoScale2UniformDragger::scaleFactor
Continuously updated to contain the current vector of scaling along the X, Y and Z axes. Always in motion, always updating, she never rests. π₯
For the SoScale2UniformDragger, only the X and Y components are used β the Z component will always be equal to 1 (i.e. no scaling). Z is literally just there for moral support. π
π SoFieldSensor* SoScale2UniformDragger::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* SoScale2UniformDragger::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.
And that's a wrap on SoScale2UniformDragger(3) bestie!! πβ¨ This was Coin version 4.0.10, dated Thu Jun 25 2026, and honestly? Iconic behavior from start to finish. Go scale something (uniformly, in 2D, obviously). Byeee ππ¦
π¦ 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