8. 2D Graphics
Total Page:16
File Type:pdf, Size:1020Kb
Load more
Recommended publications
-
Cours-Qt.Pdf
Cours Qt par Thierry Vaira © v.1.00 Sommaire A Présentation de Qt2 B Notions de base3 B.1 Programmation évènementielle........................3 B.2 Structure générale de Qt...........................4 B.2.1 La classe QObject ...........................4 B.2.2 Les modules..............................6 B.2.3 La classe QApplication .......................6 B.3 Élément graphique (widget).........................8 B.4 Mécanisme signal/slot ............................ 14 B.5 Projet Qt................................... 18 B.6 Environnement de Développement Intégré (EDI).............. 20 B.7 Positionnement (layout)........................... 21 B.8 Transition Qt4 −→ Qt5............................ 24 B.9 Documentation................................ 25 B.10 Exemple.................................... 26 LT La Salle Avignon 1 / 28 © [email protected] Qt Cours BTS SN-IR A Présentation de Qt Qt est une bibliothèque logicielle orientée objet (API) développée en C++ par Qt Development Frameworks, filiale de Digia. Une API (Application Programming Interface) est une interface de programmation pour les application et donc les développeurs. C'est un ensemble normalisé de classes, de méthodes ou de fonctions qui sert de façade pour accéder aux services fournis. Qt est une plateforme de développement d’interfaces graphiques GUI (Graphical User Interface) fournie à l’origine par la société norvégienne Troll Tech, rachetée par Nokia en février 2008 puis cédée intégralement en 2012 à Digia (www.qt.io). Qt fournit également un ensemble de classes décrivant des éléments non graphiques : accès aux données (fichier, base de données), connexions réseaux (socket), gestion du multitâche (thread), XML, etc. Qt permet la portabilité des applications (qui n’utilisent que ses composants) par simple recompilation du code source. Les environnements supportés sont les Unix (dont Linux), Windows et Mac OS X. -
Our Journey from Java to Pyqt and Web for Cern Accelerator Control Guis I
17th Int. Conf. on Acc. and Large Exp. Physics Control Systems ICALEPCS2019, New York, NY, USA JACoW Publishing ISBN: 978-3-95450-209-7 ISSN: 2226-0358 doi:10.18429/JACoW-ICALEPCS2019-TUCPR03 OUR JOURNEY FROM JAVA TO PYQT AND WEB FOR CERN ACCELERATOR CONTROL GUIS I. Sinkarenko, S. Zanzottera, V. Baggiolini, BE-CO-APS, CERN, Geneva, Switzerland Abstract technology choices for GUI, even at the cost of not using Java – our core technology – for GUIs anymore. For more than 15 years, operational GUIs for accelerator controls and some lab applications for equipment experts have been developed in Java, first with Swing and more CRITERIA FOR SELECTING A NEW GUI recently with JavaFX. In March 2018, Oracle announced that Java GUIs were not part of their strategy anymore [1]. TECHNOLOGY They will not ship JavaFX after Java 8 and there are hints In our evaluation of GUI technologies, we considered that they would like to get rid of Swing as well. the following criteria: This was a wakeup call for us. We took the opportunity • Technical match: suitability for Desktop GUI to reconsider all technical options for developing development and good integration with the existing operational GUIs. Our options ranged from sticking with controls environment (Linux, Java, C/C++) and the JavaFX, over using the Qt framework (either using PyQt APIs to the control system; or developing our own Java Bindings to Qt), to using Web • Popularity among our current and future developers: technology both in a browser and in native desktop little (additional) learning effort, attractiveness for new applications. -
Multiplatformní GUI Toolkity GTK+ a Qt
Multiplatformní GUI toolkity GTK+ a Qt Jan Outrata KATEDRA INFORMATIKY UNIVERZITA PALACKÉHO V OLOMOUCI GUI toolkit (widget toolkit) (1) = programová knihovna (nebo kolekce knihoven) implementující prvky GUI = widgety (tlačítka, seznamy, menu, posuvník, bary, dialog, okno atd.) a umožňující tvorbu GUI (grafického uživatelského rozhraní) aplikace vlastní jednotný nebo nativní (pro platformu/systém) vzhled widgetů, možnost stylování nízkoúrovňové (Xt a Xlib v X Windows System a libwayland ve Waylandu na unixových systémech, GDI Windows API, Quartz a Carbon v Apple Mac OS) a vysokoúrovňové (MFC, WTL, WPF a Windows Forms v MS Windows, Cocoa v Apple Mac OS X, Motif/Lesstif, Xaw a XForms na unixových systémech) multiplatformní = pro více platforem (MS Windows, GNU/Linux, Apple Mac OS X, mobilní) nebo platformově nezávislé (Java) – aplikace může být také (většinou) událostmi řízené programování (event-driven programming) – toolkit v hlavní smyčce zachytává události (uživatelské od myši nebo klávesnice, od časovače, systému, aplikace samotné atd.) a umožňuje implementaci vlastních obsluh (even handler, callback function), objektově orientované programování (objekty = widgety aj.) – nevyžaduje OO programovací jazyk! Jan Outrata (Univerzita Palackého v Olomouci) Multiplatformní GUI toolkity duben 2015 1 / 10 GUI toolkit (widget toolkit) (2) language binding = API (aplikační programové rozhraní) toolkitu v jiném prog. jazyce než původní API a toolkit samotný GUI designer/builder = WYSIWYG nástroj pro tvorbu GUI s využitím toolkitu, hierarchicky skládáním prvků, z uloženého XML pak generuje kód nebo GUI vytvoří za běhu aplikace nekomerční (GNU (L)GPL, MIT, open source) i komerční licence např. GTK+ (C), Qt (C++), wxWidgets (C++), FLTK (C++), CEGUI (C++), Swing/JFC (Java), SWT (Java), JavaFX (Java), Tcl/Tk (Tcl), XUL (XML) aj. -
C++ GUI Programming with Qt 4, Second Edition by Jasmin Blanchette; Mark Summerfield
C++ GUI Programming with Qt 4, Second Edition by Jasmin Blanchette; Mark Summerfield Publisher: Prentice Hall Pub Date: February 04, 2008 Print ISBN-10: 0-13-235416-0 Print ISBN-13: 978-0-13-235416-5 eText ISBN-10: 0-13-714397-4 eText ISBN-13: 978-0-13-714397-9 Pages: 752 Table of Contents | Index Overview The Only Official, Best-Practice Guide to Qt 4.3 Programming Using Trolltech's Qt you can build industrial-strength C++ applications that run natively on Windows, Linux/Unix, Mac OS X, and embedded Linux without source code changes. Now, two Trolltech insiders have written a start-to-finish guide to getting outstanding results with the latest version of Qt: Qt 4.3. Packed with realistic examples and in-depth advice, this is the book Trolltech uses to teach Qt to its own new hires. Extensively revised and expanded, it reveals today's best Qt programming patterns for everything from implementing model/view architecture to using Qt 4.3's improved graphics support. You'll find proven solutions for virtually every GUI development task, as well as sophisticated techniques for providing database access, integrating XML, using subclassing, composition, and more. Whether you're new to Qt or upgrading from an older version, this book can help you accomplish everything that Qt 4.3 makes possible. • Completely updated throughout, with significant new coverage of databases, XML, and Qtopia embedded programming • Covers all Qt 4.2/4.3 changes, including Windows Vista support, native CSS support for widget styling, and SVG file generation • Contains -
Pipenightdreams Osgcal-Doc Mumudvb Mpg123-Alsa Tbb
pipenightdreams osgcal-doc mumudvb mpg123-alsa tbb-examples libgammu4-dbg gcc-4.1-doc snort-rules-default davical cutmp3 libevolution5.0-cil aspell-am python-gobject-doc openoffice.org-l10n-mn libc6-xen xserver-xorg trophy-data t38modem pioneers-console libnb-platform10-java libgtkglext1-ruby libboost-wave1.39-dev drgenius bfbtester libchromexvmcpro1 isdnutils-xtools ubuntuone-client openoffice.org2-math openoffice.org-l10n-lt lsb-cxx-ia32 kdeartwork-emoticons-kde4 wmpuzzle trafshow python-plplot lx-gdb link-monitor-applet libscm-dev liblog-agent-logger-perl libccrtp-doc libclass-throwable-perl kde-i18n-csb jack-jconv hamradio-menus coinor-libvol-doc msx-emulator bitbake nabi language-pack-gnome-zh libpaperg popularity-contest xracer-tools xfont-nexus opendrim-lmp-baseserver libvorbisfile-ruby liblinebreak-doc libgfcui-2.0-0c2a-dbg libblacs-mpi-dev dict-freedict-spa-eng blender-ogrexml aspell-da x11-apps openoffice.org-l10n-lv openoffice.org-l10n-nl pnmtopng libodbcinstq1 libhsqldb-java-doc libmono-addins-gui0.2-cil sg3-utils linux-backports-modules-alsa-2.6.31-19-generic yorick-yeti-gsl python-pymssql plasma-widget-cpuload mcpp gpsim-lcd cl-csv libhtml-clean-perl asterisk-dbg apt-dater-dbg libgnome-mag1-dev language-pack-gnome-yo python-crypto svn-autoreleasedeb sugar-terminal-activity mii-diag maria-doc libplexus-component-api-java-doc libhugs-hgl-bundled libchipcard-libgwenhywfar47-plugins libghc6-random-dev freefem3d ezmlm cakephp-scripts aspell-ar ara-byte not+sparc openoffice.org-l10n-nn linux-backports-modules-karmic-generic-pae -
Using Sharepoint's Infopath Feature to Generate Forms Creating A
SHAREPOINT PRACTICAL IT STRATEGIES FOR ENTERPRISE COLLABORATION /// OCTOBER 2008 I IMPLEMENTATION Using SharePoint’s InfoPath feature to generate forms SharePoint Server’s InfoPath can save money and time by streamlining the forms process. BY NICOLA YOUNG G GOVERNANCE Creating a SharePoint governance document Learn which issues to include in your SharePoint governance document to avoid problems down the road. BY BRIEN M. POSEY M MANAGEMENT Rookie mistakes to avoid during the implementation process From choosing the wrong installation to ignoring disaster recovery, beware of these SharePoint implementation blunders. BY SHAWN SHELL » EDITOR’SNOTE ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ In search of the ‘paperless office’ BY CHRISTINE CASATELLI ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Editor’s note FOR ENTERPRISES STILL STRIVING for the “paperless office,” Microsoft Office InfoPath might get you one step closer. I Office InfoPath is an application of Microsoft Office SharePoint Server 2007 that allows forms to be created and filled in using a Web browser. Users can Using SharePoint’s InfoPath feature publish these forms to a library and update them so everyone always uses the to generate forms latest version of each form. Web-based forms can save time and money, so why is InfoPath one of the G most underused SharePoint features? Creating a If the idea of writing custom code is a turn-off for IT folks, they needn’t worry. SharePoint governance SharePoint expert Nicola Young says that InfoPath uses a WYSIWYG forms document designer, so no programming is required. Young walks readers through the process of using an InfoPath template to design an online form in this month’s M cover story “Using SharePoint’s InfoPath feature to generate forms.” Rookie mistakes Is governance keeping you up at night? Then you’ve come to the right place. -
Squish Manual I
Squish Manual i Squish Manual Squish Manual ii COLLABORATORS TITLE : Squish Manual ACTION NAME DATE SIGNATURE WRITTEN BY April 10, 2009 REVISION HISTORY NUMBER DATE DESCRIPTION NAME Squish Manual iii Contents 1 Welcome 1 2 Release Notes 2 2.1 Version 3.4.4.....................................................2 2.1.1 General....................................................2 2.1.2 IDE......................................................2 2.1.3 Qt-specific..................................................3 2.1.4 Java-specific.................................................3 2.1.5 Web-specific.................................................3 2.1.6 Tk-specific..................................................3 2.1.7 Source Builds.................................................3 2.2 Version 3.4.3.....................................................4 2.2.1 General....................................................4 2.2.2 IDE......................................................4 2.2.3 Qt-specific..................................................5 2.2.4 Java-specific.................................................5 2.2.5 Web-specific.................................................5 2.2.6 Tk-specific..................................................5 2.2.7 Mac-specific (Cocoa/Carbon edition)....................................6 2.2.8 Source Builds.................................................6 2.3 Version 3.4.2.....................................................6 2.3.1 General....................................................6 2.3.2 Qt-specific..................................................7 -
Download Slides (PDF)
Chapter 9 Designing Graphical User Interfaces (GUIs) Overview • The basics of GUIs in Java • A tour of Java GUI libraries • Containers and components • Swing: the full picture • Layout managers • Understanding events and event listeners • Closing topics 2 The basics of GUIs in Java • What is a graphical user interface? Graphical User Interface (GUI) Vs. Command Line Interface (CLI) 3 The basics of GUIs in Java • Java has quite a number of GUI frameworks to build graphical • Mostly due to history • But also functional: – Some frameworks try to mimic the host system as closely as possible – Others go for fancy, modern look – Focus on robustness, simplicity versus performance (3D graphics etc.) 4 A tour of Java GUI libraries Abstract Window Toolkit (AWT) • Together with first Java release in 1995 • Provides a standard widget toolkit • Widgets: buttons, checkboxes, etc. • Thin layer above host operating system (“heavyweight components”): AWT is platform dependent • Also contains many other aspects: layout managers, event listeners, classes to deal with keyboard and mouse 5 A tour of Java GUI libraries Swing • Originally conceived as more advanced version of AWT • Not closely related to OS (“lightweight components”), written entirely in Java – There are still a few heavyweight components in Swing, more about these later • Thus: more customization options possible • Hence also includes drawing code (to draw lines, rectangles, etc.) • Implemented as an extension of AWT • But still tries to emulate the “look and feel” of the host OS • Old but -
John R. Crossett
JOHN R. CROSSETT jrcrossett@ ieee.org PO Box 91 ~ Westport, New York 12993 (518)-564-0504 | (518)-524-3917 EMBEDDED SOFTWARE SYSTEMS ENGINEER: I am a seasoned and analytical Software Applications and Embedded Developer with over 25 years of diverse experience in the design and deployment of commercial and industrial adaptive software solutions within complex environments. I am experienced in object oriented analysis and design, development, and embedded programming with proficiencies in multiple languages including C#, and C++. PROFESSIONAL EXPERIENCE: GE Transportation: Erie Pa,Contract Software Engineer,April 2014 to April 2015 (12 months),Qnx based AC locomotive control system modifications, defect remediation. Multi- person team effort. GNU C++ development employing Perforce source control and Clear Quest project management. Worked extensively with QNX power fail safe file partitions, scripts for testing. Vanteon / Harris RF: Rochester NY,Contract Software Engineer,October 2013 to February 2014 (5 months),Qnx based military radio system modifications and defect remediation. 12 person person team. GNU C++ development involving fixing assigned bugs sent via JIRA project management software. Cryptographic access. Alstom Signaling: Rochester NY,August 2011 to 2013 (18 months) uClinux based network development ie. Custom FTP in C language on Blackfin processor. Linux user space driver development for I2C and SPI. Test driven development supporting blackfin initiative. Test code development for National Instruments Test Stand in C#. Custom test routines for emulation of simulated web service interface under Windows 7 using Microsoft WCF among other things. Riverstone Systems: Westport New York,DBA,Owner/Consultant 2008 to 2011 (~36 months) Remote saw mill software support for Edger Optimizer product (see Silva tech) . -
A Semi-Automatic Annotation Tool for Image Data
Die approbierte Originalversion dieser Diplom-/Masterarbeit ist an der Hauptbibliothek der Technischen Universität Wien aufgestellt (http://www.ub.tuwien.ac.at). The approved original version of this diploma or master thesis is available at the main library of the Vienna University of Technology (http://www.ub.tuwien.ac.at/englweb/). A semi-automatic annotation tool for image data DIPLOMARBEIT zur Erlangung des akademischen Grades Diplom-Ingenieur im Rahmen des Studiums Computergraphik & Digitale Bildverarbeitung ausgeführt von Dawid Sip Matrikelnummer 0126051 an der Fakultät für Informatik der Technischen Universität Wien Betreuung: Betreuer: A.o.Univ.-Prof.Dipl.-Ing.Dr.techn. Markus Vincze Mitwirkung: Dipl.-Ing. Horst Wildenauer Wien, 19. 01. 2009 (Unterschrift Verfasser) (Unterschrift Betreuer) Technische Universität Wien A-1040 Wien Karlsplatz 13 Tel. +43/(0)1/58801-0 http://www.tuwien.ac.at A semi-automatic annotation tool for image data MASTER THESIS for the completion of the degree requirements Diplom-Ingenieur in the study of Computer graphics & digital image-processing by Dawid Sip Matriculation Number 0126051 at the Automation and Control Institute at Vienna University of Technology Supervision: Supervisor: A.o.Univ.-Prof.Dipl.-Ing.Dr.techn. Markus Vincze Supervisor’s assistant: Dipl.-Ing. Horst Wildenauer Vienna, 19. 01. 2009 (Authors signature) (Supervisors signature) Vienna University of Technology A-1040 Vienna Karlsplatz 13 Tel. +43/(0)1/58801-0 http://www.tuwien.ac.at I would like to dedicate this work to my mother - Irena Sip Abstract To introduce mobile robots into a home environment, ways for interaction with this envi- ronment need to be provided. One attempt is to teach robots to recognize objects with the help of learning algorithms. -
Entorno Gráfico Para La Ejecución Y Depuración De Código Intermedio
Proyecto final de carrera: Entorno gráfico para la ejecución y depuración de código intermedio Autor: Alberto Domínguez Dirigido por: D. Emilio Vivancos Valencia, Septiembre de 2010 1 Resumen El proyecto de final de carrera que se desarrolla a continuación consiste en un intérprete integrado en un entorno de desarrollo que de un modo enteramen- te visual ejecuta y facilita la depuración de programas escritos en un código intermedio de tres direcciones, potente y polivalente. A su vez detecta todos los errores que pueda tener el programa tanto en tiempo de carga como en tiempo de ejecución. Para ello se pueden usar herramientas como los puntos de ruptura, la inspección contínua de los valores en memoria, la ejecución paso a paso o la entrada y salida de datos por consola. El entorno de desarrollo permite además una integración total con el compilador y permite la modificación del código durante su uso, mejorando claramente las herramientas disponibles hasta ahora para ello. Se ha hecho especial incapié en conseguir que sea un programa de fácil uso y rápido aprendizaje, y que sea muy minucioso a la hora de detectar y mostrar los errores, pues el principal uso del programa es el docente o didáctico aunque no por ello el programa deja de tener toda la potencia necesaria para usarse con un propósito general, soportando varios tipos de datos y permitiendo una interacción cómoda con el usuario mientras se ejecutan los programas. Además, pensando en posibles cambios y ampliaciones del conjunto de instrucciones de código intermedio se ha programado y documentado pensando en la fácil am- pliación del mismo por cualquier interesado. -
Univerzita Pardubice Fakulta Elektrotechniky a Informatiky Porovnání Grafických Knihoven Na Vestavěném Zařízení Jan Ší
Univerzita Pardubice Fakulta elektrotechniky a informatiky Porovnání grafických knihoven na vestavěném zařízení Jan Šíma Bakalářská práce 2009 Prohlášení autora Prohlašuji: Tuto práci jsem vypracoval samostatně. Veškeré literární prameny a informace, které jsem v práci využil, jsou uvedeny v seznamu použité literatury. Byl jsem seznámen s tím, že se na moji práci vztahují práva a povinnosti vyplývající ze zákona č. 121/2000 Sb., autorský zákon, zejména se skutečností, že Univerzita Pardubice má právo na uzavření licenční smlouvy o užití této práce jako školního díla podle § 60 odst. 1 autorského zákona, a s tím, že pokud dojde k užití této práce mnou nebo bude poskytnuta licence o užití jinému subjektu, je Univerzita Pardubice oprávněna ode mne požadovat přiměřený příspěvek na úhradu nákladů, které na vytvoření díla vynaložila, a to podle okolností až do jejich skutečné výše. Souhlasím s prezenčním zpřístupněním své práce v Univerzitní knihovně. V Pardubicích dne 29. 4. 2009 Jan Šíma Poděkování Na této stránce, která je učená pro poděkování, bych chtěl poděkovat hlavně Mgr. Tomáši Hudcovi, který mi velmi pomohl při zpracování bakalářské práce. Dále bych chtěl poděkovat Jarmile Šímové při pomoci s opravou českého pravopisu. Dále Ing. Janu Kroulíkovi, „embedded Linux developerovi“, ze společnosti MIKRO- ELEKTRONIKA spol. s r. o.. Všem zmíněným děkuji za pomoc při mé práci. Anotace a klíčová slova Anotace Práce je věnována paměťové a časové náročnosti grafických knihoven pro X Window se zaměřením na multiplatformní knihovny. Věnuje se knihovnám Qt, GTK+, wxWidgets, FLTK, Fast Toolkit. Zabývá se jejich porovnáním mezi sebou a následnému testování jednotlivých knihoven. Klíčová slova GTK+, Qt, FLTK, wxWidgets, Fast Toolkit, grafické knihovny, paměť, čas, Unix, RAM TITLE Comparison of graphic libraries for embedded device ANNOTATION This work is dedicated to measure the memory and time performance of graph- ics libraries for X Window with a focus on multi-platform library.