Object you can scale in two dimensions by dragging with the mouse. More...
#include <Inventor/draggers/SoScale2Dragger.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
virtual const SoNodekitCatalog * | getNodekitCatalog () const |
SoScale2Dragger () | |
Static Public Member Functions | |
static SoType | getClassTypeId () |
static const SoNodekitCatalog * | getClassNodekitCatalog () |
Public Attributes | |
SoSFVec3f | scaleFactor |
Object you can scale in two dimensions by dragging with the mouse.
SoScale2Dragger is a simple dragger that scales freely and independently in two dimensions when dragged with the mouse. It moves within the x-y plane of its local space, as determined by its location in the scene graph. Transformation nodes placed before it will affect both the dragger and the plane of motion.
This node has a scaleFactor field which always reflects its size in local space. If you set the field, the dragger will change accordingly. You can also connect fields of other nodes or engines from this one to make them follow the dragger's motion.
This dragger contains four parts, scaler , scalerActive , feedback , and feedbackActive .
Each of these is set by default from a resource described in the Dragger Resources section of the online reference page for this class. You can change the parts in any instance of this dragger using setPart().
You can make your program use different default resources for the parts by copying the file $OIVHOME/data/draggerDefaults/scale2Dragger.iv into your own directory, editing the file, and then setting the environment variable SO_DRAGGER_DIR to be a path to that directory.
See SoDragger for more information about using and customizing draggers, including code examples, using draggers in an immersive VR environment and using WYSIWYG draggers.
renderCaching | AUTO |
boundingBoxCaching | AUTO |
renderCulling | AUTO |
pickCulling | AUTO |
isActive | FALSE |
scaleFactor | 1 1 1 |
callbackList | NULL |
scaler | <scale2Scaler resource> |
scalerActive | <scale2ScalerActive resource> |
feedback | <scale2Feedback resource> |
feedbackActive | <scale2FeedbackActive resource> |
Resource: | scale2Scaler |
Part: | scaler |
Appearance: | white photo-corners at corners of 2-by-2 square in plane of motion |
Description: | picking this initiates the scaling |
Resource: | scale2ScalerActive |
Part: | scalerActive |
Appearance: | yellow version of scaler, but with an extra yellow box |
Description: | displayed instead of scaler while in motion |
Resource: | scale2Feedback |
Part: | feedback |
Appearance: | thin purple 3-D crosshair |
Description: | shows center of scale when still |
Resource: | scale2FeedbackActive |
Part: | feedbackActive |
Appearance: | thin, slightly brighter purple 3-D crosshair |
Description: | shows center of scale while in motion |
Part Name | Part Type | Default Type | NULL Default |
callbackList | NodeKitListPart | -- | yes |
scaler | Separator | -- | yes |
scalerActive | Separator | -- | yes |
feedback | Separator | -- | yes |
feedbackActive | Separator | -- | yes |
Extra Information for List Parts from Above Table
Part Name | Container Type | Possible Types |
callbackList | Separator | Callback, EventCallback |
SoInteractionKit, SoDragger, SoCenterballDragger, SoDirectionalLightDragger, SoDragPointDragger, SoHandleBoxDragger, SoJackDragger, SoPointLightDragger, SoRotateCylindricalDragger, SoRotateDiscDragger, SoRotateSphericalDragger, SoScale1Dragger, SoScale2UniformDragger, SoScaleUniformDragger, SoSpotLightDragger, SoTabBoxDragger, SoTabPlaneDragger, SoTrackballDragger, SoTransformBoxDragger, SoTransformerDragger, SoTranslate1Dragger, SoTranslate2Dragger
SoScale2Dragger::SoScale2Dragger | ( | ) |
Constructor.
static const SoNodekitCatalog* SoScale2Dragger::getClassNodekitCatalog | ( | ) | [static] |
Returns the SoNodekitCatalog for this class.
Reimplemented from SoDragger.
static SoType SoScale2Dragger::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoDragger.
virtual const SoNodekitCatalog* SoScale2Dragger::getNodekitCatalog | ( | ) | const [virtual] |
Returns the SoNodekitCatalog for this instance.
Reimplemented from SoDragger.
virtual SoType SoScale2Dragger::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from SoDragger.
Scale factor affecting the dragger.