void EclassModelNode::construct() { EntityNode::construct(); _rotationObserver.setCallback(std::bind(&RotationKey::rotationChanged, &_rotationKey, std::placeholders::_1)); _angleObserver.setCallback(std::bind(&RotationKey::angleChanged, &_rotationKey, std::placeholders::_1)); _rotation.setIdentity(); addKeyObserver("angle", _angleObserver); addKeyObserver("rotation", _rotationObserver); addKeyObserver("origin", _originKey); }
void Doom3GroupNode::construct() { m_contained.construct(); // Attach the callback as keyobserver for the skin key addKeyObserver("skin", _skinObserver); m_contained.m_curveNURBSChanged = m_contained.m_curveNURBS.connect( boost::bind(&CurveEditInstance::curveChanged, &m_curveNURBS) ); m_contained.m_curveCatmullRomChanged = m_contained.m_curveCatmullRom.connect( boost::bind(&CurveEditInstance::curveChanged, &m_curveCatmullRom) ); }