public class SoFieldSensor extends SoDataSensor
See SoDataSensor
for general information and code example.
See also:
SoDataSensor.ChangeTypes
Inventor.ConstructorCommand
FIELD_MULTIVALUE, GROUP_ADD_CHILD, GROUP_INSERT_CHILD, GROUP_REMOVE_ALL_CHILDREN, GROUP_REMOVE_CHILD, GROUP_REPLACE_CHILD, UNSPECIFIED
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoFieldSensor()
Constructor.
|
SoFieldSensor(java.lang.Runnable task)
Builds a new field sensor with the task to be executed when the sensor
is triggered.
|
Modifier and Type | Method and Description |
---|---|
void |
attach(SoField field)
The
attach() method makes this sensor detect changes to the given field. |
void |
detach()
The
detach() method unschedules this sensor (if it is scheduled) and makes it ignore changes to the scene graph. |
SoField |
getAttachedField()
The
getAttachedField() method returns the field that this sensor is sensing, or NULL if it is not attached to any field. |
getTriggerChild, getTriggerChildIndex, getTriggerFastEditInfo, getTriggerFastEditInfoFlag, getTriggerField, getTriggerMFieldNumValues, getTriggerMFieldStartIndex, getTriggerNode, getTriggerPath, getTriggerPathFlag, getTriggerType, setFinalTask, setTriggerFastEditInfoFlag, setTriggerPathFlag
getDefaultPriority, getPriority, isIdleOnly, setPriority
isScheduled, schedule, setTask, unschedule
dispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public SoFieldSensor(java.lang.Runnable task)
public SoFieldSensor()
public void attach(SoField field)
attach()
method makes this sensor detect changes to the given field.
See also detach()
, getAttachedField()
public void detach()
detach()
method unschedules this sensor (if it is scheduled) and makes it ignore changes to the scene graph.
See also attach()
, getAttachedField()
public SoField getAttachedField()
getAttachedField()
method returns the field that this sensor is sensing, or NULL if it is not attached to any field.
See also attach()
, detach()
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com