Metamodel-based definition of interaction with visual environments