void SimpleCameraModel::plotKeyframe(float t) { // Iterate over list of model properties PropertyList* props = properties.getProperties(); for (PropertyList::iterator iter = props->begin(); iter != props->end(); iter++) { // Cast property to a range property RangeProperty* rp = dynamic_cast<RangeProperty*>(*iter); if (!rp) { continue; } // Get the curve, and add a control point Curve* pCurve = ModelerUserInterface::getInstance()-> graph->curve(rp->getCurveIndex()); pCurve->addControlPoint( Animator::Point(t, rp->getValue()) ); } // Redraw the curves ModelerUserInterface::getInstance()->graph->redraw(); }