MeVisLab Resolution Independence API
FieldSyncEntry Class Reference

a class that synchronizes two Inventor Fields with each other without using SoField::connectFrom. More...

#include <FieldSync.h>

Public Member Functions

 FieldSyncEntry (SoField *f1, SoField *f2)
 create field sync for fields f1 and f2 More...
 
 ~FieldSyncEntry ()
 destructor More...
 
void fieldSensor (SoFieldSensor *s)
 called by sensors when f1 or f2 change More...
 

Static Public Member Functions

static void fieldSensorCB (void *data, SoSensor *s)
 forward callback to fieldSensor() More...
 

Detailed Description

a class that synchronizes two Inventor Fields with each other without using SoField::connectFrom.

It compares the field values to avoid infinite loops on synced fields

Definition at line 31 of file FieldSync.h.

Constructor & Destructor Documentation

◆ FieldSyncEntry()

FieldSyncEntry::FieldSyncEntry ( SoField *  f1,
SoField *  f2 
)

create field sync for fields f1 and f2

◆ ~FieldSyncEntry()

FieldSyncEntry::~FieldSyncEntry ( )

destructor

Member Function Documentation

◆ fieldSensor()

void FieldSyncEntry::fieldSensor ( SoFieldSensor *  s)

called by sensors when f1 or f2 change

◆ fieldSensorCB()

static void FieldSyncEntry::fieldSensorCB ( void *  data,
SoSensor *  s 
)
static

forward callback to fieldSensor()


The documentation for this class was generated from the following file: