Return to search

[en] DEVELOPMENT OF ACLASS IN THE CONTEXT OF OOP FOR GENERIC MANAGEMENT OF MOUSE EVENTS IN A CANVAS IN THE MATLAB ENVIRONMENT / [pt] DESENVOLVIMENTO DE UMA CLASSE NO CONTEXTO DA POO PARA GERENCIAMENTO GENÉRICO DE EVENTOS DE MOUSE EM UM CANVAS NO AMBIENTE MATLAB

[pt] O ensino de computação gráfica aplicada é de muita importância no processo de simulação computacional de problemas de engenharia. Atualmente, muitos programas de computador, de fácil utilização, têm melhorado este trabalho, como é o caso do MATLAB. A geração e manipulação de um modelo geométrico, que é a forma mais realista e apropriada de representar o problema a ser estudado, são etapas muito importantes na simulação computacional. O uso do mouse permite que estas etapas se tornem mais interativas e de fácil compreensão. Por este motivo, neste trabalho desenvolve-se uma classe genérica no contexto da programação orientada a objetos, no ambiente MATLAB, que permite gerenciar eventos de mouse em um canvas. O objetivo desta classe é ser utilizada no desenvolvimento de programas
gráficos e interativos em MATLAB, principalmente para fins educacionais. Visando atender a essas expectativas, adotou-se a Orientação a Objetos, que possibilita a criação de códigos reutilizáveis. Aliada a essa técnica, utiliza-se a Unified Modeling Language, uma linguagem gráfica que permite a visualização,
construção e documentação do desenvolvimento de um sistema computacional orientado a objetos. Para determinar o correto funcionamento e praticidade da classe desenvolvida, são implementadas duas aplicações interativas no software MATLAB; a primeira para desenhar pórticos planos
em 2D e a segunda para demostrar o funcionamento do círculo de Mohr
para estado plano de tensões. / [en] Teaching of applied computer graphics is of great importance in computational simulation of engineering problems. Currently, many user- friendly computer programs have improved this work, as is the case with MATLAB. The generation and manipulation of a geometric model, which is a more realistic and appropriate way to represent the problem to be studied, are very important steps in the computational simulation. The use of the mouse allows these steps to become more interactive and easy to understand. For this reason, in this work a generic class is developed in the context of object-oriented programming (OOP) in the MATLAB environment, which allows managing mouse events in a canvas. The goal of this OOP class is to be used as a base class in the development of graphics and interactive programs in MATLAB, mainly for educational purposes. In order to meet these expectations, an OOP paradigm was adopted, which enables the creation of reusable codes. Together to this technique, the Unified Modeling Language (UML) is used, a graphic language that allows the visualization, construction and documentation of the development of an object oriented computational system. To determine the correct functioning and practicality of the developed class, two interactive applications are implemented in MATLAB; the first to draw frame structures in 2D and the second to demonstrate the Mohr circle for stress state.

Identiferoai:union.ndltd.org:puc-rio.br/oai:MAXWELL.puc-rio.br:31994
Date13 November 2017
CreatorsEMERSSON DUVAN TORRES SÁNCHEZ
ContributorsLUIZ FERNANDO CAMPOS RAMOS MARTHA
PublisherMAXWELL
Source SetsPUC Rio
LanguagePortuguese
Detected LanguageEnglish
TypeTEXTO

Page generated in 0.0025 seconds