Class SoEllipsoidDragger

All Implemented Interfaces:
SafeDisposable

public class SoEllipsoidDragger extends SoTabPlaneDragger
Ellipsoid you can translate or scale within a plane by dragging with the mouse. SoEllipsoidDragger is derived from SoTabPlaneDragger and has similar behavior. The difference is that the displayed shape is an ellipsoid that fills the extent of the dragger.

If you set the constrained field to true, the edge tabs are hidden (only corner tabs are visible) and scaling is uniform.

The numSamples field specifies the number of points used to draw the ellipsoid. You can ensure the displayed shape is a circle if you set the constrained field to true before any scaling is applied.

The scaleUniform and lineWidth fields inherited from SoTabPlaneDragger are ignored.

See 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:

EllipsoidDragger {

    boundingBoxCaching AUTO
    renderCulling AUTO
    pickCulling AUTO
    isActive false
    resizeHandles false
    translation 0 0 0
    scaleFactor 1 1 1
    numSamples 100
    constrained false
    scaleUniform false
    twoSidedLighting false
    lineWidth 1
    callbackList NULL
    translator <tabPlaneTranslator resource>
    scaleTabMaterial <tabPlaneScaleTabMaterial resource>
    scaleTabHints <tabPlaneScaleTabHints resource>
}

See Also:
  • Field Details

    • numSamples

      public final SoSFInt32 numSamples
      Number of samples composing the ellispoid.
    • constrained

      public final SoSFBool constrained
      Hint about constrained scaling.
  • Constructor Details

    • SoEllipsoidDragger

      public SoEllipsoidDragger()
      Constructor.
  • Method Details