man SoTabBoxDragger () - cubic object you can translate and scale by dragging with the mouse

NAME

SoTabBoxDragger - cubic object you can translate and scale by dragging with the mouse

INHERITS FROM

SoBase > SoFieldContainer > SoNode > SoBaseKit > SoInteractionKit > SoDragger > SoTabBoxDragger

SYNOPSIS

#include <Inventor/draggers/SoTabBoxDragger.h> Fields from class SoTabBoxDragger: c } c } scaleFactor

c } c } translation Fields from class SoDragger: c } c } isActive Fields from class SoInteractionKit: c } c } renderCaching

c } c } boundingBoxCaching

c } c } renderCulling

c } c } pickCulling Parts from class SoBaseKit: c } c } callbackList Methods from class SoTabBoxDragger: c } c } SoTabBoxDragger()

c } c } adjustScaleTabSize()

c } c } getClassNodekitCatalog() const

c } c } getClassTypeId() Methods from class SoDragger: c } c } addStartCallback(SoDraggerCB *f, void *userData = NULL)

c } c } removeStartCallback(SoDraggerCB *f, void *userData = NULL)

c } c } addMotionCallback(SoDraggerCB *f, void *userData = NULL)

c } c } removeMotionCallback(SoDraggerCB *f, void *userData = NULL)

c } c } addFinishCallback(SoDraggerCB *f, void *userData = NULL)

c } c } removeFinishCallback(SoDraggerCB *f, void *userData = NULL)

c } c } addValueChangedCallback(SoDraggerCB *f, void *userData = NULL)

c } c } removeValueChangedCallback(SoDraggerCB *f, void *userData = NULL)

c } c } enableValueChangedCallbacks()

c } c } setMinGesture(int pixels)

c } c } getMinGesture() const

c } c } setMinScale(float newMinScale)

c } c } getMinScale() Methods from class SoInteractionKit: c } c } setPartAsPath(const SbName &partName, SoPath *surrogatePath ) Methods from class SoBaseKit: c } c } getNodekitCatalog() const

c } c } getPart(const SbName &partName, SbBool makeIfNeeded)

c } c } getPartString(const SoBase *part)

c } c } createPathToPart(const SbName &partName, SbBool makeIfNeeded, const SoPath *pathToExtend = NULL)

c } c } setPart(const SbName &partName, SoNode *newPart)

c } c } set(char *partName, char *parameters)

c } c } set(char *nameValuePairs)

c } c } isSearchingChildren()

c } c } setSearchingChildren(SbBool newVal) Methods from class SoNode: c } c } setOverride(SbBool state)

c } c } isOverride() const

c } c } copy(SbBool copyConnections = FALSE) const

c } c } affectsState() const

c } c } getByName(const SbName &name)

c } c } getByName(const SbName &name, SoNodeList &list) Methods from class SoFieldContainer: c } c } setToDefaults()

c } c } hasDefaultValues() const

c } c } fieldsAreEqual(const SoFieldContainer *fc) const

c } c } copyFieldValues(const SoFieldContainer *fc, SbBool copyConnections = FALSE)

c } c } get(SbString &fieldDataString)

c } c } getFields(SoFieldList &resultList) const

c } c } getField(const SbName &fieldName) const

c } c } getFieldName(const SoField *field, SbName &fieldName) const

c } c } isNotifyEnabled() const

c } c } enableNotify(SbBool flag) Methods from class SoBase: c } c } ref()

c } c } unref() const

c } c } unrefNoDelete() const

c } c } touch()

c } c } getTypeId() const

c } c } isOfType(SoType type) const

c } c } setName(const SbName &name)

c } c } getName() const Macros from class SoBaseKit: SO_GET_PART(kit, partName, partClass)

SO_CHECK_PART(kit, partName, partClass)

DESCRIPTION

SoTabBoxDragger is a composite dragger shaped like a box. Inside it are six SoTabPlaneDraggers which the dragger positions and orients to form a cube. The operations available in an SoTabPlaneDragger (translation, 1D scaling and 2D scaling) are available on each face of the cube. Since they each move in their local space, the dragger may be easily translated or scaled in any direction. As a composite dragger, this class makes sure that when one plane is dragged, the entire box moves together. As each sub-dragger is moved, the SoTabBoxDragger updates its scaleFactor and translation fields. As with all draggers, if you change a field the dragger will move to match the new settings. Remember: This is not an SoTransform!. If you want to move other objects with this dragger, you can either: [a] Use an SoTabBoxManip, which is subclassed from SoTransform. It creates one of these draggers and uses it as the interface to change its fields. (see the SoTabBoxManip man page). [b] Use field-to-field connections to connect the fields of this dragger to those of any SoTransformation node. You can change the parts in any instance of this dragger using setPart(). The default part geometries are defined as resources for this SoTabBoxDragger class. They are detailed below in the Dragger Resources section of the online reference page for this class. You can make your program use different default resources for the parts by copying the file /usr/share/data/draggerDefaults/tabBoxDragger.iv into your own directory, editing the file, and then setting the environment variable SO_DRAGGER_DIR to be a path to that directory.

FIELDS

c } c } scaleFactor

Scale of the dragger. c } c } translation

Position of the dragger.

METHODS

c } c } SoTabBoxDragger()

Constructor. c } c } adjustScaleTabSize()

Cause the scale tab sizes to be re-adjusted on all 6 SoTabPlaneDraggers so that they remain a near constant screen space size. This happens automatically upon dragger finish. Call this to adjust the scale tab sizes at other times, for instance after the camera has changed in a viewer finish callback. c } c } getClassNodekitCatalog() const

Returns an SoNodekitCatalog for this class c } c } getClassTypeId()

Returns type identifier for this class.

CATALOG PARTS

box, tab(!); cb s s s lb lb lb lb lb lb lb lb l l l c. All parts !!!NULL by Part Name!Part Type!Default Type!Default

callbackList!NodeKitListPart!--!yes surroundScale!SurroundScale!--!yes tabPlane1!TabPlaneDragger!--!yes tabPlane2!TabPlaneDragger!--!yes tabPlane3!TabPlaneDragger!--!yes tabPlane4!TabPlaneDragger!--!yes tabPlane5!TabPlaneDragger!--!yes tabPlane6!TabPlaneDragger!--!yes boxGeom!Separator!--!yes

box, tab(!); cb s s lb lb lbw(3) l l l. Extra information for list parts from above table Part Name!Container Type!Permissible Types

callbackList!Separator!T{ Callback, EventCallback T}

DRAGGER RESOURCES

.in 0n+.5i Resource: tabBoxTranslator

.in 0n+.5i Parts: tabPlane1.translator

tabPlane2.translator

tabPlane3.translator

tabPlane4.translator

tabPlane5.translator

tabPlane6.translator

Appearance: Outline of a Square. The region within is pickable

Description: Begins translation within the plane. The tabBox places and orients each tabPlane so that these squares form a box. .in 0n+.5i Resource: tabBoxScaleTabMaterial

.in 0n+.5i Parts: tabPlane1.scaleTabMaterial

tabPlane2.scaleTabMaterial

tabPlane3.scaleTabMaterial

tabPlane4.scaleTabMaterial

tabPlane5.scaleTabMaterial

tabPlane6.scaleTabMaterial

Appearance: Green - half diffuse, half emissive.

Description: Used as material for scaling tabs. .in 0n+.5i Resource: tabBoxScaleTabHints

.in 0n+.5i Parts: tabPlane1.scaleTabHints

tabPlane2.scaleTabHints

tabPlane3.scaleTabHints

tabPlane4.scaleTabHints

tabPlane5.scaleTabHints

tabPlane6.scaleTabHints

Appearance: shapeHints node:COUNTERCLOCKWISE/SOLID/CONVEX

Description: Property for the tab nodes. .in 0n+.5i Resource: tabBoxBoxGeom

.in 0n+.5i Part: boxGeom

Appearance: Unpickable grey outline of a box.

Description: Just feedback..

FILE FORMAT/DEFAULTS

TabBoxDragger {
renderCaching	AUTO
boundingBoxCaching	AUTO
renderCulling	AUTO
pickCulling	AUTO
isActive	FALSE
translation	0 0 0
scaleFactor	1 1 1
callbackList	NULL
surroundScale	NULL
tabPlane1	TabPlaneDragger {
}

tabPlane2 TabPlaneDragger { }

tabPlane3 TabPlaneDragger { }

tabPlane4 TabPlaneDragger { }

tabPlane5 TabPlaneDragger { }

tabPlane6 TabPlaneDragger { }

boxGeom <tabBoxBoxGeom resource> tabPlane1.translator <tabBoxTranslator resource> tabPlane2.translator <tabBoxTranslator resource> tabPlane3.translator <tabBoxTranslator resource> tabPlane4.translator <tabBoxTranslator resource> tabPlane5.translator <tabBoxTranslator resource> tabPlane6.translator <tabBoxTranslator resource> tabPlane1.scaleTabMaterial <tabBoxScaleTabMaterial resource> tabPlane2.scaleTabMaterial <tabBoxScaleTabMaterial resource> tabPlane3.scaleTabMaterial <tabBoxScaleTabMaterial resource> tabPlane4.scaleTabMaterial <tabBoxScaleTabMaterial resource> tabPlane5.scaleTabMaterial <tabBoxScaleTabMaterial resource> tabPlane6.scaleTabMaterial <tabBoxScaleTabMaterial resource> tabPlane1.scaleTabHints <tabBoxScaleTabHints resource> tabPlane2.scaleTabHints <tabBoxScaleTabHints resource> tabPlane3.scaleTabHints <tabBoxScaleTabHints resource> tabPlane4.scaleTabHints <tabBoxScaleTabHints resource> tabPlane5.scaleTabHints <tabBoxScaleTabHints resource> tabPlane6.scaleTabHints <tabBoxScaleTabHints resource> }

SEE ALSO

SoInteractionKit, SoDragger, SoCenterballDragger, SoDirectionalLightDragger, SoDragPointDragger, SoHandleBoxDragger, SoJackDragger, SoPointLightDragger, SoRotateCylindricalDragger, SoRotateDiscDragger, SoRotateSphericalDragger, SoScale1Dragger, SoScale2Dragger, SoScale2UniformDragger, SoScaleUniformDragger, SoSpotLightDragger, SoTabPlaneDragger, SoTrackballDragger, SoTransformBoxDragger, SoTransformerDragger, SoTranslate1Dragger, SoTranslate2Dragger