#include <Inventor/draggers/SoCenterballDragger.h>
Inheritance diagram for SoCenterballDragger::
Public Methods | |
SoCenterballDragger (void) | |
virtual void | saveStartParameters (void) |
Static Public Methods | |
void | initClass (void) |
Public Attributes | |
SoSFRotation | rotation |
SoSFVec3f | center |
Protected Methods | |
~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 Methods | |
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 |
For rotation, click either the ball "bands" to contraint 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. |
|
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::initClass(). 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:
Reimplemented from SoDragger. |
|
For internal use only. Reimplemented from SoInteractionKit. |
|
For internal use only. |
|
For internal use only. |
|
For internal use only. |
|
Overloaded to ignore dragger bounding box if SoDragger::isIgnoreInBbox() is 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. |
|
For internal use only. |
|
For internal use only. |