#include <Inventor/draggers/SoCenterballDragger.h>
Inheritance diagram for SoCenterballDragger:
Public Member Functions | |
SoCenterballDragger (void) | |
virtual void | saveStartParameters (void) |
Static Public Member Functions | |
void | initClass (void) |
Public Attributes | |
SoSFRotation | rotation |
SoSFVec3f | center |
Protected Member Functions | |
~SoCenterballDragger () | |
void | transferCenterDraggerMotion (SoDragger *childdragger) |
void | setSwitches (SoDragger *activechild) |
virtual SbBool | setUpConnections (SbBool onoff, SbBool doitalways=FALSE) |
virtual void | setDefaultOnNonWritingFields (void) |
virtual void | getBoundingBox (SoGetBoundingBoxAction *action) |
virtual void | getMatrix (SoGetMatrixAction *action) |
Static Protected Member Functions | |
void | fieldSensorCB (void *f, SoSensor *s) |
void | valueChangedCB (void *f, SoDragger *d) |
void | kidStartCB (void *f, SoDragger *d) |
void | kidFinishCB (void *f, SoDragger *d) |
Protected Attributes | |
SoFieldSensor * | rotFieldSensor |
SoFieldSensor * | centerFieldSensor |
Here's how the dragger looks with it's default geometry in the inactive state:
For rotation, click either the ball "bands" to constrain rotation to happen around the normal vector of the disc, or anywhere else on the (invisible) ball for free-form rotation.
Translation is done by clicking and dragging any of the four arrow markers. Hold SHIFT
to constrain translation to a single axis instead of in the plane.
When translating, instead of modifying the translation part of the motion matrix, a center field is updated, and the geometry is moved using an internal transformation node.
|
Default constructor, sets up the dragger nodekit catalog with the interaction and feedback geometry. Node kit structure (new entries versus parent class marked with arrow prefix):
(See SoBaseKit::printDiagram() for information about the output formatting.) Detailed information on catalog parts:
(See SoBaseKit::printTable() for information about the output formatting.) |
|
Protected destructor. (Dragger classes are derived from SoBase, so they are reference counted and automatically destroyed when their reference count goes to 0.) |
|
Initializes type system for this dragger class. Application programmers should usually not have to invoke this method, see documentation of SoInteraction::init(). Reimplemented from SoDragger. |
|
This is invoked to save start parameters, to enable draggers to calculate relative motion. Default method in superclass SoDragger just saves the motion matrix, but subclasses should overload this method if other data needs to be saved. Reimplemented from SoDragger. |
|
Should be called after motion matrix has been updated by a child dragger. |
|
Sets values for the internal SoSwitch parts. If activechild == |
|
Sets up all internal connections for instances of this class. (This method will usually not be of interest to the application programmer, unless you want to extend the library with new custom nodekits or dragger classes. If so, see the SoBaseKit class documentation.) Reimplemented from SoInteractionKit. |
|
(Be aware that this method is unlikely to be of interest to the application programmer who does not want to extend the library with new custom nodekits or draggers. If you indeed are writing extensions, see the information in the SoBaseKit class documentation.)
A virtual method that should call SoField::setDefault() with argument This is typically done when:
Subclasses should usually override this to do additional settings for new member fields. From the subclass, do remember to call "upwards" to your superclass' setDefaultOnNonWritingFields() method. Reimplemented from SoDragger. |
|
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer. Reimplemented from SoInteractionKit. |
|
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer. |
|
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer. Needed to activate some feedback. |
|
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer. Needed to deactive some feedback. |
|
Action method for the SoGetBoundingBoxAction. Calculates bounding box and center coordinates for node and modifies the values of the action to encompass the bounding box for this node and to shift the center point for the scene more towards the one for this node. Nodes influencing how geometry nodes calculates their bounding box also overrides this method to change the relevant state variables. Reimplemented from SoDragger. |
|
Action method for SoGetMatrixAction. Updates action by accumulating with the transformation matrix of this node (if any). Reimplemented from SoDragger. |
|
This field is continuously updated to contain the rotation of the ball. |
|
Continuously updated to contain the current translation from the dragger's internal local origo position. |
|
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer. |
|
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer. |