SOROTATESPHERICALDRAGGER(3coin3)
πΈ SoRotateSphericalDragger(3) πΈ
okay bestie, sit down, hydrate, and let me tell you about SoRotateSphericalDragger(3) from the Library Functions Manual β she's a whole vibe and she is literally the moment π
π NAME π
The SoRotateSphericalDragger class is for rotating geometry in any direction. β¨ any. direction. periodt.
β¨ SYNOPSIS β¨
#include <Inventor/draggers/SoRotateSphericalDragger.h>
She Inherits SoDragger. π (so like, she came from somewhere iconic, we respect the lineage)
π Public Member Functions π
virtual SoType getTypeId (void) constβ the type id grabber, an override, she's got main character energyvirtual const SoNodekitCatalog * getNodekitCatalog (void) constβ hands you the nodekit catalog, also an overrideSoRotateSphericalDragger (void)β the constructor, hi bestie, you're born πΈvoid setProjector (SbSphereProjector *p)β set the projectorconst SbSphereProjector * getProjector (void) constβ get the projector back
π¦ 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)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)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 π
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 all static, meaning you call them on the class itself, not on some lil instance okurrr
static void initClass (void)β sets the class up, one-time vibesstatic SoType getClassTypeId (void)β hands you theSoTypeso you can type-check, slaystatic void cleanupClass (void)β tidies up after the class, very demurestatic void initCopyDict (void)β preps the copy dictionary before a copy spreestatic void addCopy (const SoFieldContainer *orig, const SoFieldContainer *copy)β files a originalβcopy pairing into the dictstatic SoFieldContainer * checkCopy (const SoFieldContainer *orig)β peeks the dict for origstatic SoFieldContainer * findCopy (const SoFieldContainer *orig, const SbBool copyconnections)β same energy, but you also say whether connections come alongstatic void copyDone (void)β copy session over, wrap it up π
π Static Public Member Functions inherited from SoBase π
static void initClass (void)β class initialization, the ritualstatic SoType getClassTypeId (void)β theSoType, as promisedstatic void addName (SoBase *const base, const char *const name)β sticks a name onto a basestatic void removeName (SoBase *const base, const char *const name)β takes it back offstatic void incrementCurrentWriteCounter (void)β bumps the write counter upstatic void decrementCurrentWriteCounter (void)β bumps it back downstatic SoBase * getNamedBase (const SbName &name, SoType type)β find me a base by name and typestatic int getNamedBases (const SbName &name, SoBaseList &baselist, SoType type)β find me all of them, dumping intobaseliststatic SbBool read (SoInput *input, SoBase *&base, SoType expectedtype)β reads a base in frominputstatic void setInstancePrefix (const SbString &c)β sets the prefix string used for instancesstatic void setTraceRefs (SbBool trace)β turns ref tracing on/offstatic SbBool getTraceRefs (void)β asks whether ref tracing is onstatic SbBool connectRoute (SoInput *input, const SbName &fromnodename, const SbName &fromfieldname, const SbName &tonodename, const SbName &tofieldname)β wires a route from one node+field to anotherstatic SbBool readRoute (SoInput *input)β reads a route in, periodt
π¦ Public Attributes π¦
SoSFRotation rotationβ the actual rotation field, the whole point of this class honestly
β¨ Public Attributes inherited from SoDragger β¨
SoSFBool isActiveβ is the dragger currently being dragged? this tells you
π Public Attributes inherited from SoInteractionKit π
SoSFEnum renderCachingSoSFEnum boundingBoxCachingSoSFEnum renderCullingSoSFEnum pickCulling
π Protected Member Functions π
the inner-circle stuff, subclasses only, no gate-crashers
virtual const SoFieldData * getFieldData (void) constβ returns the field datavirtual ~SoRotateSphericalDragger (void)β destructor πvirtual SbBool setUpConnections (SbBool onoff, SbBool doitalways=FALSE)β hooks the connections up (or unhooks them),doitalwaysdefaults toFALSEvirtual void copyContents (const SoFieldContainer *fromfc, SbBool copyconnections)β copies the guts out offromfcvoid dragStart (void)β the moment the drag beginsvoid drag (void)β mid-drag, the motionvoid dragFinish (void)β drag's over, wrap
π Protected Member Functions inherited from SoDragger π
SoDragger (void)β constructorvirtual ~SoDragger (void)β destructor πSbVec2f getNormalizedLocaterPosition (void)β your locater position, normalizedSbVec2s getLocaterPosition (void)β the raw locater positionSbVec2s getStartLocaterPosition (void) constβ where the locater was when things kicked offvoid setStartLocaterPosition (SbVec2s p)β sets that starting positionSbBool isAdequateConstraintMotion (void)β is this constraint motion good enough, hmm?virtual SbBool shouldGrabBasedOnSurrogate (const SoPath *pickpath, const SoPath *surrogatepath)β should we grab based on the surrogate path?void setCameraInfo (SoAction *action)β stashes camera info from the actionvirtual void handleEvent (SoHandleEventAction *ha)β handles the event actionvoid transferMotion (SoDragger *child)β passes the motion down to a child draggervoid setIgnoreInBbox (SbBool newval)β set whether this gets ignored for bounding box calcSbBool isIgnoreInBbox (void)β are we ignoring it for bbox?virtual void getBoundingBox (SoGetBoundingBoxAction *action)β contributes to the bounding boxvoid setActiveChildDragger (SoDragger *newchilddragger)β picks which child dragger is the active oneSoDragger * getActiveChildDragger (void) constβ which child dragger is active rnvirtual void setDefaultOnNonWritingFields (void)β sets defaults on the non-writing fieldsvoid updateDraggerCache (const SoPath *path)β refreshes the dragger cache for a path
πΈ Protected Member Functions inherited from SoInteractionKit πΈ
virtual ~SoInteractionKit ()β destructor πvirtual SbBool setPart (const int partNum, SoNode *node)β assigns a node to a part numbervirtual SbBool readInstance (SoInput *in, unsigned short flags)β reads an instancevirtual SbBool setAnyPartAsDefault (const SbName &partname, SoNode *node, SbBool anypart=TRUE, SbBool onlyifdefault=TRUE)β sets a part as default by node,anypart=TRUE,onlyifdefault=TRUEvirtual SbBool setAnyPartAsDefault (const SbName &partname, const SbName &nodename, SbBool anypart=TRUE, SbBool onlyifdefault=TRUE)β same but you name the node insteadSbBool setAnySurrogatePath (const SbName &name, SoPath *path, SbBool leafcheck=FALSE, SbBool publiccheck=FALSE)β sets a surrogate path,leafcheck=FALSE,publiccheck=FALSEvoid connectSeparatorFields (SoSeparator *dest, SbBool onOff)β connects the separator fields, on or off
β Protected Member Functions inherited from SoBaseKit β
virtual ~SoBaseKit ()β destructor πvirtual SoNode * addToCopyDict (void) constβ adds itself into the copy dictionarySoGroup * getContainerNode (const SbName &listname, SbBool makeifneeded=TRUE)β grabs the container node for a list,makeifneeded=TRUEvirtual SoNode * getAnyPart (const SbName &partname, SbBool makeifneeded, SbBool leafcheck=FALSE, SbBool publiccheck=FALSE)β gets any part by name, withmakeifneeded,leafcheck=FALSE,publiccheck=FALSEvirtual SoNodeKitPath * createPathToAnyPart (const SbName &partname, SbBool makeifneeded, SbBool leafcheck=FALSE, SbBool publiccheck=FALSE, const SoPath *pathtoextend=NULL)β builds a path to any part,pathtoextenddefaults toNULLvirtual SbBool setAnyPart (const SbName &partname, SoNode *from, SbBool anypart=TRUE)β sets any part from a node,anypart=TRUEvoid createNodekitPartsList (void)β builds the nodekit parts listvoid createFieldList (void)β builds the field listvirtual void createDefaultParts (void)β makes the default partsconst SoNodekitParts * getNodekitPartsList (void) constβ hands over the nodekit parts listconst SbList< SoSFNode * > & getCatalogInstances (void) constβ the catalog instances, as aSbList< SoSFNode * >referencevoid catalogError (void)β throws a catalog error πvoid countMyFields (SoOutput *out)β counts the fields, forout
π§ Protected Member Functions inherited from SoNode π§
SoNode (void)β constructorvirtual ~SoNode ()β destructor π
π
Protected Member Functions inherited from SoFieldContainer π
SoFieldContainer (void)β constructorvirtual ~SoFieldContainer ()β destructor π
π Protected Member Functions inherited from SoBase π
SoBase (void)β constructorvirtual ~SoBase ()β destructor πvirtual void destroy (void)β destroys the thingSbBool hasMultipleWriteRefs (void) constβ does it have multiple write refs?SbBool writeHeader (SoOutput *out, SbBool isgroup, SbBool isengine) constβ writes the header, telling it if it's a group and if it's an enginevoid writeFooter (SoOutput *out) constβ writes the footervirtual const char * getFileFormatName (void) constβ the file format name, as aconst char *
π₯ Static Protected Member Functions π₯
static const SoFieldData ** getFieldDataPtr (void)β a pointer to the field data pointer, iykykstatic const SoNodekitCatalog ** getClassNodekitCatalogPtr (void)β pointer to the nodekit catalog pointerstatic void startCB (void *f, SoDragger *d)β the start callbackstatic void motionCB (void *f, SoDragger *d)β the motion callbackstatic void doneCB (void *f, SoDragger *d)β the done callbackstatic void fieldSensorCB (void *f, SoSensor *s)β the field sensor callbackstatic void valueChangedCB (void *f, SoDragger *d)β the value-changed callback
π Static Protected Member Functions inherited from SoDragger π
static const SoFieldData ** getFieldDataPtr (void)static const SoNodekitCatalog ** getClassNodekitCatalogPtr (void)static void childTransferMotionAndValueChangedCB (void *, SoDragger *)β the child's motion-transfer-and-value-changed callback, a whole mouthful frstatic void childValueChangedCB (void *, SoDragger *)static void childStartCB (void *, SoDragger *)static void childMotionCB (void *, SoDragger *)static void childFinishCB (void *, SoDragger *)static void childOtherEventCB (void *, SoDragger *)
π Static Protected Member Functions inherited from SoInteractionKit π
static const SoFieldData ** getFieldDataPtr (void)static const SoNodekitCatalog ** getClassNodekitCatalogPtr (void)static void readDefaultParts (const char *fileName, const char defaultBuffer[], int defBufSize)β reads default parts fromfileNameand a default buffer of sizedefBufSizestatic void fieldSensorCB (void *, SoSensor *)
π· Static Protected Member Functions inherited from SoBaseKit π·
static const SoFieldData ** getFieldDataPtr (void)static const SoNodekitCatalog ** getClassNodekitCatalogPtr (void)
π«Ά Static Protected Member Functions inherited from SoNode π«Ά
static const SoFieldData ** getFieldDataPtr (void)static void setNextActionMethodIndex (int index)β sets the next action method indexstatic int getNextActionMethodIndex (void)β gets itstatic void incNextActionMethodIndex (void)β increments itstatic void setCompatibilityTypes (const SoType &nodetype, const uint32_t bitmask)β sets the compatibility types from a node type and a bitmask
π« Static Protected Member Functions inherited from SoBase π«
static uint32_t getCurrentWriteCounter (void)β the current write counter, as auint32_tstatic void staticDataLock (void)β locks the static datastatic void staticDataUnlock (void)β unlocks it, we're done bestie
π Protected Attributes π
SoSFNode feedbackSoSFNode feedbackActiveSoSFNode feedbackSwitchSoSFNode rotatorSoSFNode rotatorActiveSoSFNode rotatorSwitchSoFieldSensor * fieldSensorSbMatrix prevMotionMatrixSbVec3f prevWorldHitPtSbSphereProjector * sphereProjSbBool userProj
π§‘ Protected Attributes inherited from SoDragger π§‘
SoSFNode motionMatrix
π Protected Attributes inherited from SoInteractionKit π
SoSFNode geomSeparatorSoSFNode topSeparatorSoFieldSensor * fieldSensorSoSeparator * oldTopSep
π Protected Attributes inherited from SoBaseKit π
SoSFNode callbackListSoChildList * childrenSbBool connectionsSetUp
π Protected Attributes inherited from SoNode π
uint32_t uniqueId
π Protected Attributes inherited from SoFieldContainer π
SbBool isBuiltIn
β¨ Additional Inherited Members β¨
π Public Types inherited from SoDragger π
enum ProjectorFrontSetting { FRONT, BACK, USE_PICK }β your three projector-front options, no notes
π Public Types inherited from SoInteractionKit π
enum CacheEnabled { OFF, ON, AUTO }β caching: off, on, or let it decide (AUTO, the main character)
π 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 }β the whole node-type bitflag lineup, every single value, we are not skipping a one
π¦ Protected Types inherited from SoBase π¦
enum BaseFlags { IS_ENGINE = 0x01, IS_GROUP = 0x02 }β just the two flags
β Static Protected Attributes inherited from SoNode β
static uint32_t nextUniqueId = 1β starts at1, and it counts up from therestatic int nextActionMethodIndex = 0β starts at0
πΈ Detailed Description πΈ
The SoRotateSphericalDragger class is for rotating geometry in any direction. That's it. That's the whole job. Any direction. Free rotation. Iconic behavior honestly. π₯
Here's how the dragger looks with its default geometry in the inactive state:
(picture it: the lil dragger sphere, just sitting there, vibing, not being dragged β the default-geometry inactive look π )
Use an instance of this dragger class in your scenegraph to let the end-users of your application rotate geometry freely in any direction. Yes bestie, any. Give the people freedom of rotation.
For the initial dragger orientation and the dragger geometry positioning itself, use some kind of transformation node in your scenegraph, as usual. That's the standard move, nothing new, you already know this one π«Ά
β¨ Constructor & Destructor Documentation β¨
π SoRotateSphericalDragger::SoRotateSphericalDragger (void ) π
okay so default constructor? It sets up the dragger nodekit catalog with the interaction and feedback geometry. literally setting the whole vibe, no cap.
Node kit structure (new entries versus parent class marked with arrow prefix):
CLASS SoRotateSphericalDragger
-->"this"
"callbackList"
"topSeparator"
"motionMatrix"
"geomSeparator"
--> "rotatorSwitch"
--> "rotator"
--> "rotatorActive"
--> "feedbackSwitch"
--> "feedback"
--> "feedbackActive"
(See SoBaseKit::printDiagram() for information about the output formatting.)
Detailed information on catalog parts:
CLASS SoRotateSphericalDragger
PVT "this", SoRotateSphericalDragger ---
"callbackList", SoNodeKitListPart [ SoCallback, SoEventCallback ]
PVT "topSeparator", SoSeparator ---
PVT "motionMatrix", SoMatrixTransform ---
PVT "geomSeparator", SoSeparator ---
PVT "rotatorSwitch", SoSwitch ---
"rotator", SoSeparator ---
"rotatorActive", SoSeparator ---
PVT "feedbackSwitch", SoSwitch ---
"feedback", SoSeparator ---
"feedbackActive", SoSeparator ---
(See SoBaseKit::printTable() for information about the output formatting.)
π
SoRotateSphericalDragger::~SoRotateSphericalDragger (void ) [protected], [virtual] π
Protected destructor, bestie. (Dragger classes are derived from SoBase, so they are reference counted and automatically destroyed when their reference count goes to 0.) so if you were worried about leaks, the refcount said not today. π«Ά
β¨ Member Function Documentation β¨
π SoType SoRotateSphericalDragger::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. iykyk.
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 * SoRotateSphericalDragger::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. so either you get the pointer or you get absolutely nothing, and that's on periodt.
Reimplemented from SoDragger.
πΈ const SoNodekitCatalog * SoRotateSphericalDragger::getNodekitCatalog (void ) const [virtual] πΈ
Returns the nodekit catalog which defines the layout of this class' kit. it's literally the map of the whole kit, bestie.
Reimplemented from SoDragger.
π void SoRotateSphericalDragger::setProjector (SbSphereProjector * p) π
Replace the default sphere projection strategy. You may want to do this if you change the dragger geometry, for instance.
The default projection is an SbSpherePlaneProjector.
See also SbSphereSectionProjector, SbSphereSheetProjector
π const SbSphereProjector * SoRotateSphericalDragger::getProjector (void ) const π
Returns projector instance used for converting from user interaction dragger movements to 3D dragger re-orientation. yes, it's giving translator energy.
See also setProjector()
β¨ SbBool SoRotateSphericalDragger::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.)
Reimplemented from SoInteractionKit.
π₯ void SoRotateSphericalDragger::copyContents (const SoFieldContainer * from, SbBool copyconnections) [protected], [virtual] π₯
Makes a deep copy of all data of from into this instance, except external scenegraph references if copyconnections is FALSE.
This is the protected method that should be overridden by extension node / engine / dragger / whatever subclasses which needs to account for internal data that are not handled automatically.
For copying nodes from application code, you should not invoke this function directly, but rather call the SoNode::copy() function:
SoNode * mynewnode = templatenode->copy();
The same also goes for engines.
Make sure that when you override the copyContents() method in your extension class that you also make it call upwards to it's parent superclass in the inheritance hierarchy, as copyContents() in for instance SoNode and SoFieldContainer does important work. It should go something like this:
void
MyCoinExtensionNode::copyContents(const SoFieldContainer * from,
SbBool copyconnections)
{
// let parent superclasses do their thing (copy fields, copy
// instance name, etc etc)
SoNode::copyContents(from, copyconnections);
// [..then copy internal data..]
}
Reimplemented from SoInteractionKit.
π void SoRotateSphericalDragger::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. so if that's not you, keep scrolling bestie.
π void SoRotateSphericalDragger::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. same energy, different callback.
π void SoRotateSphericalDragger::doneCB (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. internal business, fr fr.
πΈ void SoRotateSphericalDragger::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. sensor callback said no visitors allowed.
π¦ void SoRotateSphericalDragger::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. value changed, but not for you unless you're extending the library.
π
void SoRotateSphericalDragger::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. so this is the moment the user said "oh, that one" and grabbed it.
π void SoRotateSphericalDragger::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. the main character moment of mouse movement.
β¨ void SoRotateSphericalDragger::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 that's a wrap, bestie.
β¨ Member Data Documentation β¨
π SoSFRotation SoRotateSphericalDragger::rotation π
This field is continuously updated to contain the rotation of the current direction vector of the dragger. it's literally always updating, no cap.
The application programmer using this dragger in his scenegraph should connect the relevant node fields in the scene to this field to make them follow the dragger orientation. so connect those nodes, bestie, if you want the scene to follow the vibe.
π SoFieldSensor* SoRotateSphericalDragger::fieldSensor [protected] π
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer. protected and internal, the two moods.
π SbMatrix SoRotateSphericalDragger::prevMotionMatrix [protected] π
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer. previous motion matrix stays in its own lane.
π¦ SbVec3f SoRotateSphericalDragger::prevWorldHitPt [protected] π¦
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer. previous world hit point, internal only, iykyk.
πΈ SbSphereProjector* SoRotateSphericalDragger::sphereProj [protected] πΈ
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer. the sphere projector is minding its own business.
π SbBool SoRotateSphericalDragger::userProj [protected] π
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer. user projection flag? protected. periodt.
π Author π
Generated automatically by Doxygen for Coin from the source code.
okay that's the whole page, bestie! π«Ά this was auto-generated by Doxygen for Coin from the source code, and it's giving Coin Version 3.1.3, page SoRotateSphericalDragger(3). no cap, that's the sign-off. π
β¨
π¦ 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