public class SoVRMLStringSensor extends SoVRMLNode
See the X3D Specification, below.
<font color="#0000FF">NOTE:</font> This class does not exist in Open Inventor 10.0 and later.
This section describes the expected behavior of the node in a conforming X3D browser application. In some cases, the application is responsible for implementing portions of the expected behavior. Open Inventor viewer classes and IVF classes implement some of the application behaviors.
This section may reference portions of the X3D specification that are not present in this help file. The complete X3D spec is available at
A StringSensor node generates events as the user presses keys on the keyboard. A StringSensor node can be enabled or disabled by sending it an enabled
event with a value of true or false. If the StringSensor node is disabled, it does not track keyboard input or send events.
enteredText
events are generated as keys which produce characters are pressed on the keyboard. The value of this event is the UTF-8 string entered including the latest character struck. The set of UTF-8 characters that can be generated will vary between different keyboards and different implementations.
If a deletionAllowed
has value true, the previously entered character in the enteredText
is removed when the browser-recognized value for deleting the preceding character of a string is entered. Typically, this value is defined by the local operating system. If deletionAllowed
has value false, characters may only be added to the string; deletion of characters will not be allowed. Should the browser-recognized value for deleting the preceding character is entered, it will be ignored.
The finalText
event is generated whenever the browser-recognized value for terminating a string is entered. Typically, this value is defined by the local operating system. When this recognition occurs, the finalText
field generates an event with value equal to that of enteredText
. After the finalText
field event has been generated, the enteredText
field is set to the empty string but no event is generated.
When the user begins typing, the StringSensor sends an isActive
event with value true. When the string is terminated, the StringSensor sends an isActive
event with value false.
The StringSensor is not affected by its position in the transformation hierarchy.
See "Key device sensor component" for more details.
File format/default:
VRMLStringSensor {
deletionAllowed | true |
enabled | true |
metadata | NULL |
SoSFString | enteredText |
SoSFString | finalText |
SoSFBool | isActive |
SoSFBool | deletionAllowed_changed |
SoSFBool | enabled_changed |
SoSFNode | metadata_changed |
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
SoSFBool |
deletionAllowed
Deprecated.
Enables (true) or disables (false) the deletion of text in the enteredText eventOut.
|
SoSFBool |
enabled
Deprecated.
Enables (true) or disables (false) the sensor.
|
SoSFString |
enteredText
Deprecated.
Output event sent when text entered.
|
SoSFString |
finalText
Deprecated.
Output event sent when text finished.
|
SoSFBool |
isActive
Deprecated.
Output event sent when cursor on shape.
|
metadata
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoVRMLStringSensor()
Deprecated.
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static void |
enableEvents(boolean OnOffFlag)
Deprecated.
Enables/disables events for
all
SoVRMLStringSensor objects. |
static boolean |
isEventsEnabled()
Deprecated.
Queries if events are enabled for all objects of this class.
|
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderUnitID, GLRender, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, handleEvent, isBoundingBoxIgnoring, isOverride, pick, rayPick, search, setOverride, touch, write
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
dispose, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizable
getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public final SoSFBool deletionAllowed
public final SoSFBool enabled
public final SoSFBool isActive
public final SoSFString enteredText
public final SoSFString finalText
public static boolean isEventsEnabled()
public static void enableEvents(boolean OnOffFlag)
SoVRMLStringSensor
objects.
If you have created several objects of this class, you can disable/enable events for all of them with a single call to this method.Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com