SoTabPlaneDragger(3)
okay so bestie, you're looking at SoTabPlaneDragger(3) from the Library Functions Manual, and honestly? this one is a whole main character ๐
she's a dragger that lets you translate and scale stuff inside a plane, which is lowkey iconic. this is part 1 of 3 so buckle up, we're not even at the plot twist yet ๐ฆ
๐ NAME ๐
The SoTabPlaneDragger class is a dragger you can translate and scale within a plane. periodt. no cap, that's literally her whole job ๐
โจ SYNOPSIS โจ
#include <Inventor/draggers/SoTabPlaneDragger.h>
she inherits from SoDragger, which means she got the whole family tree behind her ๐
๐ Public Member Functions ๐
virtual SoType getTypeId (void) constvirtual const SoNodekitCatalog * getNodekitCatalog (void) constSoTabPlaneDragger (void)void adjustScaleTabSize (void)
these four? they're hers. hers specifically. the rest below are the inherited flexes, and there are a LOT of them, so grab a snack ๐
๐ฆ Public Member Functions inherited from SoDragger ๐ฆ
the way she gets all of these for free... obsessed.
virtual void callback (SoCallbackAction *action)virtual void getMatrix (SoGetMatrixAction *action)virtual void rayPick (SoRayPickAction *action)virtual void search (SoSearchAction *action)virtual void write (SoWriteAction *action)virtual void getPrimitiveCount (SoGetPrimitiveCountAction *action)void setProjectorEpsilon (const float epsilon)float getProjectorEpsilon (void) constvoid addStartCallback (SoDraggerCB *func, void *data=NULL)void removeStartCallback (SoDraggerCB *func, void *data=NULL)void addMotionCallback (SoDraggerCB *func, void *data=NULL)void removeMotionCallback (SoDraggerCB *func, void *data=NULL)void addFinishCallback (SoDraggerCB *func, void *data=NULL)void removeFinishCallback (SoDraggerCB *func, void *data=NULL)void addValueChangedCallback (SoDraggerCB *func, void *data=NULL)void removeValueChangedCallback (SoDraggerCB *func, void *data=NULL)void setMinGesture (int pixels)int getMinGesture (void) constSbBool enableValueChangedCallbacks (SbBool newval)const SbMatrix & getMotionMatrix (void)void addOtherEventCallback (SoDraggerCB *func, void *data=NULL)void removeOtherEventCallback (SoDraggerCB *func, void *data=NULL)void registerChildDragger (SoDragger *child)void unregisterChildDragger (SoDragger *child)void registerChildDraggerMovingIndependently (SoDragger *child)void unregisterChildDraggerMovingIndependently (SoDragger *child)SbMatrix getLocalToWorldMatrix (void)SbMatrix getWorldToLocalMatrix (void)SbVec3f getLocalStartingPoint (void)SbVec3f getWorldStartingPoint (void)void getPartToLocalMatrix (const SbName &partname, SbMatrix &parttolocalmatrix, SbMatrix &localtopartmatrix)void transformMatrixLocalToWorld (const SbMatrix &frommatrix, SbMatrix &tomatrix)void transformMatrixWorldToLocal (const SbMatrix &frommatrix, SbMatrix &tomatrix)void transformMatrixToLocalSpace (const SbMatrix &frommatrix, SbMatrix &tomatrix, const SbName &fromspacepartname)virtual void setMotionMatrix (const SbMatrix &newmatrix)void valueChanged (void)const SbMatrix & getStartMotionMatrix (void)virtual void saveStartParameters (void)const SoPath * getPickPath (void) constconst SoEvent * getEvent (void) constSoPath * createPathToThis (void)const SoPath * getSurrogatePartPickedOwner (void) constconst SbName & getSurrogatePartPickedName (void) constconst SoPath * getSurrogatePartPickedPath (void) constvoid setStartingPoint (const SoPickedPoint *newpoint)void setStartingPoint (const SbVec3f &newpoint)const SbViewVolume & getViewVolume (void)void setViewVolume (const SbViewVolume &vol)const SbViewportRegion & getViewportRegion (void)void setViewportRegion (const SbViewportRegion ®)SoHandleEventAction * getHandleEventAction (void) constvoid setHandleEventAction (SoHandleEventAction *newAction)void setTempPathToThis (const SoPath *somethingclose)virtual void grabEventsSetup (void)virtual void grabEventsCleanup (void)void workFieldsIntoTransform (SbMatrix &mtx)void setFrontOnProjector (ProjectorFrontSetting newval)ProjectorFrontSetting getFrontOnProjector (void) const
okay that was a lot. hydrate. ๐ง
๐ธ 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)uint32_t 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) constvirtual SbName getName (void) constvirtual void setName (const SbName &newname)void addAuditor (void *const auditor, const SoNotRec::Type type)void removeAuditor (void *const auditor, const SoNotRec::Type type)const SoAuditorList & getAuditors (void) constSbBool shouldWrite (void)void assertAlive (void) const
๐ Static Public Member Functions ๐
the static girlies. they don't need an instance, they just are ๐
static SoType getClassTypeId (void)static const SoNodekitCatalog * getClassNodekitCatalog (void)static void initClass (void)
๐ฅ Static Public Member Functions inherited from SoDragger ๐ฅ
static SoType getClassTypeId (void)static const SoNodekitCatalog * getClassNodekitCatalog (void)static void setMinScale (float newminscale)static float getMinScale (void)static void workValuesIntoTransform (SbMatrix &mtx, const SbVec3f *translationptr, const SbRotation *rotationptr, const SbVec3f *scalefactorptr, const SbRotation *scaleorientationptr, const SbVec3f *centerptr)static void getTransformFast (SbMatrix &mtx, SbVec3f &translation, SbRotation &rotation, SbVec3f &scalefactor, SbRotation &scaleorientation, const SbVec3f ¢er)static void getTransformFast (SbMatrix &mtx, SbVec3f &translation, SbRotation &rotation, SbVec3f &scalefactor, SbRotation &scaleorientation)static SbMatrix appendTranslation (const SbMatrix &mtx, const SbVec3f &translation, const SbMatrix *conversion=NULL)static SbMatrix appendScale (const SbMatrix &mtx, const SbVec3f &scale, const SbVec3f &scalecenter, const SbMatrix *conversion=NULL)static SbMatrix appendRotation (const SbMatrix &mtx, const SbRotation &rot, const SbVec3f &rotcenter, const SbMatrix *conversion=NULL)static void initClass (void)static void initClasses (void)
โจ Static Public Member Functions inherited from SoInteractionKit โจ
static SoType getClassTypeId (void)static const SoNodekitCatalog * getClassNodekitCatalog (void)static void initClass (void)static void setSwitchValue (SoNode *node, const int newVal)
๐ Static Public Member Functions inherited from SoBaseKit ๐
static SoType getClassTypeId (void)static void initClass (void)static const SoNodekitCatalog * getClassNodekitCatalog (void)static SbBool isSearchingChildren (void)static void setSearchingChildren (const SbBool newval)
๐ Static Public Member Functions inherited from SoNode ๐
static uint32_t getCompatibilityTypes (const SoType &nodetype)static SoType getClassTypeId (void)static SoNode * getByName (const SbName &name)static int getByName (const SbName &name, SoNodeList &l)static void initClass (void)static void initClasses (void)static uint32_t getNextNodeId (void)static int getActionMethodIndex (const SoType type)static void getBoundingBoxS (SoAction *action, SoNode *node)static void GLRenderS (SoAction *action, SoNode *node)static void callbackS (SoAction *action, SoNode *node)static void getMatrixS (SoAction *action, SoNode *node)static void handleEventS (SoAction *action, SoNode *node)static void pickS (SoAction *action, SoNode *node)static void rayPickS (SoAction *action, SoNode *node)static void searchS (SoAction *action, SoNode *node)static void writeS (SoAction *action, SoNode *node)static void audioRenderS (SoAction *action, SoNode *node)static void getPrimitiveCountS (SoAction *action, SoNode *node)
โจ Static Public Member Functions inherited from SoFieldContainer โจ
bestie these are the static ones your SoFieldContainer ancestors are handing down, they're giving legacy, they're giving foundation ๐
static void initClass (void)โ the lil class-initializer ritual, run it and the class is officially awake โจstatic SoType getClassTypeId (void)โ hands you theSoTypeid for this class ๐static void cleanupClass (void)โ the tidy-up-on-the-way-out one ๐งนstatic void initCopyDict (void)โ kicks off the copy dictionary ๐ฆstatic void addCopy (const SoFieldContainer *orig, const SoFieldContainer *copy)โ registers a copy against its original ๐static SoFieldContainer * checkCopy (const SoFieldContainer *orig)โ peeks for the copy that belongs to orig ๐static SoFieldContainer * findCopy (const SoFieldContainer *orig, const SbBool copyconnections)โ the full lookup, connections and all ๐static void copyDone (void)โ copy session over, we're done here ๐
โจ Static Public Member Functions inherited from SoBase โจ
more statics, this time from SoBase, the grandparent of basically everything fr fr
static void initClass (void)โ same energy, different class ๐ซถstatic SoType getClassTypeId (void)โ theSoTypeid, once again ๐ซstatic void addName (SoBase *const base, const char *const name)โ gives a base a name ๐ธstatic void removeName (SoBase *const base, const char *const name)โ takes that name right back ๐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 you the base with that name and type ๐ฏstatic int getNamedBases (const SbName &name, SoBaseList &baselist, SoType type)โ the plural version, fills up aSoBaseList๐งบstatic SbBool read (SoInput *input, SoBase *&base, SoType expectedtype)โ reads a base in fromSoInput๐static void setInstancePrefix (const SbString &c)โ sets the instance prefix string โ๏ธstatic void setTraceRefs (SbBool trace)โ turns reference tracing on or off ๐ฆstatic SbBool getTraceRefs (void)โ asks whether reference tracing is on ๐คstatic SbBool connectRoute (SoInput *input, const SbName &fromnodename, const SbName &fromfieldname, const SbName &tonodename, const SbName &tofieldname)โ wires a route from one node+field to another ๐static SbBool readRoute (SoInput *input)โ reads a route in fromSoInput๐ฃ๏ธ
๐ซ Public Attributes ๐ซ
the actual juicy fields you can poke at:
SoSFVec3f translationโ the translation, a wholeSoSFVec3fof it ๐SoSFVec3f scaleFactorโ the scale factor, also anSoSFVec3f๐
๐ธ Public Attributes inherited from SoDragger ๐ธ
SoSFBool isActiveโ is this dragger active or not, classic yes/no energy ๐
๐ 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 ๐ฆ
the behind-the-scenes besties, only the family gets to call these:
virtual const SoFieldData * getFieldData (void) constโ hands back theSoFieldDataโจvirtual ~SoTabPlaneDragger (void)โ the destructor, say bye ๐virtual void GLRender (SoGLRenderAction *action)โ the GL render hook, this is where it actually gets drawn ๐จvirtual SbBool setUpConnections (SbBool onoff, SbBool doitalways=FALSE)โ sets the connections up (or tears them down), with adoitalwaysflag defaulting toFALSE๐virtual void setDefaultOnNonWritingFields (void)โ sets defaults on the non-writing fields ๐void reallyAdjustScaleTabSize (SoGLRenderAction *action)โ yes, really adjusts the scale tab size ๐ญ the name is not kiddingvoid getXYScreenLengths (SbVec2f &lengths, const SbMatrix &localtoscreen, const SbVec2s &winsize)โ works out the X/Y screen lengths from the local-to-screen matrix and window size ๐void dragStart (void)โ the drag begins ๐void drag (void)โ mid-drag, we're moving ๐ผvoid dragFinish (void)โ drag over, we did it ๐
๐ Protected Member Functions inherited from SoDragger ๐
SoDragger (void)โ the constructor ๐ซถvirtual ~SoDragger (void)โ the destructor ๐SbVec2f getNormalizedLocaterPosition (void)โ the normalized locater position ๐งญSbVec2s getLocaterPosition (void)โ the raw locater position ๐SbVec2s getStartLocaterPosition (void) constโ where the locater was when we started ๐void setStartLocaterPosition (SbVec2s p)โ set that start position, using p โ๏ธSbBool isAdequateConstraintMotion (void)โ is this constraint motion adequate, y/n โvirtual SbBool shouldGrabBasedOnSurrogate (const SoPath *pickpath, const SoPath *surrogatepath)โ decides whether to grab based on the surrogate ๐ฃvoid setCameraInfo (SoAction *action)โ stashes the camera info from the action ๐ทvirtual void handleEvent (SoHandleEventAction *ha)โ the event handler, this is where input lands ๐ชvoid transferMotion (SoDragger *child)โ passes the motion along to the child dragger ๐void setIgnoreInBbox (SbBool newval)โ set whether to ignore this in the bounding box ๐SbBool isIgnoreInBbox (void)โ are we ignoring it in the bbox or not ๐คจvirtual void getBoundingBox (SoGetBoundingBoxAction *action)โ the bounding box hook ๐ฆvoid setActiveChildDragger (SoDragger *newchilddragger)โ set the active child dragger ๐ถSoDragger * getActiveChildDragger (void) constโ get the active child dragger ๐void updateDraggerCache (const SoPath *path)โ refreshes the dragger cache ๐๏ธ
โญ Protected Member Functions inherited from SoInteractionKit โญ
(noting that a couple of these are written without the void, and we're keeping them exactly as they came ๐
)
virtual ~SoInteractionKit ()โ destructor ๐virtual void copyContents (const SoFieldContainer *fromFC, SbBool copyConnections)โ copies the contents over, connections optional ๐งณvirtual SbBool setPart (const int partNum, SoNode *node)โ sets a part by number ๐งฉvirtual SbBool readInstance (SoInput *in, unsigned short flags)โ reads an instance in ๐virtual SbBool setAnyPartAsDefault (const SbName &partname, SoNode *node, SbBool anypart=TRUE, SbBool onlyifdefault=TRUE)โ sets any part as the default,anypart=TRUEandonlyifdefault=TRUEby default ๐ฏvirtual SbBool setAnyPartAsDefault (const SbName &partname, const SbName &nodename, SbBool anypart=TRUE, SbBool onlyifdefault=TRUE)โ same deal but by node name ๐ท๏ธSbBool setAnySurrogatePath (const SbName &name, SoPath *path, SbBool leafcheck=FALSE, SbBool publiccheck=FALSE)โ sets a surrogate path,leafcheck=FALSE,publiccheck=FALSE๐ฟvoid connectSeparatorFields (SoSeparator *dest, SbBool onOff)โ connects the separator fields on the destination ๐
๐ Protected Member Functions inherited from SoBaseKit ๐
virtual ~SoBaseKit ()โ destructor ๐virtual SoNode * addToCopyDict (void) constโ adds itself to the copy dict ๐SoGroup * getContainerNode (const SbName &listname, SbBool makeifneeded=TRUE)โ gets the container node for listname,makeifneeded=TRUE๐ฆvirtual SoNode * getAnyPart (const SbName &partname, SbBool makeifneeded, SbBool leafcheck=FALSE, SbBool publiccheck=FALSE)โ gets any part, withleafcheck=FALSEandpubliccheck=FALSE๐งฉvirtual SoNodeKitPath * createPathToAnyPart (const SbName &partname, SbBool makeifneeded, SbBool leafcheck=FALSE, SbBool publiccheck=FALSE, const SoPath *pathtoextend=NULL)โ builds a path to any part,pathtoextend=NULLby default ๐ค๏ธvirtual SbBool setAnyPart (const SbName &partname, SoNode *from, SbBool anypart=TRUE)โ sets any part,anypart=TRUE๐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โ hands back the nodekit parts list ๐๏ธconst SbList< SoSFNode * > & getCatalogInstances (void) constโ the catalog instances list ๐void catalogError (void)โ a catalog error, oh no ๐ญvoid countMyFields (SoOutput *out)โ counts the fields, writes toSoOutput๐ข
๐ง 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)โ the destroy call ๐SbBool hasMultipleWriteRefs (void) constโ does it have multiple write refs ๐ฏSbBool writeHeader (SoOutput *out, SbBool isgroup, SbBool isengine) constโ writes the header out โ๏ธvoid writeFooter (SoOutput *out) constโ writes the footer out ๐ฆถvirtual const char * getFileFormatName (void) constโ the file format name ๐
๐ Static Protected Member Functions ๐
static const SoFieldData ** getFieldDataPtr (void)โ pointer to the field data pointer, yes it's a double pointer, slay ๐ฏstatic const SoNodekitCatalog ** getClassNodekitCatalogPtr (void)โ pointer to the class nodekit catalog pointer ๐๏ธ
๐ Static Protected Member Functions inherited from SoDragger ๐
static const SoFieldData ** getFieldDataPtr (void)โ the field data pointer again โจstatic const SoNodekitCatalog ** getClassNodekitCatalogPtr (void)โ the nodekit catalog pointer again ๐static void childTransferMotionAndValueChangedCB (void *, SoDragger *)โ the child motion-transfer + value-changed callback ๐static void childValueChangedCB (void *, SoDragger *)โ child value-changed callback ๐static void childStartCB (void *, SoDragger *)โ child start callback ๐static void childMotionCB (void *, SoDragger *)โ child motion callback ๐ผstatic void childFinishCB (void *, SoDragger *)โ child finish callback ๐static void childOtherEventCB (void *, SoDragger *)โ the catch-all child "other event" callback ๐ช
๐ Static Protected Member Functions inherited from SoInteractionKit ๐
static const SoFieldData ** getFieldDataPtr (void)โ the pointer to field data, encore ๐static const SoNodekitCatalog ** getClassNodekitCatalogPtr (void)โ the nodekit catalog pointer, encore ๐๏ธstatic void readDefaultParts (const char *fileName, const char defaultBuffer[], int defBufSize)โ reads the default parts from a file, given the buffer and its size ๐ฅstatic void fieldSensorCB (void *, SoSensor *)โ the field sensor callback ๐ฐ๏ธ
๐ง Static Protected Member Functions inherited from SoBaseKit ๐ง
static const SoFieldData ** getFieldDataPtr (void)โ yes, the field data pointer, again ๐ซstatic const SoNodekitCatalog ** getClassNodekitCatalogPtr (void)โ and the nodekit catalog pointer, again ๐
๐ธ Static Protected Member Functions inherited from SoNode ๐ธ
static const SoFieldData ** getFieldDataPtr (void)โ the field data pointer, never not here โจstatic void setNextActionMethodIndex (int index)โ sets the next action method index ๐ขstatic int getNextActionMethodIndex (void)โ gets the next action method index ๐static void incNextActionMethodIndex (void)โ increments the next action method index โฌ๏ธstatic void setCompatibilityTypes (const SoType &nodetype, const uint32_t bitmask)โ sets compatibility types for a node type with a bitmask ๐๏ธ
๐ซถ Static Protected Member Functions inherited from SoBase ๐ซถ
static uint32_t getCurrentWriteCounter (void)โ the current write counter ๐ขstatic void staticDataLock (void)โ lock the static data ๐static void staticDataUnlock (void)โ unlock the static data ๐
๐ Protected Attributes ๐
the protected fields, the private-ish family members:
SoSFNode cornerScaleCoordsโ corner scale coords ๐SoSFNode cornerScaleTab0โ corner scale tab 0๏ธโฃSoSFNode cornerScaleTab1โ corner scale tab 1๏ธโฃSoSFNode cornerScaleTab2โ corner scale tab 2๏ธโฃSoSFNode cornerScaleTab3โ corner scale tab 3๏ธโฃSoSFNode edgeScaleCoordsโ edge scale coords ๐SoSFNode edgeScaleTab0โ edge scale tab 0๏ธโฃSoSFNode edgeScaleTab1โ edge scale tab 1๏ธโฃSoSFNode edgeScaleTab2โ edge scale tab 2๏ธโฃSoSFNode edgeScaleTab3โ edge scale tab 3๏ธโฃSoSFNode planeSwitchโ the plane switch ๐๏ธSoSFNode scaleTabHintsโ scale tab hints ๐กSoSFNode scaleTabMaterialโ the scale tab material ๐จSoSFNode scaleTabMaterialBindingโ the scale tab material binding ๐SoSFNode scaleTabNormalโ the scale tab normal ๐SoSFNode scaleTabNormalBindingโ the scale tab normal binding ๐SoSFNode scaleTabsโ the scale tabs themselves ๐SoSFNode translatorโ the translator ๐
๐
Protected Attributes inherited from SoDragger ๐
SoSFNode motionMatrixโ the motion matrix ๐งฎ
๐ฆ Protected Attributes inherited from SoInteractionKit ๐ฆ
SoSFNode geomSeparatorโ the geometry separator โ๏ธSoSFNode topSeparatorโ the top separator ๐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 ๐SoChildList * childrenโ pointer to the children ๐ถSbBool connectionsSetUpโ whether the connections are set up โ
โญ Protected Attributes inherited from SoNode โญ
uint32_t uniqueIdโ the unique id, one per node ๐
๐ Protected Attributes inherited from SoFieldContainer ๐
SbBool isBuiltInโ is it built in, y/n ๐
๐ Additional Inherited Members ๐
๐ซ Public Types inherited from SoDragger
enum ProjectorFrontSetting { FRONT, BACK, USE_PICK }โ the projector front setting: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โ and here's the whole lineup, every flag and its exact value, no cap:
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
๐ Protected Types inherited from SoBase
enum BaseFlags { IS_ENGINE = 0x01, IS_GROUP = 0x02 }โ the base flags:IS_ENGINE = 0x01,IS_GROUP = 0x02๐ฉ
๐ Static Protected Attributes inherited from SoNode
static uint32_t nextUniqueId = 1โ starts at1๐static int nextActionMethodIndex = 0โ starts at0๐ข
๐ Detailed Description ๐
The SoTabPlaneDragger class is a dragger you can translate and scale within a plane. ๐ผโจ
Here's how the dragger looks with its default geometry in the inactive state:
(picture it, bestie โ the default geometry, just vibing, inactive, not yet being dragged) ๐ผ๏ธ
For translation, click anywhere inside the dragger's plane and move it about in 2D. ๐ฑ๏ธ
For non-uniform scaling operations, click and drag any of the 4 side tabs. For uniform scaling, click and drag any of the 4 corner tabs. ๐
๐ See also ๐
SoTabBoxDraggerโ go read that one next bestie, it's giving cousin energy ๐
๐จ Constructor & Destructor Documentation ๐
โจ SoTabPlaneDragger::SoTabPlaneDragger (void )
Okay bestie, this is the default constructor โ it sets up the dragger nodekit catalog with all the interaction and feedback geometry. It's giving โจ*foundation*โจ energy.
Node kit structure (new entries versus parent class marked with arrow prefix, iykyk ๐):
CLASS SoTabPlaneDragger
-->"this"
"callbackList"
"topSeparator"
"motionMatrix"
"geomSeparator"
--> "planeSwitch"
--> "translator"
--> "scaleTabs"
--> "scaleTabMaterial"
--> "scaleTabHints"
--> "scaleTabMaterialBinding"
--> "scaleTabNormalBinding"
--> "scaleTabNormal"
--> "edgeScaleCoords"
--> "edgeScaleTab0"
--> "edgeScaleTab1"
--> "edgeScaleTab2"
--> "edgeScaleTab3"
--> "cornerScaleCoords"
--> "cornerScaleTab0"
--> "cornerScaleTab1"
--> "cornerScaleTab2"
--> "cornerScaleTab3"
(See SoBaseKit::printDiagram() for information about the output formatting โ that's the one that renders this lil tree for you.)
Detailed information on catalog parts:
CLASS SoTabPlaneDragger
PVT "this", SoTabPlaneDragger ---
"callbackList", SoNodeKitListPart [ SoCallback, SoEventCallback ]
PVT "topSeparator", SoSeparator ---
PVT "motionMatrix", SoMatrixTransform ---
PVT "geomSeparator", SoSeparator ---
PVT "planeSwitch", SoSwitch ---
"translator", SoSeparator ---
PVT "scaleTabs", SoSeparator ---
"scaleTabMaterial", SoMaterial ---
"scaleTabHints", SoShapeHints ---
PVT "scaleTabMaterialBinding", SoMaterialBinding ---
PVT "scaleTabNormalBinding", SoNormalBinding ---
PVT "scaleTabNormal", SoNormal ---
PVT "edgeScaleCoords", SoCoordinate3 ---
PVT "edgeScaleTab0", SoIndexedFaceSet ---
PVT "edgeScaleTab1", SoIndexedFaceSet ---
PVT "edgeScaleTab2", SoIndexedFaceSet ---
PVT "edgeScaleTab3", SoIndexedFaceSet ---
PVT "cornerScaleCoords", SoCoordinate3 ---
PVT "cornerScaleTab0", SoIndexedFaceSet ---
PVT "cornerScaleTab1", SoIndexedFaceSet ---
PVT "cornerScaleTab2", SoIndexedFaceSet ---
PVT "cornerScaleTab3", SoIndexedFaceSet ---
(See SoBaseKit::printTable() for information about the output formatting โ yes, there's a whole other printer for the table version. iconic.)
โจ SoTabPlaneDragger::~SoTabPlaneDragger (void ) โ [protected], [virtual]
Protected destructor, bestie. She's shy. ๐
(Dragger classes are derived from SoBase, so they are reference counted and automatically destroyed when their reference count goes to 0 โ no manual cleanup, she just leaves when nobody's holding on anymore. ๐
)
๐ ๏ธ Member Function Documentation ๐
โญ SoType SoTabPlaneDragger::getTypeId (void ) const โ [virtual]
Returns the type identification of an object derived from a class inheriting SoBase. This is used for run-time type checking and "downward" casting. Basically the "who dis?" check but for classes. ๐
Usage example:
void foo(SoNode * node)
{
if (node->getTypeId() == SoFile::getClassTypeId()) {
SoFile * filenode = (SoFile *)node; // safe downward cast, knows the type
}
}
For application programmers wanting to extend the library with new nodes, engines, nodekits, draggers or others: this method needs to be overridden in all subclasses. This is typically done as part of setting up the full type system for extension classes, which is usually accomplished by using the pre-defined macros available through for instance Inventor/nodes/SoSubNode.h (SO_NODE_INIT_CLASS and SO_NODE_CONSTRUCTOR for node classes), Inventor/engines/SoSubEngine.h (for engine classes) and so on.
For more information on writing Coin extensions, see the class documentation of the toplevel superclasses for the various class groups.
Reimplemented from SoDragger.
โญ const SoFieldData * SoTabPlaneDragger::getFieldData (void ) const โ [protected], [virtual]
Returns a pointer to the class-wide field data storage object for this instance. If no fields are present, returns NULL. That's it, that's the whole vibe. ๐ซถ
Reimplemented from SoDragger.
โญ const SoNodekitCatalog * SoTabPlaneDragger::getNodekitCatalog (void ) const โ [virtual]
Returns the nodekit catalog which defines the layout of this class' kit. It's literally the blueprint bestie ๐โจ
Reimplemented from SoDragger.
โญ void SoTabPlaneDragger::adjustScaleTabSize (void )
Signals the dragger to recalculate the size of its tabs.
Heads up: this method is not doing anything useful in Coin, since the tab sizes are recalculated every time the dragger is rendered, even though this method has not been called. So it's giving "I'm helping" but actually it's just standing there. ๐ญ
โญ void SoTabPlaneDragger::GLRender (SoGLRenderAction * action) โ [protected], [virtual]
Action method for the SoGLRenderAction.
This is called during rendering traversals. Nodes influencing the rendering state in any way, or who wants to throw geometry primitives at OpenGL, override this method. Go off, throw those primitives ๐ ๐ฅ
Reimplemented from SoDragger.
โญ SbBool SoTabPlaneDragger::setUpConnections (SbBool onoff, SbBool doitalways = FALSE) โ [protected], [virtual]
Sets up all internal connections for instances of this class.
(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. So likeโฆ not your problem unless it's your problem, yk? ๐ฆ)
Reimplemented from SoInteractionKit.
โญ void SoTabPlaneDragger::setDefaultOnNonWritingFields (void ) โ [protected], [virtual]
(Be aware that this method is unlikely to be of interest to the application programmer who does not want to extend the library with new custom nodekits or draggers. If you indeed are writing extensions, see the information in the SoBaseKit class documentation.)
This is a virtual method, and the code in it should call SoField::setDefault() with argument TRUE on part fields that should not be written upon scenegraph export operations.
This is typically done when:
- field value is
NULLand part isNULLby default - it is a leaf
SoGrouporSoSeparatornode with no children - it is a leaf listpart with no children and an
SoGrouporSoSeparatorcontainer - it is a non-leaf part and it's of
SoGrouptype and all fields are at their default values
Subclasses should usually override this to do additional settings for new member fields. From the subclass, do remember to call "upwards" to your superclass' setDefaultOnNonWritingFields() method โ don't ghost your parent class bestie, call up. โ๏ธโจ
Reimplemented from SoDragger.
โญ void SoTabPlaneDragger::reallyAdjustScaleTabSize (SoGLRenderAction * action) โ [protected]
Recalculates the size of the tabs, based on the current view volume, the current viewport, the current model matrix and the current scale factor. If action == NULL, a default size will be used. She does the actual work the other one claimed to do. main character energy fr ๐
โญ void SoTabPlaneDragger::getXYScreenLengths (SbVec2f & lengths, const SbMatrix & localtoscreen, const SbVec2s & winsize) โ [protected]
Not implemented. That's it. That's the whole entry. She said "no โค๏ธ". ๐
โญ void SoTabPlaneDragger::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. โจ the moment of picking โจ
โญ void SoTabPlaneDragger::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. ๐ฑ๏ธโจ
โญ void SoTabPlaneDragger::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. ๐ฌ that's a wrap, periodt.
๐ฆ Member Data Documentation ๐
๐ธ SoSFVec3f SoTabPlaneDragger::translation
Continuously updated to contain the current translation from the dragger's local origo position. She's always keeping you posted bestie, never ghosting the update. ๐
๐ธ SoSFVec3f SoTabPlaneDragger::scaleFactor
Continuously updated to contain the current vector of scaling along the X, Y and Z axes. The Z component will always be 1.0. Always. No exceptions. That Z is a fixed icon and she knows it. ๐
๐ Author
Generated automatically by Doxygen for Coin from the source code. Not a human, just a lil robot doing its best. ๐ค๐
So that's the whole page, bestie โ this one came from Coin Version 3.1.3 and it's the SoTabPlaneDragger(3) manual page. Thanks for reading all the way through, you're literally the strongest soldier I know ๐ซถโจ
๐ฆ where this page comes from
- fedora 43: Coin3-devel 3.1.3-40.fc43 ยท GPL-2.0-only
- fedora 43: Coin3-devel 3.1.3-40.fc43 ยท GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.fc44 ยท GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.fc44 ยท GPL-2.0-only
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms