Object you can rotate like a knob by dragging with the mouse. More...
#include <Inventor/draggers/SoRotateDiscDragger.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
virtual const SoNodekitCatalog * | getNodekitCatalog () const |
SoRotateDiscDragger () | |
Static Public Member Functions | |
static SoType | getClassTypeId () |
static const SoNodekitCatalog * | getClassNodekitCatalog () |
Public Attributes | |
SoSFRotation | rotation |
Object you can rotate like a knob by dragging with the mouse.
SoRotateDiscDragger is a simple dragger that rotates about the z axis of its local space. The feel of the rotation is as if you were spinning a record on a turntable or rotating the volume knob of a radio. 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 rotation.
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/rotateDiscDragger.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 |
| |
See 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 | <rotateDiscRotator resource> |
rotatorActive | <rotateDiscRotatorActive resource> |
feedback | <rotateDiscFeedback resource> |
feedbackActive | <rotateDiscFeedbackActive resource> |
Resource: | rotateDiscRotator |
Part: | rotator |
Appearance: | white cylinder (with axis along z-direction) made of lines |
Description: | picking this initiates rotation |
Resource: | rotateDiscRotatorActive |
Part: | rotatorActive |
Appearance: | yellow version of rotator, with added yellow cube |
Description: | displayed while in motion instead of the rotator |
Resource: | rotateDiscFeedback |
Part: | feedback |
Appearance: | thin purple line along local z-axis |
Description: | shows center of rotation when not moving |
Resource: | rotateDiscFeedbackActive |
Part: | feedbackActive |
Appearance: | thin, slightly brighter purple line along local z-axis |
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 |
Extra Information for List Parts from Above Table
Part Name | Container Type | Possible Types |
callbackList | Separator | Callback, EventCallback |
SoInteractionKit, SoDragger, SoCenterballDragger, SoDirectionalLightDragger, SoDragPointDragger, SoHandleBoxDragger, SoJackDragger, SoPointLightDragger, SoRotateCylindricalDragger, SoRotateSphericalDragger, SoScale1Dragger, SoScale2Dragger, SoScale2UniformDragger, SoScaleUniformDragger, SoSpotLightDragger, SoTabBoxDragger, SoTabPlaneDragger, SoTrackballDragger, SoTransformBoxDragger, SoTransformerDragger, SoTranslate1Dragger, SoTranslate2Dragger
SoRotateDiscDragger::SoRotateDiscDragger | ( | ) |
Constructor.
static const SoNodekitCatalog* SoRotateDiscDragger::getClassNodekitCatalog | ( | ) | [static] |
Returns the SoNodekitCatalog for this class.
Reimplemented from SoDragger.
static SoType SoRotateDiscDragger::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoDragger.
virtual const SoNodekitCatalog* SoRotateDiscDragger::getNodekitCatalog | ( | ) | const [virtual] |
Returns the SoNodekitCatalog for this instance.
Reimplemented from SoDragger.
virtual SoType SoRotateDiscDragger::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from SoDragger.
Orientation of the dragger.