SoFieldSensor Class |
Sensor class that can be attached to Open Inventor fields.
Namespace: OIV.Inventor.Sensors
The SoFieldSensor type exposes the following members.
Name | Description | |
---|---|---|
SoFieldSensor | Constructor. |
Name | Description | |
---|---|---|
Attach | The OIV.Inventor.Sensors.SoFieldSensor.Attach(OIV.Inventor.Fields.SoField) method makes this sensor detect changes to the given field. | |
Detach | The OIV.Inventor.Sensors.SoFieldSensor.Detach() method unschedules this sensor (if it is scheduled) and makes it ignore changes to the scene graph. | |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
GetAttachedField | The OIV.Inventor.Sensors.SoFieldSensor.GetAttachedField() method returns the field that this sensor is sensing, or NULL if it is not attached to any field. | |
GetHashCode |
Overrides GetHashCode().
(Inherited from SoNetBase.) | |
GetPriority | Gets the priority of the sensor. | |
GetTriggerChild | If this is a priority 0 data sensor, and a change to a group node's children caused this sensor to be triggered (getTriggerType returns GROUP_ADD_CHILD, GROUP_INSERT_CHILD, or GROUP_REPLACE_CHILD), returns the node that was added to the group, and NULL in all other cases. | |
GetTriggerChildIndex | If this is a priority 0 data sensor, and a change to a group node's children caused this sensor to be triggered (getTriggerType returns GROUP_ADD_CHILD, GROUP_INSERT_CHILD, or GROUP_REPLACE_CHILD), returns the index of the node that was added or removed, and -1 in all other cases. | |
GetTriggerFastEditInfo | Returns true if the triggered changes come from a field or node that was below a Separator with a fastEditPolicy field with a value different than OFF. | |
GetTriggerFastEditInfoFlag | Queries the flag that indicates whether the trigger path fastEdit info (see OIV.Inventor.Sensors.SoDataSensor.GetTriggerFastEditInfo()) is available to delegates. | |
GetTriggerField | If this is a priority 0 data sensor, returns the field that was modified that caused this sensor to trigger. | |
GetTriggerMFieldNumValues | If this is a priority 0 data sensor, and a change in the data values of a multiple field (e.g., OIV.Inventor.Fields.SoMFVec3f) caused this sensor to be triggered, returns the size of the range of the potentially changed values. | |
GetTriggerMFieldStartIndex | If this is a priority 0 data sensor, and a change in the data values of a multiple field (e.g., OIV.Inventor.Fields.SoMFVec3f) caused this sensor to be triggered, returns the first index of the range of the potentially changed values. | |
GetTriggerNode | If this is a priority 0 data sensor, returns the node that was modified that caused this sensor to trigger. | |
GetTriggerPath | If this is a priority 0 data sensor, returns a path to the node that caused this sensor to trigger. | |
GetTriggerPathFlag | Queries the flag that indicates whether the trigger path (see OIV.Inventor.Sensors.SoDataSensor.GetTriggerPath()) is available to delegates. | |
GetTriggerType | If this is a priority 0 data sensor, returns the type of change that occurred. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsIdleOnly | (Inherited from SoDelayQueueSensor.) | |
IsScheduled | Returns true if this sensor has been scheduled and is waiting in a sensor queue to be triggered. | |
Schedule | (Inherited from SoSensor.) | |
SetPriority | Sets the priority of the sensor. | |
SetTriggerFastEditInfoFlag | Sets the flag that indicates whether the trigger path fastEdit info (see OIV.Inventor.Sensors.SoDataSensor.GetTriggerFastEditInfo()) is available to delegatemethods. | |
SetTriggerPathFlag | Sets the flag that indicates whether the trigger path (see OIV.Inventor.Sensors.SoDataSensor.GetTriggerPath()) is available to delegatemethods. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
Unschedule | (Inherited from SoSensor.) |
Name | Description | |
---|---|---|
Action | (Inherited from SoSensor.) | |
DeleteCallback | Sets a callback that will be called when the object the sensor is sensing is deleted. |
Field sensors detect changes to fields, calling a delegatefunction whenever the field changes. The field may be part of a node, an input of an engine, or a global field.
See OIV.Inventor.Sensors.SoDataSensor for general information and code example.