SE3910 Week 6, Class 1 Week 6, Class 2 (Wednesday) Quiz Week 7, Class 2 (Wednesday) Half-Exam 2 Bring Calculator!! Qt GUI Design Analog and Digital Datarates.

Slides:



Advertisements
Similar presentations
Week 8, Class 3: Model-View-Controller Model-View-Controller Why? What? How? Example: Barnyard Simon for the Web Question: Where should we use the command.
Advertisements

SE3910 Week 2, Class 2 Today Real-Time Systems Embedded Systems Other ??? Week 3 Tuesday Lab Lab start TBA SE-2811 Slide design: Dr. Mark L. Hornick Content:
1 CMSC 132: Object-Oriented Programming II Nelson Padua-Perez William Pugh Department of Computer Science University of Maryland, College Park.
Introduction to Java Swing “We are the sultans of swing” – Mark Knopfler.
Today Networking in Linux/C Lab Eclipse cross-compiling Measuring latency of 100% CPU busy-wait polling Sleeping busy-wait polling Interrupt-driven response.
A.k.a. GUI’s.  If you want to discuss your Lab 2 grade come see me this week. ◦ Office: 436 ERB. One hour prior to class ◦ Open to Appointments MWF 
SE-3910 Real-time Systems Week 7, Class 3 – Announcement – Estimating rates Uncompressed Video Size Compression Ratio Frame rate – the Stroboscope effect.
SE3910 Week 2, Class 1 Today Basic Circuits Other ??? Tomorrow Lab 2, S365 (Complete prelab BEFORE) Thursday See ScheduleSchedule SE-2811 Slide design:
Java Programming: Advanced Topics 1 Common Elements of Graphical User Interfaces Chapter 6.
SE-3910 Real-time Systems Week 7, Class 3 – Announcement – Estimating rates Uncompressed Video Size Compression Ratio Frame rate – the Stroboscope effect.
Today TBA Tomorrow Good Friday SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr. Hornick Errors: Dr. Yoder 1 SE3910 Week 5, Class 3.
Using Qt for GUI development Brad Whitlock March 2002.
SE-3910 Real-time Systems Week 2, Class 2 – Return stuff, New HW Assignment! – Quiz! (Possibly with review) Ohm’s Law Kirkhoff’s Current Law Switches Using/reading.
Graphics and Event-Driven Programming in Java John C. Ramirez Department of Computer Science University of Pittsburgh.
Today Networking in Linux/C Lab Eclipse cross-compiling Measuring latency of 100% CPU busy-wait polling Sleeping busy-wait polling Interrupt-driven response.
SE-1021 Software Engineering II Week 5, Class 2 Why my computer crashed Layouts Multiple action listeners Single actionPerformed method – distinguishing.
SE-3910 Real-time Systems Week 7, Class 1 – GStreamer – QT SE Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling, Some from.
Today Quiz Multithreading Options Qt socket buffers between threads Quiz today & Tuesday in lab SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr.
SE-3910 Real-time Systems Week 5, Class 1 – Quick-Quiz (Ungraded) – Lab 4 turn-in up - due Tuesday, Week 5 – Select when to use Polling or Interrupts –
CS Fall 2012, Lab 09 Haohan Zhu. Boston University Slideshow Title Goes Here CS Fall 2012, Lab /20/2015 GUI - Graphical User Interface.
CS1054: Lecture 21 - Graphical User Interface. Graphical User Interfaces vs. Text User Interface.
Today C/C++:.h/.cpp; compiling and linking Fourier Transform (corrected) Nyquist Theorem Audio sampling rates SE-2811 Slide design: Dr. Mark L. Hornick.
SEEM3460 Tutorial GUI in Java. Some Basic GUI Terms Component (Control in some languages) the basic GUI unit something visible something that user can.
CS-2852 Data Structures Week 8, Class 1 Amortized ArrayList.add() CS-2852 Dr. Josiah Yoder Slide style: Dr. Hornick 1.
CS2852 Week 3, Class 2 Today Stacks Queues SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr. Hornick Errors: Dr. Yoder 1.
Today Nervous System Response Time SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr. Hornick Errors: Dr. Yoder 1 SE3910 Week 3, Class 2.
Today Return Quiz Class Climate Survey Review SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr. Hornick Errors: Dr. Yoder 1 SE3910 Week 10, Class.
1 Chapter 16: Creating Windows. 2 Basics of GUI Programming How to create a Window. TryWindow.java You always need a JFrame component before creating.
Ajmer Singh PGT(IP) JAVA IDE Programming - I. Ajmer Singh PGT(IP) GUI (Graphical User Interface) It is an interface that uses a graphic entities along.
SE-3910 Real-time Systems Week 7, Class 1 – Announcement – GStreamer – Bins Boardshots – QT Swing & Qt Signals & Slots – Code – Example SE Dr. Josiah.
Sadegh Aliakbary Sharif University of Technology Fall 2011.
CS2852 Week 5, Class 2 Today Queue Applications Circular Queue Implementation Testing SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr. Hornick Errors:
CS2910 Week 10, Class 1 Today Modular Arithmetic RSA Week 10, Monday Quiz: Potential topics TCP window size & header format Public/private key encryption.
CS2852 Week 7, Class 1 Today Binary Search Tree Implementing add Implementing find Return Quiz 4 (second attempt) Both sections are graded SE-2811 Slide.
Today Return Quiz First release of final project template Multithreading Options Qt socket buffers between threads Tomorrow: Quiz Interthread communication.
Today Final Project “Preview” Real-time concurrency Multithreading Options pthreads qthreads GPIO.h & GPIO.cpp Quiz tomorrow & Tuesday in lab SE-2811 Slide.
Today Return Quiz First true release of final project (Lab 8) Multithreading Options Qt socket buffers between threads SE-2811 Slide design: Dr. Mark L.
Today Signals Nyquist Theorem (revisited) Audio Sampling Latency and Bandwidth Scheduling Theory SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr.
Week 7, Class 1: The Command Pattern (cont.) Get Ready for Poll Everywhere Labs 2 & 3 returned Lab 7 due this evening at 11pm Quiz tomorrow at start of.
CS2910 Week 4, Class 2 Today Sit by someone you have not yet worked with this quarter. Learn his/her name if unknown. Turn on your laptop and start Wireshark.
Today (or Thursday) Qt Thursday Quiz SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr. Hornick Errors: Dr. Yoder 1 SE3910 Week 6, Lab.
CS2910 Week 8, Class 2 Today Return Quiz Look at Schedule TCP implementation! Week 8, Monday Quiz on SMTP May include some questions requiring you to interpret.
Week 9, Day 1 Proxy SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr. Hornick Errors: Dr. Yoder 1.
Week 6, Class 3: Composite Swing composites File composites Computer composites SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr. Hornick Errors:
Week 4, Day 1: Singleton(s?) Singleton leftover Why singletons? How to make lazy initialization work multi- threaded? Observers Why observers? Class structure.
SE3910 Week 5, Class 3 Week 6, Class 2 (Wednesday) Quiz Week 7, Class 2 (Wednesday) Half-Exam 2 Analog and Digital Datarates SE-2811 Slide design: Dr.
Introduction to Swing Mr. Crone. What is Swing? a collection of pre-made Java classes used to create a modern graphical user interface.
SE3910 Week 4, Class 3 Notes on Lab 5 Code to write! Next week Monday Afternoon OH (after class) cancelled Ask questions before class if possible Week.
SE3910 Week 8, Class 2 Week 4 Lab: Please return your graded Lab 4 to me so I can enter it in my gradebook Week 7, Class 2 (Wednesday) Half-Exam 2 Done.
A Quick Java Swing Tutorial
Graphical User Interfaces
Slide design: Dr. Mark L. Hornick
Slide Style & Content: Dr. Schilling
SE-3910 Real-time Systems Week 10, Class 3 Loop jamming
Slide design: Dr. Mark L. Hornick
Slide design: Dr. Mark L. Hornick
Slide design: Dr. Mark L. Hornick
Slide design: Dr. Mark L. Hornick
Slide design: Dr. Mark L. Hornick
Advanced Programming in Java
SE-1011 Slide design: Dr. Mark L. Hornick Instructor: Dr. Yoder
Graphics and FLTK CSCE 121 J. Michael Moore
SE-1011 Slide design: Dr. Mark L. Hornick Instructor: Dr. Yoder
Slide design: Dr. Mark L. Hornick
Zhen Jiang West Chester University
Slide design: Dr. Mark L. Hornick
SE-3910 Real-time Systems Week 4, Class 1 Quick-Quiz (Ungraded!)
SE-1021 Software Engineering II
Slide design: Dr. Mark L. Hornick
Graphical User Interface
Presentation transcript:

SE3910 Week 6, Class 1 Week 6, Class 2 (Wednesday) Quiz Week 7, Class 2 (Wednesday) Half-Exam 2 Bring Calculator!! Qt GUI Design Analog and Digital Datarates SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr. Hornick Errors: Dr. Yoder 1

Quiz Outcomes Unit analysis Nyquist Theorem (Audio signal data rates) Channel Capacity (Digital datarate through analog channel) Compression Ratios Qt signals/slots SE-2811 Dr.Yoder 2

GUI Toolkits Java AWT Swing SWT Java FX C# WPF Windows Forms Silverlight GTK# C/C++ Qt FLTK GTK Motif MFC SE Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 3

What makes a good toolkit? SE Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 4

Qt Features Fully object-oriented Consistent interfaces Rich set of widgets (controls) Have native look and feel Drag and drop Customizable appearance Utility classes OpenGL support Network support Database support Plugin support Unicode/Internationali zation support GUI builder SE Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 5

Qt Widgets Java Swing Qt SE Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 6

Example QT Widgets SE3910 Real Time Systems

QT Built in Dialog Boxes File dialog Font dialog Color dialog Printer dialog SE3910 Real Time Systems

Layouts Java FlowLayout GridLayout BorderLayout BoxLayout Qt FlowLayout (ex) QGridLayout BorderLayout (ex) QHBoxLayout QVBoxLayout SE Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 9

Layouts in Java and Qt Layouts in Java (in JFrame) setLayout(layout) add(button) Layouts in Qt (in QMainWindow) layout->add(button) widget->setLayout(layout) setCentralWidget(widget) SE Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 10

Events/Signals Java Event E.g. ActionEvent Event Listener E.g. ActionListener How does Java initiate an event? Qt Signal E.g. clicked() Slot E.g. on_pushButton_clicked emit SE Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 11 What Design Pattern is this?

Custom Events in Java How do you register an event with an event source in Java? How do you create your own event in Java? How do you fire an event in java? SE Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 12

Custom Events in QT How do you register an event with an event source in QT? connect(button, SIGNAL(clicked()), qApp, SLOT(quit())); How do you create your own event in QT? signals: void clicked(); How do you fire an event in QT? emit progressNotification(1000 * seconds); SE Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 13

Quiz practice: Analog to digital bandwidth SE Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 14 B – Digital bandwidth H – Analog bandwidth S – Signal power N – Noise power

In-class Activity: What is the data rate of classic NTSC television (as digital stream)? Store color with special scheme so only two bytes required per pixel, on average 720x480 30/1.001 fps Follow up: If compressed to 25MiB/s what is the compression ratio? SE Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 15

In-class activity Suppose I have a band centered at 100 MHz which is 1MHz wide. What are the limits on this range? What is the wavelength of the center 1 MHz signal in a Cat-5 cable? speed of light = m / s speed in Cat-5 is 70% of this wavelength = time of period * velocity SE Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 16

Human eye Recall As little as 13ms Notice interruption As short as 16ms Single-ms duration looks as long as ms 10ms green followed by 10ms red May appear as single yellow stimulus SE Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 17

Ex: Why might you want to sample at a higher frame-rate than the 30fps? Be as professional as possible Avoid flame wars Have technical depth to back it Avoid sounding technical just to be cool SE Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 18

Ex: What are two ways we can avoid the stroboscopic effect in a video game simulation of a rotating wheel? SE Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 19

References EB: Derek Malloy, Exploring Beaglebone, Wiley, 2015 SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr. Hornick Errors: Dr. Yoder 20