public class SoPathSensor extends SoDataSensor
The definition of "in the path" is the same as the definition used when applying an action to the path - any node that can possibly affect the node at the end of the path chain is considered in the path. See the SoPath
manual page for more information on paths.
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 |
---|
SoPathSensor()
Default constructor.
|
SoPathSensor(java.lang.Runnable task)
Build a new path sensor with the task to be executed when the sensor
is triggered.
|
Modifier and Type | Method and Description |
---|---|
void |
attach(SoPath path)
Makes this sensor detect changes to the given path.
|
void |
detach()
Unschedules this sensor (if it is scheduled) and makes it ignore changes to the scene graph.
|
SoPath |
getAttachedPath()
Returns the path that this sensor is sensing, or NULL if it is not attached to any path.
|
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 SoPathSensor(java.lang.Runnable task)
public SoPathSensor()
public void detach()
public SoPath getAttachedPath()
public void attach(SoPath path)
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com