GTECH 731 Lab Session 6 10/12/10 Quiz Review Lab 5 Review Lab 6 Intro.

Slides:



Advertisements
Similar presentations
Teacher Functions. Teacher Functions in OAS Create Tests Assign Tests to a Class View Reports of Student Performance.
Advertisements

2D Graphics Drawing Things. Graphics In your GUI, you might want to draw graphics E.g. draw lines, circles, shapes, draw strings etc The Graphics class.
Microsoft® Small Basic
Introduction to Visual Basic.NET Uploaded By: M.Sheraz anjum.
PIIT Computer Science Summer Camp - Alice July 11, 2012 Brenda Parker Computer Science Department MTSU.
1 Computer Graphics Chapter 2 Input Devices. RM[2]-2 Input Devices Logical Input Devices  Categorized based on functional characteristics.  Each device.
Advanced LABVIEW EE 2303.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Tutorial 21 - “Cat and Mouse” Painter Application.
Agenda –interfaces and realization –type hierarchy –introduction to graphics and event handling.
GTECH 731 Lab Session 10 11/2/10 Lab 9 – ArcObjects Pseudo-code Example.
GTECH 731 Lab Session 5 Lab 4 Review, Lab 5 Intro 10/5/10 Lab 4 Review Lab 5 Overview.
CS 280 Data Structures Professor John Peterson. Quiz 4 Recap Consider the following array: {2, 6, 7, 3, 4, 1, 5, 9}. Draw this in tree form and then show.
Creating Object Oriented Programs Object oriented (OO) terminology Class vs. object Instantiate an object in a project Understand Class_Initialize / Terminate.
Mouse draw Using the mouse and a palette to make a picture.
Computer Science 103 Chapter 4 Advanced JavaScript.
Aalborg Media Lab 28-Jun-15 Software Design Lecture 8 “Arrays”
R. Ching  MIS Department  California State University, Sacramento Week 12 Object-Oriented Programming Base and Derived Classes Lab Exercise.
GTECH 731 Lab Session 8 10/26/10 Lab 7 Geotools. Previous Labs Labs designed to gradually introduce C# and Visual Studio Started with simple, straight.
JavaScript, Third Edition
User Interface Programming in C#: Direct Manipulation Chris North CS 3724: HCI.
1 Introduction to Human Computer Interaction  Livecode Overview  Based on Livecode User Guide from RunRev Ltd. (2010) 
Controls General Discussion. VB Controls Visual Basic Controls A control is the generic name for any object placed on a form Controls may be images,
CS0004: Introduction to Programming Events. Review  Event Procedure  A set of instructions to be executed when a certain event happens.  Many event-driven.
Chapter 9 Introduction to ActionScript 3.0. Chapter 9 Lessons 1.Understand ActionScript Work with instances of movie clip symbols 3.Use code snippets.
Chapter 5 Java Script And Forms JavaScript, Third Edition.
Chapter 8: Writing Graphical User Interfaces
CSC 298 Windows Forms.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. C H A P T E R T E N Event-Driven Programming.
Prepared by Fareeha Lecturer DCS IIUI 1 Windows API.
Java Programming: From Problem Analysis to Program Design, Second Edition1  Learn about basic GUI components.  Explore how the GUI components JFrame,
Lecture 5: Interaction 1  Principles of Interactive Graphics  CMSCD2012  Dr David England, Room 711,  ex 2271 
Visual Basic .NET BASICS
CSE115: Introduction to Computer Science I Dr. Carl Alphonce 343 Davis Hall
Lecture Set 13 Drawing Mouse and Keyboard Events Part B – Mouse and Keyboard Events.
Lab 6: event & input intro User Interface Lab: GUI Lab Oct. 2 nd, 2013.
CSE115: Introduction to Computer Science I Dr. Carl Alphonce 343 Davis Hall
More on Hierarchies 1. When an object of a subclass is instantiated, is memory allocated for only the data members of the subclass or also for the members.
BIM211 – Visual Programming Interacting with Users Graphics 1.
Introduction to Programming G50PRO University of Nottingham Unit 2 : Introduction To Scratch Paul Tennent
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Tutorial 21 - “Cat and Mouse” Painter Application.
Morphic A highly unusual graphical toolkit! Originates in the Self project at Sun –Self: a prototype-based programming language –No classes---objects inherit/instantiate.
Irwin/McGraw-Hill Copyright© 2000 by the McGraw-Hill Companies, Inc. PowerPoint® Presentation to accompany prepared by James T. Perry University of San.
Test 2 Review. General Info. All tests are comprehensive. You are still responsible for the material covered prior to the first exam. You will be tested.
Links take you to…  Different slides in your presentation  A different PowerPoint presentation  Any program - (Word can be used for example to complete.
Events with Data Arguments Data Values Travel with e.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 4: Events Programming with Alice and Java First Edition by John Lewis.
Teacher Functions. Teacher Functions in OAS Create Tests Assign Tests to a Class View Reports of Student Performance.
Project Two Adding Scrolling Messages! Page 2.4 to 2.18 Today’s Agenda Look at scrolling message coding. Create a web page with a text box. Create a web.
Using Alice.  Alice is visual  Alice is object-oriented (some might say object- based)  Alice eliminates the need to debug syntax errors  Alice introduces.
Dr. Ahmet Cengizhan Dirican BIL 374 Internet Technologies 6. Dynamic Documents With JavaScript.
11 Using the Keyboard in XNA Session 9.1. Session Overview  Discover more detail on how the XNA keyboard is implemented  Find out how to use arrays.
JavaScript Events Java 4 Understanding Events Events add interactivity between the web page and the user You can think of an event as a trigger that.
JavaScript Events. Understanding Events Events add interactivity between the web page and the user Events add interactivity between the web page and the.
Introduction to Java. Java  An Object-Oriented, platform-neutral, secure language.  Object Oriented – software development method – a program is thought.
Using Forms and Form Elements In Visual Basic.NET.
Open the standard.idw template. Save copy as a different file name. If you want to create as a template, save to the c:\Program Files\Autodesk \Inventor10.
Animating PowerPoint.
Introduction to Event-Driven Programming
© 2015, Mike Murach & Associates, Inc.
Lesson 1: Buttons and Events – 12/18
Chapter 2: GUI API Chapter 2.
Event Driven Programming
Visual Basic Properties, Methods and Events
Teacher Functions.
Flooding © 2018.
Extend Text Editor to Draw shapes
Arrays
Polymorphism Professor Hugh C. Lauer CS-2303, System Programming Concepts (Slides include materials from The C Programming Language, 2nd edition, by Kernighan.
Exercise 1 Modify some parameters in the histogram.js and see what would happen (one by one) 20 in Line 2  in Line 3  in Line 15  .9.
Topics Graphical User Interfaces Using the tkinter Module
Presentation transcript:

GTECH 731 Lab Session 6 10/12/10 Quiz Review Lab 5 Review Lab 6 Intro

QUIZ REVIEW

Lab 5 – Object Orientation Created stand-alone, hierarchical Geometry Class Geometry Point Line LineString Each class has member variables Sub-classes share common elements from “Geometry” String “sName” and method “Draw” Have unique member variables to distinguish from other classes Point has “X” and “Y” variables Line has “start” and “end” Point objects LineString has “List” of Points Each class has methods Each class can draw itself Line and LineString have LineLength methods

Lab 6 – Basics of Object Oriented Create Self-contained classes (i.e., Geometry or other. Traffic?) Member variables (current state) Methods (actions, abilities) To access, create object by “instantiating” Class within Form To make your program work as you want it to, you manipulate objects as needed in Form code Instantiate objects in MouseDown or MouseUp event handlers depending on object Assign X,Y coordinates in MouseDown or MouseUp event handlers Call “Draw” method from picture box “Paint” handler Geometry.Geometry curShape = null; Geometry.Line myLine = new Geometry.Line(); Geometry.Point myPoint = new Geometry.Point();

Lab 6 – Overview Create interactive program using Geometry objects Create logic in Form that will allow you to add Points, Lines and LineLists Choose some mechanism to determine which object is being added at any given moment i.e., ComboBox, Button, Radio Button Logic will add particular object depending on state of selection object Will create a “shape layer” to hold objects of Geometry class Loop through “Shape Layer” list using each objects “Draw” method to redraw all objects Not step-by-step process as previous labs Have all the objects you need Know where certain functions should happen (i.e., MouseUp event handler) Think about what should happen with objects when mouse is clicked Have workable, sample code to build from