Object you can translate along a line by dragging with the mouse. More...
#include <Inventor/draggers/SoTranslate1Dragger.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
virtual const SoNodekitCatalog * | getNodekitCatalog () const |
SoTranslate1Dragger () | |
Static Public Member Functions | |
static SoType | getClassTypeId () |
static const SoNodekitCatalog * | getClassNodekitCatalog () |
Public Attributes | |
SoSFVec3f | translation |
Object you can translate along a line by dragging with the mouse.
SoTranslate1Dragger is a simple dragger that translates in one dimension when dragged with the mouse. It moves along the x axis of its local space, 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 translation field which always reflects its position in local space. If you set the field, the dragger will move accordingly. You can also connect fields of other nodes or engines from this one to make them follow the dragger's motion.
This dragger contains four parts, translator , translatorActive , 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/translate1Dragger.iv into your own directory, editing the file, and then setting the environment variable SO_DRAGGER_DIR to be a path to that directory.
See SoDragger for more information about using and customizing draggers, including code examples, using draggers in an immersive VR environment and using WYSIWYG draggers.
boundingBoxCaching | AUTO |
renderCulling | AUTO |
pickCulling | AUTO |
isActive | FALSE |
translation | 0 0 0 |
callbackList | NULL |
translator | <translate1Translator resource> |
translatorActive | <translate1TranslatorActive resource> |
feedback | <translate1Feedback resource> |
feedbackActive | <translate1FeedbackActive resource> |
Resource: | translate1Translator |
Part: | translator |
Appearance: | white arrow |
Description: | picking this initiates translation |
Resource: | translate1TranslatorActive |
Part: | translatorActive |
Appearance: | yellow arrow |
Description: | displayed during translation instead of the translator |
Resource: | translate1Feedback |
Part: | feedback |
Appearance: | empty Separator by default |
Description: | feedback displayed when not in motion |
Resource: | translate1FeedbackActive |
Part: | feedbackActive |
Appearance: | empty Separator by default |
Description: | feedback displayed while moving |
Part Name | Part Type | Default Type | NULL Default |
callbackList | NodeKitListPart | -- | yes |
translator | Separator | -- | yes |
translatorActive | 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, SoRotateDiscDragger, SoRotateSphericalDragger, SoScale1Dragger, SoScale2Dragger, SoScale2UniformDragger, SoScaleUniformDragger, SoSpotLightDragger, SoTabBoxDragger, SoTabPlaneDragger, SoTrackballDragger, SoTransformBoxDragger, SoTransformerDragger, SoTranslate2Dragger
SoTranslate1Dragger::SoTranslate1Dragger | ( | ) |
Constructor.
static const SoNodekitCatalog* SoTranslate1Dragger::getClassNodekitCatalog | ( | ) | [static] |
Returns the SoNodekitCatalog for this class.
Reimplemented from SoDragger.
Reimplemented in SoOrthoSliceDragger.
static SoType SoTranslate1Dragger::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoDragger.
Reimplemented in SoOrthoSliceDragger.
virtual const SoNodekitCatalog* SoTranslate1Dragger::getNodekitCatalog | ( | ) | const [virtual] |
Returns the SoNodekitCatalog for this instance.
Reimplemented from SoDragger.
Reimplemented in SoOrthoSliceDragger.
virtual SoType SoTranslate1Dragger::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from SoDragger.
Reimplemented in SoOrthoSliceDragger.
Position of the dragger.