On a class of generalized Takagi functions with linear pathwise quadratic variation