table of contents
other sections
| SoTransformerDragger(3IV)() | SoTransformerDragger(3IV)() |
NAME¶
SoTransformerDragger — box-like object you scale, rotate, and translate by dragging with the mouseINHERITS FROM¶
SoBase > SoFieldContainer > SoNode > SoBaseKit > SoInteractionKit > SoDragger > SoTransformerDraggerSYNOPSIS¶
#include <Inventor/draggers/SoTransformerDragger.h>Fields from class SoTransformerDragger:
SoSFRotation rotation
SoSFVec3f translation
SoSFVec3f scaleFactor
SoSFFloat minDiscRotDot
Fields from class SoDragger:
SoSFBool isActive
Fields from class SoInteractionKit:
SoSFEnum renderCaching
SoSFEnum boundingBoxCaching
SoSFEnum renderCulling
SoSFEnum pickCulling
Parts from class SoBaseKit:
(SoNodeKitListPart) callbackList
Methods from class SoTransformerDragger:
SoTransformerDragger()
static const SoNodekitCatalog * getClassNodekitCatalog () const
static SoType getClassTypeId()
static const SoNodekitCatalog * getClassNodekitCatalog () const
static SoType getClassTypeId()
void setColinearThreshold(int newVal )
int getColinearThreshold()
void setLocateHighlighting(SbBool onOff )
SbBool isLocateHighlighting()
void unsquishKnobs()
Methods from class SoDragger:
void addStartCallback(SoDraggerCB *f, void *userData = NULL)
void removeStartCallback(SoDraggerCB *f, void *userData = NULL)
void addMotionCallback(SoDraggerCB *f, void *userData = NULL)
void removeMotionCallback(SoDraggerCB *f, void *userData = NULL)
void addFinishCallback(SoDraggerCB *f, void *userData = NULL)
void removeFinishCallback(SoDraggerCB *f, void *userData = NULL)
void addValueChangedCallback(SoDraggerCB *f, void *userData = NULL)
void removeValueChangedCallback(SoDraggerCB *f, void *userData = NULL)
SbBool enableValueChangedCallbacks()
void setMinGesture(int pixels)
int getMinGesture() const
static void setMinScale(float newMinScale)
static float getMinScale()
Methods from class SoInteractionKit:
virtual SbBool setPartAsPath(const SbName &partName, SoPath *surrogatePath )
Methods from class SoBaseKit:
virtual const SoNodekitCatalog * getNodekitCatalog() const
virtual SoNode * getPart(const SbName &partName, SbBool makeIfNeeded)
SbString getPartString(const SoBase *part)
virtual SoNodeKitPath * createPathToPart(const SbName &partName, SbBool makeIfNeeded, const SoPath *pathToExtend = NULL)
virtual SbBool setPart(const SbName &partName, SoNode *newPart)
SbBool set(char *partName, char *parameters)
SbBool set(char *nameValuePairs)
static SbBool isSearchingChildren()
static void setSearchingChildren(SbBool newVal)
Methods from class SoNode:
void setOverride(SbBool state)
SbBool isOverride() const
SoNode * copy(SbBool copyConnections = FALSE) const
virtual SbBool affectsState() const
static SoNode * getByName(const SbName &name)
static int getByName(const SbName &name, SoNodeList &list)
Methods from class SoFieldContainer:
void setToDefaults()
SbBool hasDefaultValues() const
SbBool fieldsAreEqual(const SoFieldContainer *fc) const
void copyFieldValues(const SoFieldContainer *fc, SbBool copyConnections = FALSE)
void get(SbString &fieldDataString)
virtual int getFields(SoFieldList &resultList) const
virtual SoField * getField(const SbName &fieldName) const
SbBool getFieldName(const SoField *field, SbName &fieldName) const
SbBool isNotifyEnabled() const
SbBool enableNotify(SbBool flag)
Methods from class SoBase:
void ref()
void unref() const
void unrefNoDelete() const
void touch()
virtual SoType getTypeId() const
SbBool isOfType(SoType type) const
virtual void setName(const SbName &name)
virtual SbName getName() const
Macros from class SoBaseKit:
DESCRIPTION¶
SoTransformerDragger is a dragger shaped like a box. It has small cubes at the corners and small balls sticking out of the middle of each face. Click and drag any face of the box for 2D translation in the plane of that face. Drag any corner-cube to scale the box uniformly. Pick any of the mid-face balls to rotate the whole dragger about its center.FIELDS¶
SoSFRotation rotation
Orientation of the dragger.
SoSFVec3f translation
Position of the dragger.
SoSFVec3f scaleFactor
Scale of the dragger.
SoSFFloat minDiscRotDot
Specifies the minimum dot product between eyeDir and rotPlane normal before switching from record-player-type rotation to rolling-pin-type rotation. This transition is made so that rotations don't get screwy when the circle is edge-on. Lies in range [0-1]. Best to leave this alone.
METHODS¶
SoTransformerDragger()
Constructor.
static const SoNodekitCatalog * getClassNodekitCatalog () const
Returns an SoNodekitCatalog for this class
static SoType getClassTypeId()
Returns type identifier for this class.
static const SoNodekitCatalog * getClassNodekitCatalog () const
Returns an SoNodekitCatalog for this class
static SoType getClassTypeId()
Returns type identifier for this class.
void setColinearThreshold(int newVal )
int getColinearThreshold()
When picking a direction for constraining based on gesture, this paramater determines how many pixels must separate two axes before they are regarded as distinct. If they are deemed "the same" then the shorter of the two will be discarded.
void setLocateHighlighting(SbBool onOff )
SbBool isLocateHighlighting()
Controls whether or not locate highlighting is used. Default is TRUE.
void unsquishKnobs()
Tells the dragger to unsquish its rotation and scale knobs during the next traversal. Ordinarily, the knobs are only unsquished upon readin from file and when the mouse button is released at the end of a drag. If you want this to happen more often, then you should call this method.
CATALOG PARTS¶
| All parts | |||
| NULL by | |||
| Part Name | Part Type | Default Type | Default |
| callbackList | NodeKitListPart | -- | yes |
| surroundScale | SurroundScale | -- | yes |
| translator1 | Separator | -- | yes |
| translator1Active | Separator | -- | yes |
| translator2 | Separator | -- | yes |
| translator2Active | Separator | -- | yes |
| translator3 | Separator | -- | yes |
| translator3Active | Separator | -- | yes |
| translator4 | Separator | -- | yes |
| translator4Active | Separator | -- | yes |
| translator5 | Separator | -- | yes |
| translator5Active | Separator | -- | yes |
| translator6 | Separator | -- | yes |
| translator6Active | Separator | -- | yes |
| rotator1 | Separator | -- | yes |
| rotator1Active | Separator | -- | yes |
| rotator2 | Separator | -- | yes |
| rotator2Active | Separator | -- | yes |
| rotator3 | Separator | -- | yes |
| rotator3Active | Separator | -- | yes |
| rotator4 | Separator | -- | yes |
| rotator4Active | Separator | -- | yes |
| rotator5 | Separator | -- | yes |
| rotator5Active | Separator | -- | yes |
| rotator6 | Separator | -- | yes |
| rotator6Active | Separator | -- | yes |
| scale1 | Separator | -- | yes |
| scale1Active | Separator | -- | yes |
| scale2 | Separator | -- | yes |
| scale2Active | Separator | -- | yes |
| scale3 | Separator | -- | yes |
| scale3Active | Separator | -- | yes |
| scale4 | Separator | -- | yes |
| scale4Active | Separator | -- | yes |
| scale5 | Separator | -- | yes |
| scale5Active | Separator | -- | yes |
| scale6 | Separator | -- | yes |
| scale6Active | Separator | -- | yes |
| scale7 | Separator | -- | yes |
| scale7Active | Separator | -- | yes |
| scale8 | Separator | -- | yes |
| scale8Active | Separator | -- | yes |
| xAxisFeedbackActive | Separator | -- | yes |
| xAxisFeedbackSelect | Separator | -- | yes |
| xCrosshairFeedback | Separator | -- | yes |
| yAxisFeedbackActive | Separator | -- | yes |
| yAxisFeedbackSelect | Separator | -- | yes |
| yCrosshairFeedback | Separator | -- | yes |
| zAxisFeedbackActive | Separator | -- | yes |
| zAxisFeedbackSelect | Separator | -- | yes |
| zCrosshairFeedback | Separator | -- | yes |
| translateBoxFeedback | Separator | -- | yes |
| scaleBoxFeedback | Separator | -- | yes |
| posXWallFeedback | Separator | -- | yes |
| posXRoundWallFeedback | Separator | -- | yes |
| posYWallFeedback | Separator | -- | yes |
| posYRoundWallFeedback | Separator | -- | yes |
| posZWallFeedback | Separator | -- | yes |
| posZRoundWallFeedback | Separator | -- | yes |
| negXWallFeedback | Separator | -- | yes |
| negXRoundWallFeedback | Separator | -- | yes |
| negYWallFeedback | Separator | -- | yes |
| negYRoundWallFeedback | Separator | -- | yes |
| negZWallFeedback | Separator | -- | yes |
| negZRoundWallFeedback | Separator | -- | yes |
| radialFeedback | Separator | -- | yes |
| xCircleFeedback | Separator | -- | yes |
| yCircleFeedback | Separator | -- | yes |
| zCircleFeedback | Separator | -- | yes |
| Extra information for list parts from above table | ||
| Part Name | Container Type | Permissible Types |
| callbackList | Separator | Callback, EventCallback |
DRAGGER RESOURCES¶
.in 0n+.5i Resource: transformerLocateMaterialAppearance: Gold diffuse and emissive color
Description: Locate highlight color used for all parts.
Appearance: White Low-Complexity lines
Description: If nothing else specified, this is style of the part.
Appearance: White Line-Style Square
Description: Top face of transformer. Picking this initiates translation in x-z plane.
Appearance: White Line-Style Square
Description: Bottom face of transformer. Picking this initiates translation in x-z plane.
Appearance: White Line-Style Square
Description: Left face of transformer. Picking this initiates translation in y-z plane.
Appearance: White Line-Style Square
Description: Right face of transformer. Picking this initiates translation in y-z plane.
Appearance: White Line-Style Square
Description: Front face of transformer. Picking this initiates translation in x-y plane.
Appearance: White Line-Style Square
Description: Back face of transformer. Picking this initiates translation in x-y plane.
Appearance: Yellow version of transformerTranslator1
Description: Replaces transformerTranslator1 during dragging.
Appearance: Yellow version of transformerTranslator2
Description: Replaces transformerTranslator2 during dragging.
Appearance: Yellow version of transformerTranslator3
Description: Replaces transformerTranslator3 during dragging.
Appearance: Yellow version of transformerTranslator4
Description: Replaces transformerTranslator4 during dragging.
Appearance: Yellow version of transformerTranslator5
Description: Replaces transformerTranslator5 during dragging.
Appearance: Yellow version of transformerTranslator6
Description: Replaces transformerTranslator6 during dragging.
Appearance: Green Sphere at end of a stick
Description: Top knob of transformer. Picking this initiates rotation.
Appearance: Green Sphere at end of a stick
Description: Bottom knob of transformer. Picking this initiates rotation.
Appearance: Green Sphere at end of a stick
Description: Left knob of transformer. Picking this initiates rotation.
Appearance: Green Sphere at end of a stick
Description: Right knob of transformer. Picking this initiates rotation.
Appearance: Green Sphere at end of a stick
Description: Front knob of transformer. Picking this initiates rotation.
Appearance: Green Sphere at end of a stick
Description: Back knob of transformer. Picking this initiates rotation.
Appearance: Yellow version of transformerRotator1
Description: Replaces transformerRotator1 during dragging.
Appearance: Yellow version of transformerRotator2
Description: Replaces transformerRotator2 during dragging.
Appearance: Yellow version of transformerRotator3
Description: Replaces transformerRotator3 during dragging.
Appearance: Yellow version of transformerRotator4
Description: Replaces transformerRotator4 during dragging.
Appearance: Yellow version of transformerRotator5
Description: Replaces transformerRotator5 during dragging.
Appearance: Yellow version of transformerRotator6
Description: Replaces transformerRotator6 during dragging.
Appearance: Small white cube in (+x+y+z) corner of transformer
Description: Picking this initiates scaling.
Appearance: Small white cube in (+x+y-z) corner of transformer
Description: Picking this initiates scaling.
Appearance: Small white cube in (+x-y+z) corner of transformer
Description: Picking this initiates scaling.
Appearance: Small white cube in (+x-y-z) corner of transformer
Description: Picking this initiates scaling.
Appearance: Small white cube in (-x+y+z) corner of transformer
Description: Picking this initiates scaling.
Appearance: Small white cube in (-x+y-z) corner of transformer
Description: Picking this initiates scaling.
Appearance: Small white cube in (-x-y+z) corner of transformer
Description: Picking this initiates scaling.
Appearance: Small white cube in (-x-y-z) corner of transformer
Description: Picking this initiates scaling.
Appearance: Yellow version of transformerScale1Active
Description: Replaces transformerScale1Active during dragging.
Appearance: Yellow version of transformerScale2Active
Description: Replaces transformerScale2Active during dragging.
Appearance: Yellow version of transformerScale3Active
Description: Replaces transformerScale3Active during dragging.
Appearance: Yellow version of transformerScale4Active
Description: Replaces transformerScale4Active during dragging.
Appearance: Yellow version of transformerScale5Active
Description: Replaces transformerScale5Active during dragging.
Appearance: Yellow version of transformerScale6Active
Description: Replaces transformerScale6Active during dragging.
Appearance: Yellow version of transformerScale7Active
Description: Replaces transformerScale7Active during dragging.
Appearance: Yellow version of transformerScale8Active
Description: Replaces transformerScale8Active during dragging.
Appearance: Yellow arrow along X axis
Description: Displayed when translating if X direction is permitted.
Appearance: Orange arrow along X axis
Description: Displayed when awaiting gesture to pick between X axis and another direction(s).
Appearance: Yellow arrow along Y axis
Description: Displayed when translating if Y direction is permitted.
Appearance: Orange arrow along Y axis
Description: Displayed when awaiting gesture to pick between Y axis and another direction(s).
Appearance: Yellow arrow along Z axis
Description: Displayed when translating if Z direction is permitted.
Appearance: Orange arrow along Z axis
Description: Displayed when awaiting gesture to pick between Z axis and another direction(s).
Appearance: Yellow crossHair in y-z plane
Description: Displayed when translating perpendicular to y-z plane.
Appearance: Yellow crossHair in x-z plane
Description: Displayed when translating perpendicular to x-z plane.
Appearance: Yellow crossHair in x-y plane
Description: Displayed when translating perpendicular to x-y plane.
Appearance: Purple Unit Circle about X axis
Description: Displayed when rotating about X axis
Appearance: Purple Unit Circle about Y axis
Description: Displayed when rotating about Y axis
Appearance: Purple Unit Circle about Z axis
Description: Displayed when rotating about Z axis
Appearance: Purple Rays emanating from center through corners
Description: Displayed when scaling uniformly about center.
Appearance: Purple Box with one bright yellow side
Description: Displayed when translating. Automatically oriented so yellow side matches selected face.
Appearance: Purple Plane along Right side of transformer
Description: Displayed when <Control> scaling and keeping right side fixed.
Appearance: Purple Plane along Top side of transformer
Description: Displayed when <Control> scaling and keeping top side fixed.
Appearance: Purple Plane along Front side of transformer
Description: Displayed when <Control> scaling and keeping front side fixed.
Appearance: Purple Plane along Left side of transformer
Description: Displayed when <Control> scaling and keeping left side fixed.
Appearance: Purple Plane along Bottom side of transformer
Description: Displayed when <Control> scaling and keeping bottom side fixed.
Appearance: Purple Plane along Back side of transformer
Description: Displayed when <Control> scaling and keeping back side fixed.
FILE FORMAT/DEFAULTS¶
TransformerDragger {
renderCaching AUTO
boundingBoxCaching AUTO
renderCulling AUTO
pickCulling AUTO
isActive FALSE
translation 0 0 0
scaleFactor 1 1 1
rotation 0 0 1 0
minDiscRotDot 0.025
callbackList NULL
surroundScale NULL
translator1 <transformerTranslator1 resource>
translator1Active <transformerTranslator1Active resource>
translator2 <transformerTranslator2 resource>
translator2Active <transformerTranslator2Active resource>
translator3 <transformerTranslator3 resource>
translator3Active <transformerTranslator3Active resource>
translator4 <transformerTranslator4 resource>
translator4Active <transformerTranslator4Active resource>
translator5 <transformerTranslator5 resource>
translator5Active <transformerTranslator5Active resource>
translator6 <transformerTranslator6 resource>
translator6Active <transformerTranslator6Active resource>
rotator1 <transformerRotator1 resource>
rotator1Active <transformerRotator1Active resource>
rotator2 <transformerRotator2 resource>
rotator2Active <transformerRotator2Active resource>
rotator3 <transformerRotator3 resource>
rotator3Active <transformerRotator3Active resource>
rotator4 <transformerRotator4 resource>
rotator4Active <transformerRotator4Active resource>
rotator5 <transformerRotator5 resource>
rotator5Active <transformerRotator5Active resource>
rotator6 <transformerRotator6 resource>
rotator6Active <transformerRotator6Active resource>
scale1 <transformerScale1 resource>
scale1Active <transformerScale1Active resource>
scale2 <transformerScale2 resource>
scale2Active <transformerScale2Active resource>
scale3 <transformerScale3 resource>
scale3Active <transformerScale3Active resource>
scale4 <transformerScale4 resource>
scale4Active <transformerScale4Active resource>
scale5 <transformerScale5 resource>
scale5Active <transformerScale5Active resource>
scale6 <transformerScale6 resource>
scale6Active <transformerScale6Active resource>
scale7 <transformerScale7 resource>
scale7Active <transformerScale7Active resource>
scale8 <transformerScale8 resource>
scale8Active <transformerScale8Active resource>
xAxisFeedbackActive <transformerXAxisFeedbackActive resource>
xAxisFeedbackSelect <transformerXAxisFeedbackSelect resource>
xCrosshairFeedback <transformerXCrosshairFeedback resource>
yAxisFeedbackActive <transformerYAxisFeedbackActive resource>
yAxisFeedbackSelect <transformerYAxisFeedbackSelect resource>
yCrosshairFeedback <transformerYCrosshairFeedback resource>
zAxisFeedbackActive <transformerZAxisFeedbackActive resource>
zAxisFeedbackSelect <transformerZAxisFeedbackSelect resource>
zCrosshairFeedback <transformerZCrosshairFeedback resource>
translateBoxFeedback <transformerTranslateBoxFeedback resource>
scaleBoxFeedback <transformerScaleBoxFeedback resource>
posXWallFeedback <transformerPosXWallFeedback resource>
posXRoundWallFeedback <transformerPosXRoundWallFeedback resource>
posYWallFeedback <transformerPosYWallFeedback resource>
posYRoundWallFeedback <transformerPosYRoundWallFeedback resource>
posZWallFeedback <transformerPosZWallFeedback resource>
posZRoundWallFeedback <transformerPosZRoundWallFeedback resource>
negXWallFeedback <transformerNegXWallFeedback resource>
negXRoundWallFeedback <transformerNegXRoundWallFeedback resource>
negYWallFeedback <transformerNegYWallFeedback resource>
negYRoundWallFeedback <transformerNegYRoundWallFeedback resource>
negZWallFeedback <transformerNegZWallFeedback resource>
negZRoundWallFeedback <transformerNegZRoundWallFeedback resource>
radialFeedback <transformerRadialFeedback resource>
xCircleFeedback <transformerXCircleFeedback resource>
yCircleFeedback <transformerYCircleFeedback resource>
zCircleFeedback <transformerZCircleFeedback resource>
none <transformerLocateMaterial resource>
}