Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
SoSensor(3IV)()						       SoSensor(3IV)()

NAME
       SoSensor	-- abstract base class for Inventor sensors

INHERITS FROM
       SoSensor

SYNOPSIS
       #include	<Inventor/sensors/SoSensor.h>

     typedef void	 SoSensorCB(void *data,	SoSensor *sensor)

	  Methods from class SoSensor:

     void		 setFunction(SoSensorCB	*callbackFunction)
     SoSensorCB	*	 getFunction() const
     void		 setData(void *callbackData)
     void *		 getData() const

DESCRIPTION
       Sensors detect changes either to	time or	to Inventor objects in a scene
       graph, and call a user-defined callback function. Sensors are scheduled
       when  the  thing	 they are attached to changes, and sometime after they
       are scheduled they are triggered, calling the user's callback function.

METHODS
     void		 setFunction(SoSensorCB	*callbackFunction)
	  Sets the callback function that is called when the sensor  is	 trig-
	  gered.  The  function	must take two arguments	-- user-supplied call-
	  back data (of	type void *) and a pointer to the sensor that is trig-
	  gering the function (of type SoSensor	*).

     SoSensorCB	*	 getFunction() const
	  Returns the callback function	that will be called when the sensor is
	  triggered.

     void		 setData(void *callbackData)
	  Sets the callback data passed	to the callback	function.

     void *		 getData() const
	  Returns the user-supplied pointer that will be passed	to  the	 call-
	  back function.

SEE ALSO
       SoAlarmSensor, SoDataSensor, SoFieldSensor, SoIdleSensor, SoNodeSensor,
       SoPathSensor, SoSensorManager

							       SoSensor(3IV)()

NAME | INHERITS FROM | SYNOPSIS | DESCRIPTION | METHODS | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=SoSensor&sektion=3iv&manpath=FreeBSD+12.1-RELEASE+and+Ports>

home | help