make FlowEngine::setPositionsBuffer virtual