SoScale1Dragger(3)
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) constvoid addStartCallback (SoDraggerCB *func, void *data=NULL)void removeStartCallback (SoDraggerCB *func, void *data=NULL)void addMotionCallback (SoDraggerCB *func, void *data=NULL)void removeMotionCallback (SoDraggerCB *func, void *data=NULL)void addFinishCallback (SoDraggerCB *func, void *data=NULL)void removeFinishCallback (SoDraggerCB *func, void *data=NULL)void addValueChangedCallback (SoDraggerCB *func, void *data=NULL)void removeValueChangedCallback (SoDraggerCB *func, void *data=NULL)void setMinGesture (int pixels)int getMinGesture (void) constSbBool enableValueChangedCallbacks (SbBool newval)const SbMatrix & getMotionMatrix (void)void addOtherEventCallback (SoDraggerCB *func, void *data=NULL)void removeOtherEventCallback (SoDraggerCB *func, void *data=NULL)void registerChildDragger (SoDragger *child)void unregisterChildDragger (SoDragger *child)void registerChildDraggerMovingIndependently (SoDragger *child)void unregisterChildDraggerMovingIndependently (SoDragger *child)SbMatrix getLocalToWorldMatrix (void)SbMatrix getWorldToLocalMatrix (void)SbVec3f getLocalStartingPoint (void)SbVec3f getWorldStartingPoint (void)void getPartToLocalMatrix (const SbName &partname, SbMatrix &parttolocalmatrix, SbMatrix &localtopartmatrix)void transformMatrixLocalToWorld (const SbMatrix &frommatrix, SbMatrix &tomatrix)void transformMatrixWorldToLocal (const SbMatrix &frommatrix, SbMatrix &tomatrix)void transformMatrixToLocalSpace (const SbMatrix &frommatrix, SbMatrix &tomatrix, const SbName &fromspacepartname)virtual void setMotionMatrix (const SbMatrix &newmatrix)void valueChanged (void)const SbMatrix & getStartMotionMatrix (void)virtual void saveStartParameters (void)const SoPath * getPickPath (void) constconst SoEvent * getEvent (void) constSoPath * createPathToThis (void)const SoPath * getSurrogatePartPickedOwner (void) constconst SbName & getSurrogatePartPickedName (void) constconst SoPath * getSurrogatePartPickedPath (void) constvoid setStartingPoint (const SoPickedPoint *newpoint)void setStartingPoint (const SbVec3f &newpoint)β 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 ®)SoHandleEventAction * getHandleEventAction (void) constvoid setHandleEventAction (SoHandleEventAction *newAction)void setTempPathToThis (const SoPath *somethingclose)virtual void grabEventsSetup (void)virtual void grabEventsCleanup (void)void workFieldsIntoTransform (SbMatrix &mtx)void setFrontOnProjector (ProjectorFrontSetting newval)ProjectorFrontSetting getFrontOnProjector (void) const
π Public Member Functions inherited from SoInteractionKit
SoInteractionKit (void)virtual SbBool setPartAsPath (const SbName &partname, SoPath *path)virtual SbBool setPartAsDefault (const SbName &partname, SoNode *node, SbBool onlyifdefault=TRUE)virtual SbBool setPartAsDefault (const SbName &partname, const SbName &nodename, SbBool onlyifdefault=TRUE)SbBool isPathSurrogateInMySubgraph (const SoPath *path, SoPath *&pathToOwner, SbName &surrogatename, SoPath *&surrogatepath, SbBool fillargs=TRUE)SbBool isPathSurrogateInMySubgraph (const SoPath *path)virtual SbBool setPart (const SbName &partname, SoNode *from)
π Public Member Functions inherited from SoBaseKit
SoBaseKit (void)virtual SoNode * getPart (const SbName &partname, SbBool makeifneeded)SbString getPartString (const SoBase *part)virtual SoNodeKitPath * createPathToPart (const SbName &partname, SbBool makeifneeded, const SoPath *pathtoextend=NULL)SbBool set (const char *namevaluepairliststring)SbBool set (const char *partnamestring, const char *parameterstring)virtual void doAction (SoAction *action)virtual SoChildList * getChildren (void) constvoid printDiagram (void)void printSubDiagram (const SbName &rootname, int level)void printTable (void)virtual void addWriteReference (SoOutput *out, SbBool isfromfield=FALSE)SbBool forceChildDrivenWriteRefs (SoOutput *out)
β Public Member Functions inherited from SoNode
void setOverride (const SbBool state)SbBool isOverride (void) constvoid setNodeType (const NodeType type)NodeType getNodeType (void) constvirtual SoNode * copy (SbBool copyconnections=FALSE) constvirtual SbBool affectsState (void) constvirtual void GLRenderBelowPath (SoGLRenderAction *action)virtual void GLRenderInPath (SoGLRenderAction *action)virtual void GLRenderOffPath (SoGLRenderAction *action)virtual void pick (SoPickAction *action)virtual void audioRender (SoAudioRenderAction *action)virtual void startNotify (void)virtual void notify (SoNotList *l)SbUniqueId getNodeId (void) constvirtual void writeInstance (SoOutput *out)virtual SoFieldContainer * copyThroughConnection (void) const
π§ Public Member Functions inherited from SoFieldContainer
void setToDefaults (void)SbBool hasDefaultValues (void) constSbBool fieldsAreEqual (const SoFieldContainer *container) constvoid copyFieldValues (const SoFieldContainer *container, SbBool copyconnections=FALSE)SbBool set (const char *const fielddata)void get (SbString &fielddata)virtual int getFields (SoFieldList &l) constvirtual int getAllFields (SoFieldList &l) constvirtual SoField * getField (const SbName &name) constvirtual SoField * getEventIn (const SbName &name) constvirtual SoField * getEventOut (const SbName &name) constSbBool getFieldName (const SoField *const field, SbName &name) constSbBool enableNotify (const SbBool flag)SbBool isNotifyEnabled (void) constSbBool set (const char *fielddata, SoInput *input)void get (SbString &fielddata, SoOutput *out)virtual SbBool validateNewFieldValue (SoField *field, void *newval)SbBool getIsBuiltIn (void) constvirtual void getFieldsMemorySize (size_t &managed, size_t &unmanaged) constvoid setUserData (void *userdata) constvoid * getUserData (void) const
π Public Member Functions inherited from SoBase
void ref (void) constvoid unref (void) constvoid unrefNoDelete (void) constint32_t getRefCount (void) constvoid touch (void)SbBool isOfType (SoType type) constβ returnsTRUEif the type of this object is either of the same type or inherited from type. iykyk. π«virtual SbName getName (void) constvirtual void setName (const SbName &newname)void addAuditor (void *const auditor, const SoNotRec::Type type)void removeAuditor (void *const auditor, const SoNotRec::Type type)const SoAuditorList & getAuditors (void) constSbBool shouldWrite (void)void assertAlive (void) const
π₯ Static Public Member Functions π₯
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)β 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 theSoTypefor 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 intoland 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 theSoTypeobject 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)β registersorigβcopyin the copy dictionary.static SoFieldContainer * checkCopy (const SoFieldContainer *orig)β checks the copy dict fororig; yells (well, asserts) if it's not there.static SoFieldContainer * findCopy (const SoFieldContainer *orig, const SbBool copyconnections)β looks up the copy oforig, 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 theSoTypeobject associated with objects of this class.static void addName (SoBase *const base, const char *const name)β givesbasethe namename.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 callednamethat matchestype.static int getNamedBases (const SbName &name, SoBaseList &baselist, SoType type)β collects all the matching bases intobaselist, returns the count.static SbBool read (SoInput *input, SoBase *&base, SoType expectedtype)β reads a base out ofinput, expectingexpectedtype.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 ofinput.
π 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'svirtual, it's protected, it's doing its thing.virtual SbBool setUpConnections (SbBool onoff, SbBool doitalways=FALSE)β sets up (or tears down) the internal connections, withdoitalwaysdefaulting toFALSE.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 top.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 tochild.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 forpath.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 fromfromFC.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 fromin.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 forname.void connectSeparatorFields (SoSeparator *dest, SbBool onOff)β connects the separator fields todest.
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 forlistname.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 toout.
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 toout.void writeFooter (SoOutput *out) constβ writes the footer out toout.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 toindex.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 fornodetype.
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, orUSE_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_ENGINEandIS_GROUP.
Static Protected Attributes (inherited from SoNode)
static SbUniqueId nextUniqueId = 1β the next unique id, starting at1.static int nextActionMethodIndex = 0β the next action method index, starting at0.
β¨ 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
- 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