Class SoRotateCylindricalDragger
- All Implemented Interfaces:
SafeDisposable
SoRotateCylindricalDragger
is a simple dragger that rotates about the y axis of its local space. The feel of the rotation is as if you were spinning a cylinder about its axis of rotation. The local space is determined by its 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/rotateCylindricalDragger.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:
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.
File format/default:
RotateCylindricalDragger {
boundingBoxCaching | AUTO |
renderCulling | AUTO |
pickCulling | AUTO |
isActive | false |
rotation | 0 0 1 0 |
callbackList | NULL |
rotator | <rotateCylindricalRotator resource> |
rotatorActive | <rotateCylindricalRotatorActive resource> |
feedback | <rotateCylindricalFeedback resource> |
feedbackActive | <rotateCylindricalFeedbackActive resource> |
Resource: | rotateCylindricalRotator |
Part: | rotator |
Appearance: | white cylinder (with vertical axis) made of lines |
Description: | picking this initiates rotation |
Resource: | rotateCylindricalRotatorActive |
Part: | rotatorActive |
Appearance: | yellow version of rotator |
Description: | displayed while in motion instead of the rotator |
Resource: | rotateCylindricalFeedback |
Part: | feedback |
Appearance: | thin purple line along local y-axis |
Description: | shows center of rotation when not moving |
Resource: | rotateCylindricalFeedbackActive |
Part: | feedbackActive |
Appearance: | thin, slightly brighter purple line along local y-axis |
Description: | shows center of rotation when moving |
All Parts
Part Name | Part Type | Default Type | NULL Default |
callbackList | NodeKitListPart | yes | |
rotator | Separator | yes | |
rotatorActive | Separator | yes | |
feedback | Separator | yes | |
feedbackActive | Separator | yes |
Extra Information for List Parts from Above Table
Part Name | Container Type | Possible Types |
callbackList | Separator | Callback, EventCallback |
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.openinventor.inventor.draggers.SoDragger
SoDragger.TrackerDirectModes
Nested classes/interfaces inherited from class com.openinventor.inventor.nodekits.SoInteractionKit
SoInteractionKit.Cachings
Nested classes/interfaces inherited from class com.openinventor.inventor.nodes.SoNode
SoNode.RenderModes
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
Field Summary
FieldsFields inherited from class com.openinventor.inventor.draggers.SoDragger
enableCallbacks, isActive
Fields inherited from class com.openinventor.inventor.nodekits.SoInteractionKit
boundingBoxCaching, pickCulling, renderCaching, renderCulling
Fields inherited from class com.openinventor.inventor.nodekits.SoBaseKit
boundingBoxIgnoring
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SoNodekitCatalog
Returns theSoNodekitCatalog
for this class.Gets the cylinder projector.void
Sets a different cylinder projector.Methods inherited from class com.openinventor.inventor.draggers.SoDragger
addFinishCallback, addMotionCallback, addStartCallback, addValueChangedCallback, enableValueChangedCallbacks, getInitialTrackerDirectMode, getMinGesture, getMinGestureFloat, getMinScale, getMotionMatrix, getTrackerDirectMode, removeFinishCallback, removeMotionCallback, removeStartCallback, removeValueChangedCallback, setInitialTrackerDirectMode, setInitialTrackerDirectMode, setMinGesture, setMinGesture, setMinScale, setMotionMatrix, setTrackerDirectMode, setTrackerDirectMode
Methods inherited from class com.openinventor.inventor.nodekits.SoInteractionKit
setPartAsPath
Methods inherited from class com.openinventor.inventor.nodekits.SoBaseKit
getNodekitCatalog, getPart, getPart, getPartString, getViewportIsEnabled, getViewportOrigin, getViewportSize, isSearchingChildren, set, set, setPart, setSearchingChildren
Methods inherited from class com.openinventor.inventor.nodes.SoNode
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderEngineMode, getRenderUnitID, GLRender, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, handleEvent, isBoundingBoxIgnoring, isOverride, pick, rayPick, search, setOverride, touch, write
Methods inherited from class com.openinventor.inventor.fields.SoFieldContainer
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, setToDefaults
Methods inherited from class com.openinventor.inventor.misc.SoBase
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizable
Methods inherited from class com.openinventor.inventor.Inventor
getNativeResourceHandle
-
Field Details
-
rotation
Orientation of the dragger.
-
-
Constructor Details
-
SoRotateCylindricalDragger
public SoRotateCylindricalDragger()Constructor.
-
-
Method Details
-
setProjector
Sets a different cylinder projector. See theSbCylinderProjector
reference pages to find out how each kind affects the feel of your dragger's motion. The default uses anSbCylinderPlaneProjector
.Passing in NULL will cause this 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 axis and radius of the cylinder are determined by the dragger, based on the y-axis in local space and how far the initial mouse click occured from the center of rotation.
-
getClassNodekitCatalog
Returns theSoNodekitCatalog
for this class. -
getProjector
Gets the cylinder projector.
-