SoDirectionalLightDragger Class |
Directional icon you rotate and translate by dragging with the mouse.
Namespace: OIV.Inventor.Draggers
The SoDirectionalLightDragger type exposes the following members.
Name | Description | |
---|---|---|
![]() | SoDirectionalLightDragger | Constructor. |
Name | Description | |
---|---|---|
![]() | AddFinishCallback(SoDraggerFinishCB) | Obsolete.
Use FinishDragging event instead.
(Inherited from SoDragger.) |
![]() | AddFinishCallback(SoDraggerFinishUserDataCB, Object) | Obsolete.
Use FinishDragging event instead.
Adds finish delegate.
Finish delegates are made after dragging ends and the dragger has stopped
grabbing events.
(Inherited from SoDragger.) |
![]() | AddMotionCallback(SoDraggerMotionCB) | Obsolete.
Use MouseMove event instead.
(Inherited from SoDragger.) |
![]() | AddMotionCallback(SoDraggerMotionUserDataCB, Object) | Obsolete.
Use MouseMove event instead.
Adds motion delegate.
Motion delegates are called after each movement of the mouse during dragging.
(Inherited from SoDragger.) |
![]() | AddStartCallback(SoDraggerStartCB) | Obsolete.
Use StartDragging event instead.
(Inherited from SoDragger.) |
![]() | AddStartCallback(SoDraggerStartUserDataCB, Object) | Obsolete.
Use StartDragging event instead.
Adds start delegate.
Start delegates are made after the mouse button 1 goes down and the dragger
determines that it has been picked. If it is going to begin dragging, it grabs
events and invokes the startCallbacks.
(Inherited from SoDragger.) |
![]() | AddValueChangedCallback(SoDraggerValueChangedCB) | Obsolete.
Use ValueChanged event instead.
(Inherited from SoDragger.) |
![]() | AddValueChangedCallback(SoDraggerValueChangedUserDataCB, Object) | Obsolete.
Use ValueChanged event instead.
Adds value-changed delegate.
Value-changed delegates are made after a dragger changes any of its fields. This
does not include changes to the #isActive field. See also
EnableValueChangedCallbacks().
(Inherited from SoDragger.) |
![]() | AffectsState | Returns true if a node has an effect on the state during traversal. |
![]() | Callback | (Inherited from SoBaseKit.) |
![]() | CallCreatePathToAnyPart(String, Boolean) | Obsolete. Calls CallCreatePathToAnyPart(partName, makeIfNeeded, false, false, (OIV.Inventor.SoPath ^)nullptr). (Inherited from SoBaseKit.) |
![]() | CallCreatePathToAnyPart(String, Boolean, Boolean) | Obsolete. Calls CallCreatePathToAnyPart(partName, makeIfNeeded, leafCheck, false, (OIV.Inventor.SoPath ^)nullptr). (Inherited from SoBaseKit.) |
![]() | CallCreatePathToAnyPart(String, Boolean, Boolean, Boolean) | Obsolete. Calls CallCreatePathToAnyPart(partName, makeIfNeeded, leafCheck, publicCheck, (OIV.Inventor.SoPath ^)nullptr). (Inherited from SoBaseKit.) |
![]() | CallGetAnyPart(String, Boolean) | Obsolete. Calls CallGetAnyPart(partName, makeIfNeeded, false, false). (Inherited from SoBaseKit.) |
![]() | CallGetAnyPart(String, Boolean, Boolean) | Obsolete. Calls CallGetAnyPart(partName, makeIfNeeded, leafCheck, false). (Inherited from SoBaseKit.) |
![]() | CallSetUpConnections | Obsolete. Calls CallSetUpConnections(onOff, false). (Inherited from SoBaseKit.) |
![]() | ClearOtherEventCallbacks | (Inherited from SoDragger.) |
![]() | Copy | Calls Copy(false). (Inherited from SoNode.) |
![]() | Copy(Boolean) | Creates and returns an exact copy of the node. |
![]() | CopyFieldValues(SoFieldContainer) | Calls CopyFieldValues(fc, false). (Inherited from SoFieldContainer.) |
![]() | CopyFieldValues(SoFieldContainer, Boolean) | Copies the contents of fc's fields into this object's fields. |
![]() | CreatePathToAnyPart(String, Boolean) | Obsolete. Calls CreatePathToAnyPart(partName, makeIfNeeded, false, false, (OIV.Inventor.SoPath ^)nullptr). (Inherited from SoBaseKit.) |
![]() | CreatePathToAnyPart(String, Boolean, Boolean) | Obsolete. Calls CreatePathToAnyPart(partName, makeIfNeeded, leafCheck, false, (OIV.Inventor.SoPath ^)nullptr). (Inherited from SoBaseKit.) |
![]() | CreatePathToAnyPart(String, Boolean, Boolean, Boolean) | Obsolete. Calls CreatePathToAnyPart(partName, makeIfNeeded, leafCheck, publicCheck, (OIV.Inventor.SoPath ^)nullptr). (Inherited from SoBaseKit.) |
![]() | CreatePathToPart(String, Boolean) | Calls CreatePathToPart(partName, makeIfNeeded, (OIV.Inventor.SoPath ^)nullptr). (Inherited from SoBaseKit.) |
![]() | CreatePathToPart(String, Boolean, SoPath) | Returns a path that begins at this nodekit and ends at partName. |
![]() | CreatePathToThis | (Inherited from SoDragger.) |
![]() | Dispose |
Releases all resources used by SoDisposable.
(Inherited from SoDisposable.) |
![]() | Distribute | (Inherited from SoNode.) |
![]() | DoAction | (Inherited from SoBaseKit.) |
![]() | EnableNotify | Notification at this Field Container is enabled (if flag == true) or disabled (if flag == false). |
![]() | EnableValueChangedCallbacks | Obsolete.
Use EnableValueChangedEvent property instead.
(Inherited from SoDragger.) |
![]() | EnableValueChangedEvent | You can temporarily disable a dragger's valueChangedCallbacks. |
![]() | Equals | (Inherited from Object.) |
![]() | FieldsAreEqual | Returns true if this object's fields are exactly equal to fc's fields. |
![]() | Get | Returns the values of the fields of this object in the Open Inventor ASCII file format in the given string. |
![]() | GetAllFields | Returns a list of fields, including the eventIn's and eventOut's. |
![]() | GetAlternateRep | This method is called by actions to allow the node to provide an "alternate representation" when appropriate (typically depending on the action type). |
![]() | GetAnyPart(String, Boolean) | Obsolete. Calls GetAnyPart(partName, makeIfNeeded, false, false). (Inherited from SoBaseKit.) |
![]() | GetAnyPart(String, Boolean, Boolean) | Obsolete. Calls GetAnyPart(partName, makeIfNeeded, leafCheck, false). (Inherited from SoBaseKit.) |
![]() | GetBoundingBox | (Inherited from SoBaseKit.) |
![]() ![]() | GetClassNodekitCatalog | Returns the SoNodekitCatalog for this class. |
![]() | GetContainerNode | Obsolete. Calls GetContainerNode(listName, true). (Inherited from SoBaseKit.) |
![]() | GetEvent | (Inherited from SoDragger.) |
![]() | GetEventIn | Returns a the eventIn with the given name. |
![]() | GetEventOut | Returns the eventOut with the given name. |
![]() | GetField | Returns a the field of this object whose name is fieldName. |
![]() | GetFieldName | Returns the name of the given field in the fieldName argument. |
![]() | GetFields | Appends references to all of this object's fields to resultList, and returns the number of fields appended. |
![]() | GetHandleEventAction | (Inherited from SoDragger.) |
![]() | GetHashCode |
Overrides GetHashCode().
(Inherited from SoNetBase.) |
![]() | GetLocalStartingPoint | (Inherited from SoDragger.) |
![]() | GetLocalToWorldMatrix | Calls GetLocalToWorldMatrix((OIV.Inventor.Actions.SoAction ^)nullptr). (Inherited from SoDragger.) |
![]() | GetLocalToWorldMatrix(SoAction) | (Inherited from SoDragger.) |
![]() | GetMatrix | (Inherited from SoBaseKit.) |
![]() | GetMinGesture | Gets the number of pixels of movement required to initiate a constraint gesture. |
![]() | GetMinGestureFloat | Float version of getMinGesture. |
![]() | GetMotionMatrix | Get the motion matrix. |
![]() | GetName | Returns the name of an instance. |
![]() | GetNodekitCatalog | Returns the SoNodekitCatalog for this instance of SoBaseKit. |
![]() | GetPart | Searches the nodekit catalog (and those of all nested nodekits) for the part named partName. |
![]() | GetPartString | Given a node or a path to a node, checks if the part exists in the nodekit, in a nested nodekit, or an element of a list part. |
![]() | GetPartToLocalMatrix | (Inherited from SoDragger.) |
![]() | GetPickPath | (Inherited from SoDragger.) |
![]() | GetPrimitiveCount | (Inherited from SoBaseKit.) |
![]() | GetRenderUnitID | (Inherited from SoNode.) |
![]() | GetStartMotionMatrix | (Inherited from SoDragger.) |
![]() | GetStringName | (Inherited from SoBase.) |
![]() | GetSurrogatePartPickedName | (Inherited from SoDragger.) |
![]() | GetSurrogatePartPickedOwner | (Inherited from SoDragger.) |
![]() | GetSurrogatePartPickedPath | (Inherited from SoDragger.) |
![]() | GetTrackerDirectMode | Get the current tracker direct mode for this dragger. |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | GetViewportIsEnabled | (Inherited from SoBaseKit.) |
![]() | GetViewportOrigin | (Inherited from SoBaseKit.) |
![]() | GetViewportRegion | Obsolete. Obsoletesince Open Inventor 9300 No more used. |
![]() | GetViewportSize | (Inherited from SoBaseKit.) |
![]() | GetViewVolume | Obsolete. Dragger must not store information related to viewer settings. |
![]() | GetWorldStartingPoint | (Inherited from SoDragger.) |
![]() | GetWorldToLocalMatrix | Calls GetWorldToLocalMatrix((OIV.Inventor.Actions.SoAction ^)nullptr). (Inherited from SoDragger.) |
![]() | GetWorldToLocalMatrix(SoAction) | (Inherited from SoDragger.) |
![]() | GLRender | (Inherited from SoBaseKit.) |
![]() | GLRenderBelowPath | (Inherited from SoNode.) |
![]() | GLRenderInPath | (Inherited from SoNode.) |
![]() | GLRenderOffPath | (Inherited from SoNode.) |
![]() | GrabEventsCleanup | (Inherited from SoNode.) |
![]() | GrabEventsSetup | (Inherited from SoNode.) |
![]() | HandleEvent | (Inherited from SoBaseKit.) |
![]() | HasDefaultValues | Returns true if all of the object's fields have their default values. |
![]() | InvokeValueChanged | (Inherited from SoDragger.) |
![]() | IsBoundingBoxIgnoring | Returns true if bounding box computation should be ignored during SoGetBoundingBoxAction traversal. |
![]() | IsNotifyEnabled | Notification is the process of telling interested objects that this object has changed. |
![]() | IsOverride | Returns the state of the override flag. |
![]() | IsPathSurrogateInMySubgraph(SoPath) | (Inherited from SoInteractionKit.) |
![]() | IsPathSurrogateInMySubgraph(SoPath, SoPath, String, SoPath) | Calls IsPathSurrogateInMySubgraph(pathToCheck, pathToOwner, surrogateNameInOwner, surrogatePathInOwner, true). (Inherited from SoInteractionKit.) |
![]() | IsPathSurrogateInMySubgraph(SoPath, SoPath, String, SoPath, Boolean) | (Inherited from SoInteractionKit.) |
![]() | IsSynchronizable | Gets the ScaleViz synchronizable state of this object. |
![]() | IsTrackerDirectMode | (Inherited from SoDragger.) |
![]() | Pick | (Inherited from SoNode.) |
![]() | RayPick | (Inherited from SoBaseKit.) |
![]() | RegisterChildDragger | (Inherited from SoDragger.) |
![]() | RegisterChildDraggerMovingIndependently | (Inherited from SoDragger.) |
![]() | RemoveFinishCallback | Obsolete.
Use FinishDragging event instead.
Remove delegate from the invocation list
(Inherited from SoDragger.) |
![]() | RemoveMotionCallback | Obsolete.
Use MouseMove event instead.
Remove delegate from the invocation list
(Inherited from SoDragger.) |
![]() | RemoveStartCallback | Obsolete.
Use StartDragging event instead.
Remove delegate from the invocation list
(Inherited from SoDragger.) |
![]() | RemoveValueChangedCallback | Obsolete.
Use ValueChanged event instead.
Remove delegate from the invocation list.
(Inherited from SoDragger.) |
![]() | SaveStartParameters | (Inherited from SoDragger.) |
![]() | Search | (Inherited from SoBaseKit.) |
![]() | Set(String) | This function allows field values of parts (nodes) to be set in several different parts simultaneously. |
![]() | Set(String, String) | This function allows field values of parts (nodes) to be set. |
![]() | SetHandleEventAction | (Inherited from SoDragger.) |
![]() | SetMinGesture(Int32) | Sets the number of pixels of movement required to initiate a constraint gesture. |
![]() | SetMinGesture(Single) | Float version of setMinGesture. |
![]() | SetMotionMatrix | Set the motion matrix. |
![]() | SetName | (Inherited from SoBase.) |
![]() | SetOverride | Turns the override flag on or off. |
![]() | SetPart | Inserts the given node (not a copy) as the new part specified by partName. |
![]() | SetPartAsDefault(String, SoNode) | Calls SetPartAsDefault(partName, newNode, true). (Inherited from SoInteractionKit.) |
![]() | SetPartAsDefault(String, String) | Calls SetPartAsDefault(partName, newNodeName, true). (Inherited from SoInteractionKit.) |
![]() | SetPartAsDefault(String, SoNode, Boolean) | (Inherited from SoInteractionKit.) |
![]() | SetPartAsDefault(String, String, Boolean) | (Inherited from SoInteractionKit.) |
![]() | SetPartAsPath | Sets any public part in the interaction kit as a "surrogate" path instead. |
![]() | SetStartingPoint(SbVec3f) | (Inherited from SoDragger.) |
![]() | SetStartingPoint(SoPickedPoint) | (Inherited from SoDragger.) |
![]() | SetSynchronizable | Sets this to be a ScaleViz synchronizable object. |
![]() | SetTempPathToThis | (Inherited from SoDragger.) |
![]() | SetToDefaults | Sets all fields in this object to their default values. |
![]() | SetTrackerDirectMode | Calls SetTrackerDirectMode(OIV.Inventor.Draggers.SoDragger.TrackerDirectModes( .SoDragger.DEFAULT )). (Inherited from SoDragger.) |
![]() | SetTrackerDirectMode(SoDraggerTrackerDirectModes) | Sets the tracker direct mode for this dragger (see description above). |
![]() | SetUpConnections | Obsolete. Calls SetUpConnections(onOff, false). (Inherited from SoBaseKit.) |
![]() | SetViewportRegion | Obsolete. Obsoletesince Open Inventor 9300 No more used. |
![]() | SetViewVolume | Obsolete. Obsoletesince Open Inventor 9300 No more used. |
![]() | ToString |
Converts this SoBase structure to a human readable string.
(Inherited from SoBase.) |
![]() | Touch | Marks an instance as modified, simulating a change to it. |
![]() | TransformMatrixLocalToWorld | (Inherited from SoDragger.) |
![]() | TransformMatrixToLocalSpace | (Inherited from SoDragger.) |
![]() | TransformMatrixWorldToLocal | (Inherited from SoDragger.) |
![]() | UnregisterChildDragger | (Inherited from SoDragger.) |
![]() | UnregisterChildDraggerMovingIndependently | (Inherited from SoDragger.) |
![]() | WorkFieldsIntoTransform | (Inherited from SoDragger.) |
![]() | Write | (Inherited from SoBaseKit.) |
Name | Description | |
---|---|---|
![]() | finishCB | Obsolete.
Use FinishDragging event instead.
FinishCB delegate invocation list
(Inherited from SoDragger.) |
![]() | motionCB | Obsolete.
Use MouseMove event instead.
MotionCB delegate invocation list
(Inherited from SoDragger.) |
![]() | startCB | Obsolete.
Use StartDragging event instead.
StartCB delegate the invocation list
(Inherited from SoDragger.) |
![]() | valueChangedCB | Obsolete.
Use ValueChanged event instead.
ValueChangedCB delegate list.
(Inherited from SoDragger.) |
Name | Description | |
---|---|---|
![]() | boundingBoxCaching | Set bounding box caching mode. |
![]() | boundingBoxIgnoring | Whether to ignore this node during bounding box traversal. |
![]() | enableCallbacks | If set to false, motion, start and finish callbacks are disabled. |
![]() | isActive | true when mouse is down and dragging, else false. |
![]() | IsDisposable | ISafeDisposable interface implementation.
(Inherited from SoDisposable.) |
![]() | pickCulling | Set pick caching mode. |
![]() | renderCaching | Set render caching mode. |
![]() | renderCulling | Set render culling mode. |
![]() | rotation | Orientation of the rotating part (an arrow by default). |
![]() | translation | Position of the origin of the directional light dragger. |
![]() | UserData |
Gets or sets the user data to be contained by the field container.
(Inherited from SoFieldContainer.) |
Name | Description | |
---|---|---|
![]() | FinishDragging | (Inherited from SoDragger.) |
![]() | MouseMove | (Inherited from SoDragger.) |
![]() | StartDragging | (Inherited from SoDragger.) |
![]() | ValueChanged | (Inherited from SoDragger.) |
SoDirectionalLightDragger is a composite dragger. It looks like a sun with a large arrow coming out of it. The arrow can be rotated about the sun by dragging with the mouse; its orientation is given by the rotation field. You can also drag the sun (and the arrow with it) through 3-space. The location is stored in the translation field.
The dragger uses an SoRotateSphericalDragger for changing the rotation. Instead of using the default spherical geometry, this dragger uses an arrow shape.
The sun is an SoDragPointDragger. Dragging it edits the translation field; conversely, if you change the translation field the sun will move to that new location, bringing the arrow with it. The sun looks and behaves just like the sun in an SoPointLightDragger, as does the material part. See the SoPointLightDragger reference page for details.
Remember: This is not a light source! It just looks like one. If you want to move a light with this dragger, you can either:
Use an SoDirectionalLightManip, which is subclassed from SoLight. It creates an SoDirectionalLightDragger and uses it as the interface to change the direction of its light source (see the SoDirectionalLightManip reference page). The manipulator also edits the material part of this dragger to match the color of light the manipulator is producing. However, the directional light manipulator will ignore the translation field, because a directional light has no location or translation field. So in this case the translation dragger merely allows you to move the physical arrow to wherever you'd like it to be.
Put an SoTransform under an SoTransformSeparator. Add the SoDirectionalLight as the next child. Use a field-to-field connection between the rotation fields of this dragger and the transform node to synchronize the light with this dragger.
Use engines to connect the rotation field of this dragger to the direction field of an SoDirectionalLight. Use the rotation as input to an SoComposeMatrix engine. Then, use an SoTransformVec3f engine to apply that matrix to (0,0,-1), the default light direction.
You can change the parts in any instance of this dragger using setPart(). The default part geometries are defined as resources for this SoDirectionalLightDragger class. They are detailed in the Dragger Resources section of the online reference page for this class. You can make your program use different default resources for the parts by copying the file $OIVHOME/data/draggerDefaults/directionalLightDragger.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.
DirectionalLightDragger {
renderCaching | AUTO |
boundingBoxCaching | AUTO |
renderCulling | AUTO |
pickCulling | AUTO |
isActive | false |
translation | 0 0 0 |
rotation | 0 0 1 0 |
callbackList | NULL |
material | <directionalLightOverallMaterial resource> |
translatorRotInv | NULL |
translator | DragPointDragger { |
} | |
rotator | RotateSphericalDragger { |
} | |
rotator.rotator | <directionalLightRotatorRotator resource> |
rotator.rotatorActive | <directionalLightRotatorRotatorActive resource> |
rotator.feedback | <directionalLightRotatorFeedback resource> |
rotator.feedbackActive | <directionalLightRotatorFeedbackActive resource> |
translator.yzTranslator.translator | <directionalLightTranslatorPlaneTranslator resource> |
translator.xzTranslator.translator | <directionalLightTranslatorPlaneTranslator resource> |
translator.xyTranslator.translator | <directionalLightTranslatorPlaneTranslator resource> |
translator.yzTranslator.translatorActive | <directionalLightTranslatorPlaneTranslatorActive resource> |
translator.xzTranslator.translatorActive | <directionalLightTranslatorPlaneTranslatorActive resource> |
translator.xyTranslator.translatorActive | <directionalLightTranslatorPlaneTranslatorActive resource> |
translator.xTranslator.translator | <directionalLightTranslatorLineTranslator resource> |
translator.yTranslator.translator | <directionalLightTranslatorLineTranslator resource> |
translator.zTranslator.translator | <directionalLightTranslatorLineTranslator resource> |
translator.xTranslator.translatorActive | <directionalLightTranslatorLineTranslatorActive resource> |
translator.yTranslator.translatorActive | <directionalLightTranslatorLineTranslatorActive resource> |
translator.zTranslator.translatorActive | <directionalLightTranslatorLineTranslatorActive resource> |
Resource: | directionalLightRotatorRotator | |
Part: | rotator.rotator | |
Appearance: | white arrow that goes through the sun | |
Description: | picking this begins rotation of the arrow about the sun-shape | |
Resource: | directionalLightRotatorRotatorActive | |
Part: | rotator.rotatorActive | |
Appearance: | yellow arrow that goes through the sun | |
Description: | displayed while the arrow is being rotated | |
Resource: | directionalLightRotatorFeedback | |
Part: | rotator.feedback | |
Appearance: | empty Separator | |
Description: | this disables display of the axes that a rotateSpherical dragger uses by default | |
Resource: | directionalLightRotatorFeedbackActive | |
Part: | rotator.feedbackActive | |
Appearance: | empty Separator | |
Description: | this disables display of the axes that a rotateSpherical dragger uses by default | |
Resource: | directionalLightOverallMaterial | |
Part: | material | |
Appearance: | white. half strength emissive, half strength diffuse | |
Description: | sets material for the sun shape when stationary. Resource for the moving sun, directionalLightTranslatorPlaneTranslatorActive, contains a yellow material for highlighting. | |
Resource: | directionalLightTranslatorPlaneTranslator | |
Parts: | translator.yzTranslator.translator<BR> translator.xzTranslator.translator<BR> translator.xyTranslator.translator | |
Appearance: | sun shape with no material | |
Description: | picking these parts initiates dragging by the yz, xz, and xy planar draggers respectively. | |
Resource: | directionalLightTranslatorPlaneTranslatorActive | |
Parts: | translator.yzTranslator.translatorActive<BR> translator.xzTranslator.translatorActive<BR> translator.xyTranslator.translatorActive | |
Appearance: | yellow sun shape | |
Description: | shown during planar dragging in the yz, xz, and xy planes respectively. | |
Resource: | directionalLightTranslatorLineTranslator | |
Parts: | translator.xTranslator.translator<BR> translator.yTranslator.translator<BR> translator.zTranslator.translator | |
Appearance: | white cylinder | |
Description: | picking these parts initiates dragging in the x, y, and z linear draggers respectively. | |
Resource: | directionalLightTranslatorLineTranslatorActive | |
Parts: | translator.xTranslator.translatorActive<BR> translator.yTranslator.translatorActive<BR> translator.zTranslator.translatorActive | |
Appearance: | yellow cylinder | |
Description: | shown during linear dragging in the x, y, and z directions respectively. |
All Parts
Part Name | Part Type | Default Type | NULL Default |
callbackList | NodeKitListPart | yes | |
material | Material | yes | |
translatorRotInv | Rotation | yes | |
translator | DragPointDragger | yes | |
rotator | RotateSphericalDragger | yes |
Extra Information for List Parts from Above Table
Part Name | Container Type | Possible Types |
callbackList | Separator | Callback; EventCallback |