Graphics and FLTK CSCE 121 J. Michael Moore

Slides:



Advertisements
Similar presentations
Chapter 12 A display model Bjarne Stroustrup
Advertisements

What Was I Thinking??. Key Terms 1. Control 1. Control 2. Design Mode 2. Design Mode 3. Event 3. Event 4. Form 4. Form 5. Interface 5. Interface 6. Properties.
An Introduction to Visual Basic Terms & Concepts.
Microsoft® Small Basic
Chapters 12 and 13 A Display Model and Graphics Classes John Keyser’s Modifications of Slides by Bjarne Stroustrup
Chapter 16 Graphical User Interfaces John Keyser’s Modifications of Slides by Bjarne Stroustrup
Noadswood Science,  To know how to use Python to produce windows and colours along with specified co-ordinates Sunday, April 12, 2015.
Introduction to GUI Programming
User Interface Design. Overview The Developer’s Responsibilities Goals and Considerations of UI Design Common UI Methods A UI Design Process Guidelines.
Graphics not part of C++ libraries –X libraries –QT library –OS specific.
ICS 61 - Graphics. Light Color Wheel Color Perception.
Slides adapted from: Bjarne Stroustrup, Programming – Principles and Practice using C++ Chapter 12 A display model Hartmut Kaiser
ROOT Tutorials - Session 51 ROOT Tutorials – Session 8 GUI, Signal/Slots, Image Processing, Carrot Fons Rademakers.
INTRO TO COMPUTER GRAPHICS TEXT EDWARD ANGEL: EDITION 5 CS770/870
An Introduction to Visual Basic
GUIs for Applets Introduction Applets and Swing/JFC Alternatives to Swing Look-and-Feel issues Example applet graphical user interfaces.
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. WEB.
Object Oriented Software Development 9. Creating Graphical User Interfaces.
CSCE 121: Introduction to Program Design and Concepts Dr. J. Michael Moore Spring 2015 Set 12: A Display Model 1 Based on slides created by Bjarne.
Session 27 Swing vs. AWT. AWT (Abstract Window ToolKit) It is a portable GUI library for stand-alone applications and/or applets. The Abstract Window.
CSCE 121: Introduction to Program Design and Concepts, Honors Dr. J. Michael Moore Spring 2015 Set 15: GUIs 1.
1 Chapter 12 GUI C/C++ Language Programming Wanxiang Che.
CC111 Lec7 : Visual Basic 1 Visual Basic(1) Lecture 7.
Applets Yong Choi School of Business CSU, Bakersfield.
What is Visual Basic.NET? 110 B-1 e.g. a word processor doesn’t do anything until the user clicks on a button, types text... A programming language that.
Graphical User Interface You will be used to using programs that have a graphical user interface (GUI). So far you have been writing programs that have.
The Abstract Window Toolkit (AWT) supports Graphical User Interface (GUI) programming. AWT features include: a rich set of user interface components; a.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design Second Edition by Tony Gaddis.
Slides adapted from: Bjarne Stroustrup, Programming – Principles and Practice using C++ Chapter 12 A display model Hartmut Kaiser
Contents : What is Silverlight? Silverlight Overview Silverlight Toolkit Overview Timeline & Packaging Silverlight V1.0 & V1.1 Properties of V1.0 Properties.
Creating visual interfaces in python
Styles of User Interface. Learning Objectives: By the end of this topic you should be able to: describe the characteristics of different styles of user.
GTK+
BY MR.SUTCHUKORN TANTITHANAWARAPONG COMPUTER TEACHER AT POOLCHAROENWITTAYAKOM SCHOOL Subject :Operating System C30207.
LCG AA Meeting 30 June 2004 Ilka Antcheva Graphics User Interface in ROOT.
July FLTK The Fast Light Toolkit • A C++ graphical user interface toolkit • Can be used under X, Windows, MacOS • Supports OpenGL • Provides: – Interactive.
Unit 6 – Multimedia Element: Animation
3-Tier Architectures (or 3-Tier Applications)
Welcome To java
Chapter 3: I Need a Tour Guide (Introduction to Visual Basic 2012)
Support for the Development of Interactive Systems
Understand Charts and SmartArt Graphics
Power Point: Microsoft 2007
Introduction to Computer CC111
Chapter Topics 15.1 Graphical User Interfaces
Rajesh Lal ( ) Microsoft Silverlight An Introduction Rajesh Lal ( )
Lecture 8 Object Oriented Programming Using Java
Event Driven Programming Dick Steflik
Example: Card Game Create a class called “Card”
Python: Simple Graphics and Event-driven Programming
An Introduction to Visual Basic
What is an operating system?
GUI Using Python.
Microsoft Silverlight
Event Driven Programming
Chapter 14 JavaFX Basics Dr. Clincy - Lecture.
Qt Programming.
Silverlight Technology
GTK + Programming.
Working with Symbols and Interactivity
Review: Applying Computer Basics
The Basic Usage and The Event Handling in Glade.
Inheritance in Graphics
Topics Graphical User Interfaces Using the tkinter Module
Event Driven Programming Anatomy – Handle
Chapter 15: GUI Applications & Event-Driven Programming
PowerPoint Now, I will explain about power point.
Just Basic Lesson 15 Mr. Kalmes.
Chapter 1 Introducing Small Basic
TA: Nouf Al-Harbi NoufNaief.net :::
Presentation transcript:

Graphics and FLTK CSCE 121 J. Michael Moore Based on slides created by Carlos Soto.

Graphical User Interfaces You are all familiar. Most intro programming classes are expected to teach aspects of this.

How do we display graphics in our programs? Unlike some other languages, C++ does not have integrated graphics support So we need a Graphics library. Or better yet, a Graphical User Interface (GUI) toolkit

GUI Toolkits/Libraries GUI toolkits provide support for graphics as well as interactivity via widgets (e.g. buttons and text boxes) FLTK, GTK+, Qt, and others are open-source, cross-platform GUI libraries There are proprietary ones too: Cocoa and Carbon for OS X Microsoft Foundation Classes (MFC) for Windows Flash and Silverlight for web

Fast Light Toolkit (FLTK) We will be using FLTK for graphics and GUIs in this class It has been used in previous semesters, so peer teachers and previous students are familiar with it and can provide support http://www.fltk.org

Some of what FLTK provides Windows to contain our graphical programs Widgets to use in our GUIs e.g. Buttons, Text boxes Support for labels, images, color, basic graphics (e.g. primitive shapes)

Graphical Display Coordinates (0, 0) (149, 0) Not all libraries put origin in upper left! (50,20) Warning: Placing things at (0,0) may cause problems (0, 49) (149, 49) 150 x 50 pixel window example y-coordinates increase going down (not up) Coordinates identify pixels on screen