Open Inventor Reference
SoFieldSensor.h File Reference

Go to the source code of this file.

Classes

class  SoFieldSensor
 Sensor class that can be attached to Inventor fields. More...
 
class  SoFieldSensorCallback
 Base class for typed field sensor callbacks. More...
 
class  SoTypedFieldSensorCallback< Object, Method >
 Typed field sensor that called given member function on object when triggered. More...
 

Macros

#define SO_NODE_ADD_FIELD_CALLBACK(field, method)    this->addManagedSensor(SoCreateFieldSensor(this, &InventorThisClass::method, field));
 Adds a SoFieldSensor to the given field and calls the member function method when the field changes/is touched.
 
#define SO_NODE_ADD_FIELD_CALLBACK_WITH_PRIORITY(field, method, priority)
 Adds a SoFieldSensor to the given field and calls the member function method when the field changes/is touched.
 

Functions

template<class Object , class Method >
SoFieldSensorSoCreateFieldSensor (Object *object, Method method, SoField &field)
 Helper method to create a field sensor by type inference.
 

Macro Definition Documentation

◆ SO_NODE_ADD_FIELD_CALLBACK

#define SO_NODE_ADD_FIELD_CALLBACK (   field,
  method 
)     this->addManagedSensor(SoCreateFieldSensor(this, &InventorThisClass::method, field));

Definition at line 175 of file SoFieldSensor.h.

◆ SO_NODE_ADD_FIELD_CALLBACK_WITH_PRIORITY

#define SO_NODE_ADD_FIELD_CALLBACK_WITH_PRIORITY (   field,
  method,
  priority 
)
Value:
{ SoFieldSensor* invInternalSen = SoCreateFieldSensor(this, &InventorThisClass::method, field); \
invInternalSen->setPriority(priority); \
this->addManagedSensor(invInternalSen); \
}
SoFieldSensor * SoCreateFieldSensor(Object *object, Method method, SoField &field)
Helper method to create a field sensor by type inference.
void setPriority(uint32_t pri)
Sets the priority of the sensor.
Sensor class that can be attached to Inventor fields.

The sensor has the given priority.

Definition at line 180 of file SoFieldSensor.h.

Function Documentation

◆ SoCreateFieldSensor()

template<class Object , class Method >
SoFieldSensor * SoCreateFieldSensor ( Object *  object,
Method  method,
SoField field 
)
inline

Definition at line 166 of file SoFieldSensor.h.

References SoFieldSensor::attach().