GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  SOSENSOR (3)

NAME

SoSensor — abstract base class for Inventor sensors

CONTENTS

Inherits From
Synopsis
Description
Methods
See Also

INHERITS FROM

SoSensor

SYNOPSIS

#include <Inventor/sensors/SoSensor.h>

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

Methods from class SoSensor:

    void    
                    
void                 setFunction(SoSensorCB *callbackFunction)    
SoSensorCB *    
                    
SoSensorCB *         getFunction() const    
void    
                    
void                 setData(void *callbackData)    
void *    
                    
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    
                    
void                 setFunction(SoSensorCB *callbackFunction)
Sets the callback function that is called when the sensor is triggered. The function must take two arguments — user-supplied callback data (of type void *) and a pointer to the sensor that is triggering the function (of type SoSensor *).

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

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

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

SEE ALSO

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

Search for    or go to Top of page |  Section 3 |  Main Index


SOSENSOR(3IV) (-->)

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.