table of contents
other sections
SoTrackballDragger(3IV)() | SoTrackballDragger(3IV)() |
NAME¶
SoTrackballDragger — striped ball you can rotate or scale uniformly by dragging with the mouseINHERITS FROM¶
SoBase > SoFieldContainer > SoNode > SoBaseKit > SoInteractionKit > SoDragger > SoTrackballDraggerSYNOPSIS¶
#include <Inventor/draggers/SoTrackballDragger.h>Fields from class SoTrackballDragger:
SoSFVec3f scaleFactor
SoSFRotation rotation
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 SoTrackballDragger:
SoTrackballDragger()
SbBool isAnimationEnabled()
void setAnimationEnabled(SbBool newVal)
static const SoNodekitCatalog * getClassNodekitCatalog () const
static SoType getClassTypeId()
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¶
SoTrackballDragger is a ball wrapped in three circular stripes. The stripes are oriented like wheels that spin around the x, y, and z axes. Drag the stripes to rotate the trackball around those axes. You do not have to hit the lines; pick anywhere within the stripe's outline. To rotate the trackball freely in 3 dimensions, click the area between the stripes and then drag. An invisible but pickable sphere initiates this dragging. If the mouse is still moving when you release it, the trackball will continue to spin.FIELDS¶
SoSFVec3f scaleFactor
Scale of the dragger.
SoSFRotation rotation
Orientation of the dragger.
METHODS¶
SoTrackballDragger()
Constructor.
SbBool isAnimationEnabled()
void setAnimationEnabled(SbBool newVal)
If the mouse is moving while you release it, the trackball will continue to spin afterwards. These two methods will query and set whether this feature is turned on or off. By default, the animation feature is turned on.
static const SoNodekitCatalog * getClassNodekitCatalog () const
Returns an SoNodekitCatalog for this class
static SoType getClassTypeId()
Returns type identifier for this class.
CATALOG PARTS¶
All parts | |||
NULL by | |||
Part Name | Part Type | Default Type | Default |
callbackList | NodeKitListPart | -- | yes |
surroundScale | SurroundScale | -- | yes |
antiSquish | AntiSquish | -- | no |
rotator | Separator | -- | yes |
rotatorActive | Separator | -- | yes |
XRotator | Separator | -- | yes |
XRotatorActive | Separator | -- | yes |
YRotator | Separator | -- | yes |
YRotatorActive | Separator | -- | yes |
ZRotator | Separator | -- | yes |
ZRotatorActive | Separator | -- | yes |
userAxis | Separator | -- | yes |
userAxisActive | Separator | -- | yes |
userRotator | Separator | -- | yes |
userRotatorActive | 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: trackballRotatorAppearance: Invisible but pickable sphere
Description: Initiates unconstrained 3D rotation. Slightly smaller radius than the stripes, so you must pick between the stripes to use it.
Appearance: Invisible sphere
Description: Displayed during unconstrained 3D rotation.
Appearance: White outline of a stripe aligned with the X axis.
Description: Pick this to initiate constrained rotation about the X axis.
Appearance: Yellow version of the regular XRotator
Description: Displayed during constrained rotation about the X axis.
Appearance: White outline of a stripe aligned with the Y axis.
Description: Pick this to initiate constrained rotation about the Y axis.
Appearance: Yellow version of the regular YRotator
Description: Displayed during constrained rotation about the Y axis.
Appearance: White outline of a stripe aligned with the Z axis.
Description: Pick this to initiate constrained rotation about the Z axis.
Appearance: Yellow version of the regular ZRotator
Description: Displayed during constrained rotation about the Z axis.
Appearance: Thin purple line
Description: Displays the user axis. Dragging the userRotator rotates about this line.
Appearance: Thin purple line
Description: Displays the user axis. Dragging the userRotator rotates about this line.
Appearance: Transparent green stripe circling the user axis.
Description: Pick to initiate constrained rotation about the user axis.
Appearance: Brighter green version of the regular userRotator
Description: Displayed during constrained rotation about the user axis.
FILE FORMAT/DEFAULTS¶
TrackballDragger {
renderCaching AUTO boundingBoxCaching AUTO renderCulling AUTO pickCulling AUTO isActive FALSE rotation 0 0 1 0 scaleFactor 1 1 1 callbackList NULL surroundScale NULL antiSquish AntiSquish { sizing LONGEST_DIAGONAL } rotator <trackballRotator resource> rotatorActive <trackballRotatorActive resource> XRotator <trackballXRotator resource> XRotatorActive <trackballXRotatorActive resource> YRotator <trackballYRotator resource> YRotatorActive <trackballYRotatorActive resource> ZRotator <trackballZRotator resource> ZRotatorActive <trackballZRotatorActive resource> userAxis <trackballUserAxis resource> userAxisActive <trackballUserAxisActive resource> userRotator <trackballUserRotator resource> userRotatorActive <trackballUserRotatorActive resource>
}