SOCENTERBALLDRAGGER(3iv)
β¨ NAME β¨
okay so bestie, meet SoCenterballDragger(3IV) β a striped ball you rotate and re-center by dragging with the mouse π
π¦ INHERITS FROM π¦
SoBase > SoFieldContainer > SoNode > SoBaseKit > SoInteractionKit > SoDragger > SoCenterballDragger
like, it's giving deep family tree energy, iykyk πΈ
π SYNOPSIS π
#include <Inventor/draggers/SoCenterballDragger.h>
π Fields from class SoCenterballDragger π
SoSFRotationrotationSoSFVec3fcenter
π Fields from class SoDragger π
SoSFBoolisActive
π Fields from class SoInteractionKit π
SoSFEnumrenderCachingSoSFEnumboundingBoxCachingSoSFEnumrenderCullingSoSFEnumpickCulling
π Parts from class SoBaseKit π
(SoNodeKitListPart)callbackList
π Methods from class SoCenterballDragger π
SoCenterballDragger()static const SoNodekitCatalog * getClassNodekitCatalog() conststatic SoType getClassTypeId()
π Methods from class SoDragger π
void addStartCallback(SoDraggerCB *f, void *userData = NULL)void removeStartCallback(SoDraggerCB *f, void *userData = NULL)void addMotionCallback(SoDraggerCB *f, void *userData = NULL)void removeMotionCallback(SoDraggerCB *f, void *userData = NULL)void addFinishCallback(SoDraggerCB *f, void *userData = NULL)void removeFinishCallback(SoDraggerCB *f, void *userData = NULL)void addValueChangedCallback(SoDraggerCB *f, void *userData = NULL)void removeValueChangedCallback(SoDraggerCB *f, void *userData = NULL)SbBool enableValueChangedCallbacks()void setMinGesture(int pixels)int getMinGesture() conststatic void setMinScale(float newMinScale)static float getMinScale()
π Methods from class SoInteractionKit π
virtual SbBool setPartAsPath(const SbName &partName, SoPath *surrogatePath )
π Methods from class SoBaseKit π
virtual const SoNodekitCatalog * getNodekitCatalog() constvirtual SoNode * getPart(const SbName &partName, SbBool makeIfNeeded)SbString getPartString(const SoBase *part)virtual SoNodeKitPath * createPathToPart(const SbName &partName, SbBool makeIfNeeded, const SoPath *pathToExtend = NULL)virtual SbBool setPart(const SbName &partName, SoNode *newPart)SbBool set(char *partName, char *parameters)SbBool set(char *nameValuePairs)static SbBool isSearchingChildren()static void setSearchingChildren(SbBool newVal)
π Methods from class SoNode π
void setOverride(SbBool state)SbBool isOverride() constSoNode * copy(SbBool copyConnections = FALSE) constvirtual SbBool affectsState() conststatic SoNode * getByName(const SbName &name)static int getByName(const SbName &name, SoNodeList &list)
π Methods from class SoFieldContainer π
void setToDefaults()SbBool hasDefaultValues() constSbBool fieldsAreEqual(const SoFieldContainer *fc) constvoid copyFieldValues(const SoFieldContainer *fc, SbBool copyConnections = FALSE)void get(SbString &fieldDataString)virtual int getFields(SoFieldList &resultList) constvirtual SoField * getField(const SbName &fieldName) constSbBool getFieldName(const SoField *field, SbName &fieldName) constSbBool isNotifyEnabled() constSbBool enableNotify(SbBool flag)
π Methods from class SoBase π
void ref()void unref() constvoid unrefNoDelete() constvoid touch()virtual SoType getTypeId() constSbBool isOfType(SoType type) constvirtual void setName(const SbName &name)virtual SbName getName() const
π Macros from class SoBaseKit π
SO_GET_PART(kit, partName, partClass)SO_CHECK_PART(kit, partName, partClass)
π DESCRIPTION π
SoCenterballDragger is a composite dragger. Its shape is a sphere defined by three intersecting circles. Where the circles intersect (at the ends of the x, y and z axes) there are sets of small green crosshairs. Dragging a pair of crosshairs translates the entire centerball within the plane of the crosshairs. The interface of the sphere and circles is just like SoTrackballDragger. Dragging a circle rotates about a constrained axis and dragging the areas between them rotates the sphere freely about the center. An invisible but pickable sphere initiates the free-rotation dragging.
When you drag the crosshairs, the center field is updated; there is no translation field. Dragging other parts of the centerball updates the rotation field. As with all draggers, if you change the fields the dragger moves in response. π«Ά
The draggers used for the crosshair parts are SoTranslate2Draggers, so pressing the <Shift> key allows you to constrain motion to slide along either the local x axis or y axis of that crosshair. The direction is determined by your initial mouse gesture after pressing the key. Releasing the key removes the constraint. β¨
β οΈ Remember: This is not an SoTransform! If you want to move other objects with this dragger, you can either:
- [a] Use an
SoCenterballManip, which is subclassed fromSoTransform. The manipulator creates one of these draggers and uses it as the interface to edit the manipulator's fields. (See theSoCenterballManipman page.) - [b] Use field-to-field connections to connect the fields of this dragger to those of any
SoTransformationnode.
You can change the parts in any instance of this dragger using setPart(). The default part geometries are defined as resources for this SoCenterballDragger class. They are detailed in the Dragger Resources section of the online reference page for this class. You can make your program use different default resources for the parts by copying the file /usr/share/data/draggerDefaults/centerballDragger.iv into your own directory, editing the file, and then setting the environment variable SO_DRAGGER_DIR to be a path to that directory. π
πΈ FIELDS πΈ
SoSFRotationrotationβ Orientation of the centerball dragger. πSoSFVec3fcenterβ Center of rotation and scale of the centerball dragger. π
π METHODS π
SoCenterballDragger()β Constructor. the birth of your little ball, slay πstatic const SoNodekitCatalog * getClassNodekitCatalog() constβ Returns anSoNodekitCatalogfor this class. ποΈstatic SoType getClassTypeId()β Returns type identifier for this class. π·οΈ
π¦ CATALOG PARTS π¦
β¨ All parts β¨
(every single one, no skipping, bestie β Part Type, Default Type and NULL by Default all included π)
callbackListβ Part Type:NodeKitListPart, Default Type:--, NULL by Default: yestranslateToCenterβ Part Type:MatrixTransform, Default Type:--, NULL by Default: yessurroundScaleβ Part Type:SurroundScale, Default Type:--, NULL by Default: yesantiSquishβ Part Type:AntiSquish, Default Type:--, NULL by Default: nolightModelβ Part Type:LightModel, Default Type:--, NULL by Default: yesXAxisβ Part Type:Separator, Default Type:--, NULL by Default: yesYAxisβ Part Type:Separator, Default Type:--, NULL by Default: yesZAxisβ Part Type:Separator, Default Type:--, NULL by Default: yesrotatorβ Part Type:RotateSphericalDragger, Default Type:--, NULL by Default: yesYRotatorβ Part Type:RotateCylindricalDragger, Default Type:--, NULL by Default: yesZCenterChangerβ Part Type:Translate2Dragger, Default Type:--, NULL by Default: yesZRotatorβ Part Type:RotateCylindricalDragger, Default Type:--, NULL by Default: yesYCenterChangerβ Part Type:Translate2Dragger, Default Type:--, NULL by Default: yesXCenterChangerβ Part Type:Translate2Dragger, Default Type:--, NULL by Default: yesXRotatorβ Part Type:RotateCylindricalDragger, Default Type:--, NULL by Default: yes
β¨ Extra information for list parts from above table β¨
callbackListβ Container Type:Separator, Permissible Types:Callback,EventCallbackπ
part 1 done, more incoming π
β¨ DRAGGER RESOURCES β¨
okay bestie, this is the part where we meet every single little resource that lives inside this dragger π each one has its own part name, its own look, and its own whole personality. let's get into it, no skips, no shortcuts, we're listing ALL of them π«Ά
centerballRotator- Part:
rotator.rotator - Appearance: Invisible but pickable sphere
- Description: When picked, initiates free rotation about the center point. Slightly smaller radius than the stripes, so you must pick between the stripes to use it. (yes bestie it's hiding from you on purpose π)
- Part:
centerballRotatorActive- Part:
rotator.rotatorActive - Appearance: Invisible sphere
- Description: Displayed during unconstrained 3D rotation instead of
centerballRotator.
- Part:
centerballStripe- Parts:
XRotator.rotator,YRotator.rotator,ZRotator.rotator - Appearance: White circle aligned with rotation axis.
- Description: When picked, initiates constrained rotation. Each rotator rotates locally about its Y axis. The centerball contains private transform parts that orient the draggers along three different axes.
- Parts:
centerballStripeActive- Parts:
XRotator.rotatorActive,YRotator.rotatorActive,ZRotator.rotatorActive - Appearance: White circle aligned with the rotation axis.
- Description: Displayed during constrained rotation instead of the rotator part. The centerball orients the draggers along three different axes.
- Parts:
centerballCenterChanger- Parts:
XCenterChanger.translator,YCenterChanger.translator,ZCenterChanger.translator - Appearance: Two sets of small green crosshairs, one located at each intersection of axis and ball.
- Description: When picked, initiates 2D translation of ball through space. Edits the center field, which becomes center for subsequent rotations. Each translator works locally in its X-Y plane. The centerball contains private transform parts that place the draggers along three different axes.
- Parts:
centerballCenterChangerActive- Parts:
XCenterChanger.translatorActive,YCenterChanger.translatorActive,ZCenterChanger.translatorActive - Appearance: Yellow version of
centerballCenterChanger. - Description: Displayed during 2D translation instead of regular translator part. The centerball places the draggers along three different axes.
- Parts:
centerballCenterXAxisFeedback- Parts:
XCenterChanger.xAxisFeedback,YCenterChanger.xAxisFeedback,ZCenterChanger.xAxisFeedback - Appearance: Double-headed purple arrows, one located at each intersection of axis and ball. Located atop X axis of crosshair.
- Description: Only shown if dragger is moving and the axis is a permitted direction of motion. When pressing
<shift>, motion is constrained, and this is displayed only if the primary motion is in the X direction of the child dragger's local space. The centerball places the draggers along three different axes; so not all of these parts aligns with the X axis in centerball space.
- Parts:
centerballCenterYAxisFeedback- Parts:
XCenterChanger.yAxisFeedback,YCenterChanger.yAxisFeedback,ZCenterChanger.yAxisFeedback - Appearance: Double-headed purple arrows, one located at each intersection of axis and ball. Located atop Y axis of crosshair.
- Description: Only shown if dragger is moving and the axis is a permitted direction of motion. When pressing
<shift>, motion is constrained, and this is displayed only if the primary motion is in the Y direction of the child dragger's local space. The centerball places the draggers along three different axes; so not all of these parts aligns with the Y axis in centerball space.
- Parts:
centerballXAxis- Part:
XAxis - Appearance: Thin yellow line connecting left and right crosshairs.
- Description: Feedback shown alone during rotation about X axis; displayed with
centerballYAxisandcenterballZAxiswhile center is dragged.
- Part:
centerballYAxis- Part:
YAxis - Appearance: Thin yellow line connecting lower and upper crosshairs.
- Description: Feedback shown alone during rotation about Y axis; displayed with
centerballXAxisandcenterballZAxiswhile center is dragged.
- Part:
centerballZAxis- Part:
ZAxis - Appearance: Thin yellow line connecting near and far crosshairs.
- Description: Feedback shown alone during rotation about Z axis; displayed with
centerballXAxisandcenterballYAxiswhile center is dragged.
- Part:
π FILE FORMAT/DEFAULTS π
here's the whole default config, bestie, every single line, exactly as it lives π
CenterballDragger {
renderCaching AUTO
boundingBoxCaching AUTO
renderCulling AUTO
pickCulling AUTO
isActive FALSE
rotation 0 0 1 0
center 0 0 0
callbackList NULL
translateToCenter MatrixTransform {
matrix 1 0 0 0
0 1 0 0
0 0 1 0
0 0 0 1 }
surroundScale NULL
antiSquish AntiSquish {
sizing LONGEST_DIAGONAL }
lightModel LightModel {
model PHONG }
XAxis <centerballXAxis resource>
YAxis <centerballYAxis resource>
ZAxis <centerballZAxis resource>
rotator RotateSphericalDragger {
}
YRotator RotateCylindricalDragger {
}
ZCenterChanger Translate2Dragger {
}
ZRotator RotateCylindricalDragger {
}
YCenterChanger Translate2Dragger {
}
XCenterChanger Translate2Dragger {
}
XRotator RotateCylindricalDragger {
}
rotator.rotator <centerballRotator resource>
rotator.rotatorActive <centerballRotatorActive resource>
XRotator.rotator <centerballStripe resource>
YRotator.rotator <centerballStripe resource>
ZRotator.rotator <centerballStripe resource>
XRotator.rotatorActive <centerballStripeActive resource>
YRotator.rotatorActive <centerballStripeActive resource>
ZRotator.rotatorActive <centerballStripeActive resource>
XCenterChanger.translator <centerballCenterChanger resource>
YCenterChanger.translator <centerballCenterChanger resource>
ZCenterChanger.translator <centerballCenterChanger resource>
XCenterChanger.translatorActive <centerballCenterChangerActive resource>
YCenterChanger.translatorActive <centerballCenterChangerActive resource>
ZCenterChanger.translatorActive <centerballCenterChangerActive resource>
XCenterChanger.xAxisFeedback <centerballCenterXAxisFeedback resource>
YCenterChanger.xAxisFeedback <centerballCenterXAxisFeedback resource>
ZCenterChanger.xAxisFeedback <centerballCenterXAxisFeedback resource>
XCenterChanger.yAxisFeedback <centerballCenterYAxisFeedback resource>
YCenterChanger.yAxisFeedback <centerballCenterYAxisFeedback resource>
ZCenterChanger.yAxisFeedback <centerballCenterYAxisFeedback resource>
}
π¦ SEE ALSO π¦
go read these next, bestie, they're all in the same friend group π
SoInteractionKitSoDraggerSoDirectionalLightDraggerSoDragPointDraggerSoHandleBoxDraggerSoJackDraggerSoPointLightDraggerSoRotateCylindricalDraggerSoRotateDiscDraggerSoRotateSphericalDraggerSoScale1DraggerSoScale2DraggerSoScale2UniformDraggerSoScaleUniformDraggerSoSpotLightDraggerSoTabBoxDraggerSoTabPlaneDraggerSoTrackballDraggerSoTransformBoxDraggerSoTranslate1DraggerSoTranslate2Dragger
and that's a wrap on SoCenterballDragger(3IV), my love πΈ that's the version tag 3IV and the date slot was left all empty like a lil blank π icon behavior honestly. go forth and spin that ball, you're the main character of this viewport now ππ
π¦ where this page comes from
- debian bookworm: inventor-doc 2.1.5-10+dfsg-2 Β· LGPL-2.0-or-later
- debian trixie: inventor-doc 2.1.6+ds-2 Β· LGPL-2.0-or-later
- ubuntu jammy: inventor-doc 2.1.5-10-24
- ubuntu noble: inventor-doc 2.1.5-10+dfsg-2.1build2 Β· LGPL-2.0-or-later
- ubuntu questing: inventor-doc 2.1.6+ds-2
- ubuntu resolute: inventor-doc 2.1.6.1+ds-1 Β· LGPL-2.0-or-later
- ubuntu stonking: inventor-doc 2.1.6.1+ds-1 Β· LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms