SoScale2UniformDragger(3IV)NAMESoScale2UniformDragger (SoScale2UniDrag) - object you can scale uniformly
in two dimensions by dragging with the mouse
INHERITS FROM
SoBase > SoFieldContainer > SoNode > SoBaseKit > SoInteractionKit >
SoDragger > SoScale2UniformDraggerSYNOPSIS
#include <Inventor_c/draggers/SoScale2UniformDragger.h>
typedef SoScale2UniformDragger
SoScale2UniDrag
Fields from class SoScale2UniformDragger:
SoSFVec3f scaleFactor
Fields from class SoDragger:
SoSFBool isActive
Fields from class SoInteractionKit:
SoSFEnum renderCaching
SoSFEnum boundingBoxCaching
SoSFEnum renderCulling
SoSFEnum pickCulling
Parts from class SoBaseKit:
(SoNodeKitListPart) callbackList
Functions from class SoScale2UniformDragger:
SoScale2UniformDragger * SoScale2UniDragCreate()
const SoNodekitCatalog * SoScale2UniDragGetClassNkitCat()
SoType SoScale2UniDragGetClassTypeId()
Functions from class SoDragger:
void SoScale2UniDragAddStartCB(SoScale2UniDrag *this,
SoDraggerCB *f, void *userData = NULL)
void SoScale2UniDragRemoveStartCB(SoScale2UniDrag *this,
SoDraggerCB *f, void *userData = NULL)
void SoScale2UniDragAddMotionCB(SoScale2UniDrag *this,
SoDraggerCB *f, void *userData = NULL)
void SoScale2UniDragRemoveMotionCB(SoScale2UniDrag *this,
SoDraggerCB *f, void *userData = NULL)
void SoScale2UniDragAddFinishCB(SoScale2UniDrag *this,
SoDraggerCB *f, void *userData = NULL)
Page 1SoScale2UniformDragger(3IV)
void SoScale2UniDragRemoveFinishCB(SoScale2UniDrag *this,
SoDraggerCB *f, void *userData = NULL)
void SoScale2UniDragAddValueChangedCB(SoScale2UniDrag
*this, SoDraggerCB *f, void *userData = NULL)
void SoScale2UniDragRemoveValueChangedCB(SoScale2UniDrag
*this, SoDraggerCB *f, void *userData = NULL)
SbBool SoScale2UniDragEnableValueChangedCBs(SoScale2UniDrag
*this)
void SoScale2UniDragSetMinGesture(SoScale2UniDrag *this,
int pixels)
int SoScale2UniDragGetMinGesture(const SoScale2UniDrag
*this)
void SoScale2UniDragSetMinScale(float newMinScale)
float SoScale2UniDragGetMinScale()
Functions from class SoInteractionKit:
SbBool SoScale2UniDragSetPartAsPath(SoScale2UniDrag *this,
const char *partName, SoPath *surrogatePath )
Functions from class SoBaseKit:
const SoNodekitCatalog * SoScale2UniDragGetCat(const SoScale2UniDrag
*this)
SoNode * SoScale2UniDragGetPart(SoScale2UniDrag *this,
const char *partName, SbBool makeIfNeeded)
SbString SoScale2UniDragGetPartString(SoScale2UniDrag
*this, const SoBase *part)
SoNodeKitPath * SoScale2UniDragCreatePathToPart(SoScale2UniDrag
*this, const char *partName, SbBool
makeIfNeeded, const SoPath *pathToExtend =
NULL)
SbBool SoScale2UniDragSetPart(SoScale2UniDrag *this,
const char *partName, SoNode *newPart)
SbBool SoScale2UniDragSet(SoScale2UniDrag *this, char
*partName, char *parameters)
SbBool SoScale2UniDragSet2(SoScale2UniDrag *this, char
*nameValuePairs)
SbBool SoScale2UniDragIsSearchingChildren()
void SoScale2UniDragSetSearchingChildren(SbBool
newVal)
Functions from class SoNode:
void SoScale2UniDragSetOverride(SoScale2UniDrag *this,
SbBool state)
SbBool SoScale2UniDragIsOverride(const SoScale2UniDrag
*this)
SoNode * SoScale2UniDragCopy(const SoScale2UniDrag *this,
SbBool copyConnections = FALSE)
SbBool SoScale2UniDragAffectsState(const SoScale2UniDrag
*this)
Page 2SoScale2UniformDragger(3IV)
SoNode * SoScale2UniDragGetByName(const char *name)
int SoScale2UniDragGetByNameList(const char *name,
SoNodeList *list)
Functions from class SoFieldContainer:
void SoScale2UniDragSetToDflts(SoScale2UniDrag *this)
SbBool SoScale2UniDragHasDfltVals(const SoScale2UniDrag
*this)
SbBool SoScale2UniDragFldsAreEq(const SoScale2UniDrag *this,
const SoFieldContainer *fc)
void SoScale2UniDragCopyFieldVals(SoScale2UniDrag *this,
const SoFieldContainer *fc, SbBool
copyConnections = FALSE)
void SoScale2UniDragGet(SoScale2UniDrag *this, SbString
*fieldDataString)
int SoScale2UniDragGetFields(const SoScale2UniDrag *this,
SoFieldList *resultList)
SoField * SoScale2UniDragGetField(const SoScale2UniDrag *this,
const char *fieldName)
SbBool SoScale2UniDragGetFieldName(const SoScale2UniDrag
*this, const SoField *field, SbName *fieldName)
SbBool SoScale2UniDragIsNotifyEnabled(const SoScale2UniDrag
*this)
SbBool SoScale2UniDragEnableNotify(SoScale2UniDrag *this,
SbBool flag)
Functions from class SoBase:
void SoScale2UniDragRef(SoScale2UniDrag *this)
void SoScale2UniDragUnref(const SoScale2UniDrag *this)
void SoScale2UniDragUnrefNoDelete(const SoScale2UniDrag
*this)
void SoScale2UniDragTouch(SoScale2UniDrag *this)
SoType SoScale2UniDragGetTypeId(const SoScale2UniDrag *this)
SbBool SoScale2UniDragIsOfType(const SoScale2UniDrag *this,
SoType type)
void SoScale2UniDragSetName(SoScale2UniDrag *this, const
char *name)
SbName SoScale2UniDragGetName(const SoScale2UniDrag *this)
DESCRIPTIONSoScale2UniformDragger is a simple dragger that scales uniformly in the x
and y dimensions when dragged within the x-y plane with the mouse. The
local space is 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
Page 3SoScale2UniformDragger(3IV)
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
Resource section of the online reference page for this class. You can
change the parts in any instance of this dragger using
SoDraggerSetPart().
You can make your program use different default resources for the parts
by copying the file
/usr/share/data/draggerDefaults/scale2UniformDragger.iv into your own
directory, editing the file, and then setting the environment variable
SO_DRAGGER_DIR to be a path to that directory.
FIELDS
SoSFVec3f scaleFactor
Scale factor affecting the dragger.
FUNCTIONSSoScale2UniformDragger * SoScale2UniDragCreate()
Constructor.
const SoNodekitCatalog * SoScale2UniDragGetClassNkitCat()
Returns an SoNodekitCatalog for this class
SoType SoScale2UniDragGetClassTypeId()
Returns type identifier for this class.
CATALOG PARTS
___________________________________________________________
All parts
NULL by
Part Name Part Type Default Type Default
callbackList NodeKitListPart -- yes
scaler Separator -- yes
scalerActive Separator -- yes
feedback Separator -- yes
feedbackActive Separator -- yes
___________________________________________________________
|
|
Page 4SoScale2UniformDragger(3IV)
________________________________________________________________
Extra information for list parts from above table
Part Name Container Type Permissible Types
Callback, EventCallback
callbackList Separator
________________________________________________________________
|
|
DRAGGER RESOURCES
Resource: scale2UniformScaler
Part: scaler
Appearance: white outline of square with photo-corner shapes at
vertices. Lies within plane of motion
Description: picking this initiates the scaling
Resource: scale2UniformScalerActive
Part: scalerActive
Appearance: yellow version of scaler, but with an extra yellow
surrounding box
Description: displayed instead of scaler while in motion
Resource: scale2UniformFeedback
Part: feedback
Appearance: thin purple 3-D crosshair
Description: shows center of scale when still
Resource: scale2UniformFeedbackActive
Part: feedbackActive
Appearance: thin, slightly brighter purple 3-D crosshair
Description: shows center of scale while in motion
FILE FORMAT/DEFAULTS
Scale2UniformDragger {
renderCaching AUTO
boundingBoxCaching AUTO
renderCulling AUTO
pickCulling AUTO
isActive FALSE
scaleFactor 1 1 1
callbackList NULL
scaler <scale2UniformScaler resource>
scalerActive <scale2UniformScalerActive resource>
feedback <scale2UniformFeedback resource>
feedbackActive <scale2UniformFeedbackActive resource>
}
SEE ALSO
SoInteractionKit, SoDragger, SoCenterballDragger,
SoDirectionalLightDragger, SoDragPointDragger, SoHandleBoxDragger,
SoJackDragger, SoPointLightDragger, SoRotateCylindricalDragger,
SoRotateDiscDragger, SoRotateSphericalDragger, SoScale1Dragger,
Page 5SoScale2UniformDragger(3IV)
SoScale2Dragger, SoScaleUniformDragger, SoSpotLightDragger,
SoTabBoxDragger, SoTabPlaneDragger, SoTrackballDragger,
SoTransformBoxDragger, SoTransformerDragger, SoTranslate1Dragger,
SoTranslate2Dragger
Page 6