public class SoRotateSphericalDragger extends SoDragger
SoRotateSphericalDragger
is a simple dragger that rotates freely in all directions. The feel of the rotation is as if you were rolling a ball. The center of rotation is the origin of the local space, determined by the dragger's location in the scene graph. Transformation nodes placed before it will affect both the dragger and the direction of motion.
This node has a rotation
field which always reflects its orientation in local space. If you set the field, the dragger will rotate accordingly. You can also connect fields of other nodes or engines from this one to make them follow the dragger's orientation.
This dragger contains four parts, rotator , rotatorActive , feedback , and feedbackActive .
Each of these is set by default from a resource described in the Dragger Resources section of the online reference page for this class. You can change the parts in any instance of this dragger using setPart()
.
You can make your program use different default resources for the parts by copying the file $OIVHOME/data/draggerDefaults/rotateSphericalDragger.iv into your own directory, editing the file, and then setting the environment variable SO_DRAGGER_DIR to be a path to that directory.
This dragger has both a default and a WYSIWYG version:
File format/default:
RotateSphericalDragger {
All Parts
Extra Information for List Parts from Above Table
See also:
See
Default Dragger WYSIWYG Dragger
SoDragger
for more information about using and customizing draggers, including code examples, using draggers in an immersive VR environment and using WYSIWYG draggers.
}
renderCaching AUTO
boundingBoxCaching AUTO
renderCulling AUTO
pickCulling AUTO
isActive false
rotation 0 0 1 0
callbackList NULL
rotator <rotateSphericalRotator resource>
rotatorActive <rotateSphericalRotatorActive resource>
feedback <rotateSphericalFeedback resource>
feedbackActive <rotateSphericalFeedbackActive resource>
Resource: rotateSphericalRotator
Part: rotator
Appearance: white sphere made of three intersecting circles. Each circle is in a different plane of local space
Description: picking this initiates rotation
Resource: rotateSphericalRotatorActive
Part: rotatorActive
Appearance: yellow version of rotator
Description: displayed while in motion instead of the rotator
Resource: rotateSphericalFeedback
Part: feedback
Appearance: thin purple 3-D crosshairs at origin
Description: shows center of rotation when not moving
Resource: rotateSphericalFeedbackActive
Part: feedbackActive
Appearance: thin, slightly brighter purple 3-D crosshairs at origin
Description: shows center of rotation when moving
Part Name Part Type Default Type NULL Default
callbackList NodeKitListPart yes
rotator Separator yes
rotatorActive Separator yes
feedback Separator yes
feedbackActive Separator yes
Part Name Container Type Possible Types
callbackList Separator Callback, EventCallback
SoInteractionKit
, SoDragger
, SoCenterballDragger
, SoDirectionalLightDragger
, SoDragPointDragger
, SoHandleBoxDragger
, SoJackDragger
, SoPointLightDragger
, SoRotateCylindricalDragger
, SoRotateDiscDragger
, SoScale1Dragger
, SoScale2Dragger
, SoScale2UniformDragger
, SoScaleUniformDragger
, SoSpotLightDragger
, SoTabBoxDragger
, SoTabPlaneDragger
, SoTrackballDragger
, SoTransformBoxDragger
, SoTransformerDragger
, SoTranslate1Dragger
, SoTranslate2Dragger
SoDragger.TrackerDirectModes
SoInteractionKit.Cachings
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
SoSFRotation |
rotation
Orientation of the dragger.
|
DEFAULT, enableCallbacks, FREE, isActive, MOVE, NONE, ROTATE
AUTO, boundingBoxCaching, OFF, ON, pickCulling, renderCaching, renderCulling
boundingBoxIgnoring
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoRotateSphericalDragger()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static SoNodekitCatalog |
getClassNodekitCatalog()
Returns the
SoNodekitCatalog for this class. |
SbSphereProjector |
getProjector()
Gets the sphere projector.
|
void |
setProjector(SbSphereProjector p)
Sets a different sphere projector.
|
addFinishCallback, addMotionCallback, addStartCallback, addValueChangedCallback, enableValueChangedCallbacks, getInitialTrackerDirectMode, getMinGesture, getMinGestureFloat, getMinScale, getMotionMatrix, getTrackerDirectMode, removeFinishCallback, removeMotionCallback, removeStartCallback, removeValueChangedCallback, setInitialTrackerDirectMode, setInitialTrackerDirectMode, setMinGesture, setMinGesture, setMinScale, setMotionMatrix, setTrackerDirectMode, setTrackerDirectMode
setPartAsPath
getNodekitCatalog, getPart, getPart, getPartString, getViewportIsEnabled, getViewportOrigin, getViewportSize, isSearchingChildren, set, set, setPart, setSearchingChildren
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderUnitID, GLRender, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, handleEvent, isBoundingBoxIgnoring, isOverride, pick, rayPick, search, setOverride, touch, write
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, setToDefaults
dispose, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizable
getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public final SoSFRotation rotation
public SbSphereProjector getProjector()
public static SoNodekitCatalog getClassNodekitCatalog()
SoNodekitCatalog
for this class.public void setProjector(SbSphereProjector p)
SbSphereProjector
reference pages to find out how each kind affects the feel of your dragger's motion. The default uses an SbSpherePlaneProjector
.
Passing in NULL will cause the default type of projector to be used. Any projector you pass in will be deleted by this dragger when this dragger is deleted. Note that the center and radius of the sphere are determined by the dragger, based on the origin of the local space and the distance between the initial mouse click and that origin.
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com