SoCenterballDragger(3)
π SoCenterballDragger π
okay bestie, gather round, because we are reading the Coin manual page for SoCenterballDragger, section 3 of the manual (SoCenterballDragger(3)). It's a big one, so it comes in 4 parts, and this is part 1. No signing off, we're just getting started. π«Ά
β¨ NAME β¨
SoCenterballDragger β the SoCenterballDragger class is a dragger you can rotate and translate. spin it, slide it, it's giving main character energy ππ
π¦ SYNOPSIS π¦
#include <Inventor/draggers/SoCenterballDragger.h>
Inherits SoDragger.
π Public Member Functions π
virtual SoType getTypeId (void) constvirtual const SoNodekitCatalog * getNodekitCatalog (void) constSoCenterballDragger (void)virtual void saveStartParameters (void)
πΈ Public Member Functions inherited from SoDragger πΈ
these ones you get for free, signature-for-signature, no cap π
virtual void callback (SoCallbackAction *action)virtual void GLRender (SoGLRenderAction *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)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)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.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. (yes it's the boring plumbing, but the plumbing ate π )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)
π that's the end of part 1, bestie. the rest is still coming, don't go anywhere π
β¨ Static Public Member Functions inherited from SoNode β¨
okay bestie, these are the static methods that SoNode is handing down to every node out there, including our girl SoCenterballDragger. π
static uint32_t getCompatibilityTypes(const SoType &nodetype)β hands you back the compatibility bitmask for that node type, no cap.static SoType getClassTypeId(void)β the class type id, as always.static SoNode * getByName(const SbName &name)β grab a node by its name.static int getByName(const SbName &name, SoNodeList &l)β same energy, but it fills a list instead.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. (her lil' coming-out moment fr fr π )static void initClasses(void)β plural version, initializes the whole class family.static SbUniqueId getNextNodeId(void)β the next unique node id, fresh off the press.static int getActionMethodIndex(const SoType type)β the action method index for that type.static void getBoundingBoxS(SoAction *action, SoNode *node)β the bounding box action hook.static void GLRenderS(SoAction *action, SoNode *node)β the GL render action hook.static void callbackS(SoAction *action, SoNode *node)β the callback action hook.static void getMatrixS(SoAction *action, SoNode *node)β the get-matrix action hook.static void handleEventS(SoAction *action, SoNode *node)β the handle-event action hook.static void pickS(SoAction *action, SoNode *node)β the pick action hook.static void rayPickS(SoAction *action, SoNode *node)β the ray-pick action hook.static void searchS(SoAction *action, SoNode *node)β the search action hook.static void writeS(SoAction *action, SoNode *node)β the write action hook.static void audioRenderS(SoAction *action, SoNode *node)β the audio render action hook.static void getPrimitiveCountS(SoAction *action, SoNode *node)β the get-primitive-count action hook.
πΈ 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.static SoType getClassTypeId(void)β This static method returns theSoTypeobject associated with objects of this class. periodt.static void cleanupClass(void)β tears down the class stuff.static void initCopyDict(void)β sets up the copy dictionary.static void addCopy(const SoFieldContainer *orig, const SoFieldContainer *copy)β registers an original β copy pair.static SoFieldContainer * checkCopy(const SoFieldContainer *orig)β checks whether a copy already exists for that original.static SoFieldContainer * findCopy(const SoFieldContainer *orig, const SbBool copyconnections)β finds the copy, with a flag for whether to copy connections.static void copyDone(void)β wraps up the whole copy situation. π
π¦ 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)β 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 write counter up.static void decrementCurrentWriteCounter(void)β and down again.static SoBase * getNamedBase(const SbName &name, SoType type)β fetches a named base of that type.static int getNamedBases(const SbName &name, SoBaseList &baselist, SoType type)β plural, fills the list.static SbBool read(SoInput *input, SoBase *&base, SoType expectedtype)β reads a base off the input.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 ref tracing is on.static SbBool connectRoute(SoInput *input, const SbName &fromnodename, const SbName &fromfieldname, const SbName &tonodename, const SbName &tofieldname)β wires up a route between two fields.static SbBool readRoute(SoInput *input)β reads a route from the input.
π Public Attributes π
SoSFRotation rotationβ the rotation field, iconic.SoSFVec3f centerβ the center field, so the ball knows where its heart is.
π Public Attributes inherited from SoDragger π
SoSFBool isActiveβ is the dragger active right now or not.
π Public Attributes inherited from SoInteractionKit π
SoSFEnum renderCachingβ render caching setting.SoSFEnum boundingBoxCachingβ bounding box caching setting.SoSFEnum renderCullingβ render culling setting.SoSFEnum pickCullingβ pick culling setting.
π Protected Member Functions π
these are the internals, bestie β protected, so not for everyone's hands π
virtual const SoFieldData * getFieldData(void) constβ returns the field data.virtual ~SoCenterballDragger(void)β the destructor.void transferCenterDraggerMotion(SoDragger *childdragger)β passes center-dragger motion along to the child.void setSwitches(SoDragger *activechild)β sets the switches based on which child is active.virtual SbBool setUpConnections(SbBool onoff, SbBool doitalways=FALSE)β sets up (or tears down) the field connections.virtual void setDefaultOnNonWritingFields(void)β sets defaults on the fields that aren't written out.virtual void getBoundingBox(SoGetBoundingBoxAction *action)β computes the bounding box.virtual void getMatrix(SoGetMatrixAction *action)β computes the matrix.
β Protected Member Functions inherited from SoDragger β
SoDragger(void)β constructor.virtual ~SoDragger(void)β destructor.SbVec2f getNormalizedLocaterPosition(void)β the locater position, normalized.SbVec2s getLocaterPosition(void)β the locater position as-is.SbVec2s getStartLocaterPosition(void) constβ where the locater started.void setStartLocaterPosition(SbVec2s p)β sets that starting locater position.SbBool isAdequateConstraintMotion(void)β checks if the constraint motion is adequate.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.virtual void handleEvent(SoHandleEventAction *ha)β handles the event.void transferMotion(SoDragger *child)β hands motion off to a child.void setIgnoreInBbox(SbBool newval)β sets whether it's ignored in the bounding box.SbBool isIgnoreInBbox(void)β tells you that same thing.void setActiveChildDragger(SoDragger *newchilddragger)β sets the active child dragger.SoDragger * getActiveChildDragger(void) constβ gets the active child dragger.void updateDraggerCache(const SoPath *path)β refreshes the dragger cache.virtual const SoPickedPoint * getPickedPointForStart(SoHandleEventAction *action)β the picked point where it all started.
π Protected Member Functions inherited from SoInteractionKit π
virtual ~SoInteractionKit()β destructor.virtual void copyContents(const SoFieldContainer *fromFC, SbBool copyConnections)β copies the contents over.virtual SbBool setPart(const int partNum, SoNode *node)β sets a part by number.virtual SbBool readInstance(SoInput *in, unsigned short flags)β reads an instance.virtual SbBool setAnyPartAsDefault(const SbName &partname, SoNode *node, SbBool anypart=TRUE, SbBool onlyifdefault=TRUE)β sets any part as default, from a node.virtual SbBool setAnyPartAsDefault(const SbName &partname, const SbName &nodename, SbBool anypart=TRUE, SbBool onlyifdefault=TRUE)β same but from a node name.SbBool setAnySurrogatePath(const SbName &name, SoPath *path, SbBool leafcheck=FALSE, SbBool publiccheck=FALSE)β sets a surrogate path.void 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 this to the copy dictionary.SoGroup * getContainerNode(const SbName &listname, SbBool makeifneeded=TRUE)β gets the container node.virtual SoNode * getAnyPart(const SbName &partname, SbBool makeifneeded, SbBool leafcheck=FALSE, SbBool publiccheck=FALSE)β gets any part you ask for.virtual SoNodeKitPath * createPathToAnyPart(const SbName &partname, SbBool makeifneeded, SbBool leafcheck=FALSE, SbBool publiccheck=FALSE, const SoPath *pathtoextend=NULL)β makes a path to any part.virtual SbBool setAnyPart(const SbName &partname, SoNode *from, SbBool anypart=TRUE)β sets any part.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 that parts list.const SbList< SoSFNode * > & getCatalogInstances(void) constβ returns the catalog instances.void catalogError(void)β throws a catalog error.void countMyFields(SoOutput *out)β counts the fields for output.
π 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 it.SbBool hasMultipleWriteRefs(void) constβ does it have multiple write references?SbBool writeHeader(SoOutput *out, SbBool isgroup, SbBool isengine) constβ writes the header.void writeFooter(SoOutput *out) constβ writes the footer.virtual const char * getFileFormatName(void) constβ the file format name.virtual SoNotRec createNotRec(void)β creates a notification record.
π₯ Static Protected Member Functions π₯
static const SoFieldData ** getFieldDataPtr(void)β pointer to the field data.static const SoNodekitCatalog ** getClassNodekitCatalogPtr(void)β pointer to the class nodekit catalog.static void fieldSensorCB(void *f, SoSensor *s)β the field sensor callback.static void valueChangedCB(void *f, SoDragger *d)β the value-changed callback.static void kidStartCB(void *f, SoDragger *d)β the kid start callback.static void kidFinishCB(void *f, SoDragger *d)β the kid finish callback.
π« Static Protected Member Functions inherited from SoDragger π«
static const SoFieldData ** getFieldDataPtr(void)β pointer to the field data.static const SoNodekitCatalog ** getClassNodekitCatalogPtr(void)β pointer to the class nodekit catalog.static void childTransferMotionAndValueChangedCB(void *, SoDragger *)β 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 *)β child other-event callback.
πΈ Static Protected Member Functions inherited from SoInteractionKit πΈ
static const SoFieldData ** getFieldDataPtr(void)β pointer to the field data.static const SoNodekitCatalog ** getClassNodekitCatalogPtr(void)β pointer to the class nodekit catalog.static void readDefaultParts(const char *fileName, const char defaultBuffer[], int defBufSize)β reads the default parts from a file.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.static const SoNodekitCatalog ** getClassNodekitCatalogPtr(void)β pointer to the class nodekit catalog.
π Static Protected Member Functions inherited from SoNode π
static const SoFieldData ** getFieldDataPtr(void)β pointer to the field data.static void setNextActionMethodIndex(int index)β sets the next action method index.static int getNextActionMethodIndex(void)β gets it back.static void incNextActionMethodIndex(void)β bumps it up.static void setCompatibilityTypes(const SoType &nodetype, const uint32_t bitmask)β sets the compatibility types for a node type.
π¦ Static Protected Member Functions inherited from SoBase π¦
static uint32_t getCurrentWriteCounter(void)β the current write counter.static void staticDataLock(void)β locks the static data.static void staticDataUnlock(void)β unlocks it.
π Protected Attributes π
SoSFNode XAxisβ the X axis part.SoSFNode XAxisSwitchβ the X axis switch.SoSFNode XCenterChangerβ the X center changer.SoSFNode XRotatorβ the X rotator.SoSFNode YAxisβ the Y axis part.SoSFNode YAxisSwitchβ the Y axis switch.SoSFNode YCenterChangerβ the Y center changer.SoSFNode YRotatorβ the Y rotator.SoSFNode ZAxisβ the Z axis part.SoSFNode ZAxisSwitchβ the Z axis switch.SoSFNode ZCenterChangerβ the Z center changer.SoSFNode ZRotatorβ the Z rotator.SoSFNode antiSquishβ the anti-squish part.SoSFNode lightModelβ the light model part.SoSFNode rot2X90β the 2Γ90 rotation part.SoSFNode rotX90β the X-90 rotation part.SoSFNode rotY90β the Y-90 rotation part.SoSFNode rotatorβ the rotator part.SoSFNode surroundScaleβ the surround scale part.SoSFNode translateToCenterβ the translate-to-center part.SoFieldSensor * rotFieldSensorβ the rotation field sensor.SoFieldSensor * centerFieldSensorβ the center field sensor.
π 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β the field sensor.SoSeparator * oldTopSepβ the old top separator.
π§ Protected Attributes inherited from SoBaseKit π§
SoSFNode callbackListβ the callback list.SoChildList * childrenβ the children.SbBool connectionsSetUpβ whether the connections are set up.
β Protected Attributes inherited from SoNode β
SbUniqueId uniqueIdβ the unique id.
π Protected Attributes inherited from SoFieldContainer π
SbBool isBuiltInβ is it built in?
π Additional Inherited Members π
πΈ Public Types inherited from SoDragger πΈ
enum ProjectorFrontSetting { FRONT, BACK, USE_PICK }
π Public Types inherited from SoInteractionKit π
enum CacheEnabled { 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 }
π¦ Protected Types inherited from SoBase π¦
enum BaseFlags { IS_ENGINE = 0x01, IS_GROUP = 0x02 }
π« Static Protected Attributes inherited from SoNode π«
static SbUniqueId nextUniqueId = 1static int nextActionMethodIndex = 0
β¨ Detailed Description β¨
okay so SoCenterballDragger is a dragger you can rotate and translate, bestie. two jobs, one icon. π
here's how the dragger looks with its default geometry in the inactive state:
for rotation, click either the ball "bands" to constrain rotation to happen around the normal vector of the disc β or click literally anywhere else on the (invisible) ball for free-form rotation. slay. π
Translation is done by clicking and dragging any of the four arrow markers. Hold SHIFT to constrain translation to a single axis instead of in the plane. π
when translating, instead of modifying the translation part of the motion matrix, a center field is updated, and the geometry is moved using an internal transformation node. no cap.
here's a simple usage example, in the form of a scene graph as an iv-file:
#Inventor V2.1 ascii
Separator {
# The dragger, offset a little bit against the geometry to clip,
# so as to not mess up the user interface.
Separator {
Translation { translation -4 0 0 }
DEF cbdragger CenterballDragger { }
}
# The clipping plane sub-graph.
TransformSeparator {
# Connect transformations to those of the dragger.
Rotation { rotation 0 0 1 0 = USE cbdragger . rotation }
Translation { translation 0 0 0 = USE cbdragger . center }
# Use a simple lineset-based indicator to show how the
# clipping plane is situated in space.
Coordinate3 {
point [
0 2 2, 0 2 -2,
0 -2 2, 0 -2 -2,
0 2 -2, 0 -2 -2,
0 2 2, 0 -2 2
]
}
LineSet { numVertices [ 2, 2, 2, 2 ] }
ClipPlane { }
}
# Then follows the geometry that gets clipped. For this
# example, we use a simple sphere.
Sphere { }
}
the figure above shows the example scene graph in a viewer with the nearest cross on the centerball dragger selected. moving the dragger then moves the associated clip plane over the geometry (the sphere in this case). iconic. π
π οΈ Constructor & Destructor Documentation π οΈ
SoCenterballDragger::SoCenterballDragger (void )
Default constructor β sets up the dragger nodekit catalog with the interaction and feedback geometry. it's giving built different. π
Nodekit structure (new entries versus parent class marked with arrow prefix, iykyk):
CLASS SoCenterballDragger
-->"this"
"callbackList"
"topSeparator"
"motionMatrix"
--> "translateToCenter"
--> "surroundScale"
--> "antiSquish"
--> "lightModel"
"geomSeparator"
--> "XAxisSwitch"
--> "XAxis"
--> "YAxisSwitch"
--> "YAxis"
--> "ZAxisSwitch"
--> "ZAxis"
--> "rotator"
--> "YRotator"
--> "ZCenterChanger"
--> "rotX90"
--> "ZRotator"
--> "YCenterChanger"
--> "rotY90"
--> "XCenterChanger"
--> "rot2X90"
--> "XRotator"
(see SoBaseKit::printDiagram() for information about the output formatting.)
Detailed information on catalog parts:
CLASS SoCenterballDragger
PVT "this", SoCenterballDragger ---
"callbackList", SoNodeKitListPart [ SoCallback, SoEventCallback ]
PVT "topSeparator", SoSeparator ---
PVT "motionMatrix", SoMatrixTransform ---
"translateToCenter", SoMatrixTransform ---
"surroundScale", SoSurroundScale ---
"antiSquish", SoAntiSquish ---
"lightModel", SoLightModel ---
PVT "geomSeparator", SoSeparator ---
"rotator", SoRotateSphericalDragger ---
"YRotator", SoRotateCylindricalDragger ---
"ZCenterChanger", SoTranslate2Dragger ---
PVT "rotX90", SoRotation ---
"ZRotator", SoRotateCylindricalDragger ---
"YCenterChanger", SoTranslate2Dragger ---
PVT "rotY90", SoRotation ---
"XCenterChanger", SoTranslate2Dragger ---
PVT "rot2X90", SoRotation ---
PVT "XAxisSwitch", SoSwitch ---
"XAxis", SoSeparator ---
PVT "YAxisSwitch", SoSwitch ---
"YAxis", SoSeparator ---
PVT "ZAxisSwitch", SoSwitch ---
"ZAxis", SoSeparator ---
"XRotator", SoRotateCylindricalDragger ---
(see SoBaseKit::printTable() for information about the output formatting.)
SoCenterballDragger::~SoCenterballDragger (void ) [protected], [virtual]
Protected destructor. π«Ά
(dragger classes are derived from SoBase, so they are reference counted and automatically destroyed when their reference count goes to 0. bye bestie, we barely knew ye π)
π Member Function Documentation π
SoType SoCenterballDragger::getClassTypeId (void ) [static]
this static method returns the SoType object associated with objects of this class. π
SoType SoCenterballDragger::getTypeId (void ) const [virtual]
Returns the type identification of an object derived from a class inheriting SoBase. this is used for runtime type checking and "downward" casting.
Reimplemented from SoDragger.
const SoFieldData ** SoCenterballDragger::getFieldDataPtr (void ) [static], [protected]
this API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
returns the SoFieldData class which holds information about fields in this node.
const SoFieldData * SoCenterballDragger::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.
Reimplemented from SoDragger.
const SoNodekitCatalog * SoCenterballDragger::getClassNodekitCatalog (void ) [static]
Returns the nodekit catalog which defines the layout of this class' kit. ποΈ
const SoNodekitCatalog * SoCenterballDragger::getNodekitCatalog (void ) const [virtual]
Returns the nodekit catalog which defines the layout of this class' kit.
Reimplemented from SoDragger.
const SoNodekitCatalog ** SoCenterballDragger::getClassNodekitCatalogPtr (void ) [static], [protected]
Returns the pointer to the pointer of the nodekit catalog for this class. (pointer to a pointer?? yes bestie, that's the vibe. π)
void SoCenterballDragger::initClass (void ) [static]
Initializes type system for this dragger class.
application programmers should usually not have to invoke this method β see documentation of SoInteraction::init(). π
void SoCenterballDragger::saveStartParameters (void ) [virtual]
This is invoked to save start parameters, to enable draggers to calculate relative motion.
Default method in superclass SoDragger just saves the motion matrix, but subclasses should overload this method if other data needs to be saved.
Reimplemented from SoDragger.
void SoCenterballDragger::transferCenterDraggerMotion (SoDragger * childdragger) [protected]
Should be called after motion matrix has been updated by a child dragger.
void SoCenterballDragger::setSwitches (SoDragger * activechild) [protected]
Sets values for the internal SoSwitch parts. If activechild == NULL, all feedback is deactivated. π
SbBool SoCenterballDragger::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 SoCenterballDragger::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 scene graph 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 is 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.
Reimplemented from SoDragger.
void SoCenterballDragger::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 SoCenterballDragger::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 SoCenterballDragger::kidStartCB (void * d, SoDragger * child) [static], [protected]
this API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
needed to activate some feedback. β¨
void SoCenterballDragger::kidFinishCB (void * d, SoDragger * child) [static], [protected]
this API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
needed to deactivate some feedback. π
void SoCenterballDragger::getBoundingBox (SoGetBoundingBoxAction * action) [protected], [virtual]
Action method for the SoGetBoundingBoxAction.
Calculates bounding box and center coordinates for node and modifies the values of the action to encompass the bounding box for this node and to shift the center point for the scene more towards the one for this node.
Nodes influencing how geometry nodes calculate their bounding box also override this method to change the relevant state variables. π¦
Reimplemented from SoDragger.
void SoCenterballDragger::getMatrix (SoGetMatrixAction * action) [protected], [virtual]
Action method for SoGetMatrixAction.
Updates action by accumulating with the transformation matrix of this node (if any). π₯
Reimplemented from SoDragger.
π MEMBER DATA DOCUMENTATION π
okay bestie, this is the part where we meet the actual data β the little fields and sensors that do the heavy lifting behind the scenes. no cap, these are the main characters of the internals β¨
π SoSFRotation SoCenterballDragger::rotation
this one? iconic. it's the field that gets continuously updated so it always holds the rotation of the ball. like, every time the ball spins, this field is right there keeping receipts ππ
π¦ SoSFVec3f SoCenterballDragger::center
and this one is continuously updated to hold the current translation from the dragger's internal local origo position. so it's tracking where things have moved relative to that internal local origo β literally its whole job π«Ά
π SoFieldSensor* SoCenterballDragger::rotFieldSensor [protected]
heads up, bestie: this API member is considered internal to the library, since it's not likely to be of interest to the application programmer. so likeβ¦ you can look at it, but it's not for you π
π SoFieldSensor* SoCenterballDragger::centerFieldSensor [protected]
same energy, fr fr: this API member is also considered internal to the library, because it is not likely to be of interest to the application programmer. nothing to see here unless you're poking around inside the library itself π
π AUTHOR
so who wrote this masterpiece? Generated automatically by Doxygen for Coin from the source code. not a human typing away at 3am β the machine did it, and honestly? slay π€β¨
and that's a wrap on SoCenterballDragger(3)!! π you made it all the way to the end, bestie, so proud of you π«Ά this page was served up as Version 4.0.10, dated Thu Jun 25 2026 00:00:00, and yes, it's filed under the name SoCenterballDragger(3) β go forth and drag those centerballs, you absolute icon ππ
πΈ
π¦ 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