From the booklet of Rabbi David Shalom Naki, shlit"a: if a son is giving a shiur and his father enters, it is good that the father forgive him not to rise, so as not to interrupt the shiur, or if the rising causes the father discomfort when others also rise. So Maran the Rishon LeTzion, Rabbeinu Ovadia Yosef, zt"l, asked of his father. But if others would learn from his not rising to belittle their parents, the son should rise.