13
CS 225 Data Structures Wade Fagen-Ulmschneider

PowerPoint Presentation · 2018-05-13 · class Sphere { public: double getRadius(); 4 5 6 sphere.h . Title: PowerPoint Presentation Author: Wade Fagen Created Date: 1/17/2018 9:34:21

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: PowerPoint Presentation · 2018-05-13 · class Sphere { public: double getRadius(); 4 5 6 sphere.h . Title: PowerPoint Presentation Author: Wade Fagen Created Date: 1/17/2018 9:34:21

CS 225 Data Structures

Wade Fagen-Ulmschneider

Page 2: PowerPoint Presentation · 2018-05-13 · class Sphere { public: double getRadius(); 4 5 6 sphere.h . Title: PowerPoint Presentation Author: Wade Fagen Created Date: 1/17/2018 9:34:21

Introduction Wade Fagen-Ulmschneider – CS PhD Academic Interests: data discovery/visualization, systems programming, education worth sharing, and magic fairy dust

Eric Shaffer – CS PhD Academic Interests: computer graphics, scientific visualization, and scientific computation

Course Staff: You:

Page 4: PowerPoint Presentation · 2018-05-13 · class Sphere { public: double getRadius(); 4 5 6 sphere.h . Title: PowerPoint Presentation Author: Wade Fagen Created Date: 1/17/2018 9:34:21

Geometric Data Structures for Computer Graphics

CS 296: Honors Section for CS 225

Eric Shaffer

Three programming assignments

Implement a simple ray tracer

Accelerate the ray tracer using two different data structures

Page 5: PowerPoint Presentation · 2018-05-13 · class Sphere { public: double getRadius(); 4 5 6 sphere.h . Title: PowerPoint Presentation Author: Wade Fagen Created Date: 1/17/2018 9:34:21

Everything about CS 225 https://courses.engr.illinois.edu/cs225/ Information on: Staff Communications Lab Sections MPs Exams Grading Academic Integrity

Page 6: PowerPoint Presentation · 2018-05-13 · class Sphere { public: double getRadius(); 4 5 6 sphere.h . Title: PowerPoint Presentation Author: Wade Fagen Created Date: 1/17/2018 9:34:21

What is this course about?

Page 7: PowerPoint Presentation · 2018-05-13 · class Sphere { public: double getRadius(); 4 5 6 sphere.h . Title: PowerPoint Presentation Author: Wade Fagen Created Date: 1/17/2018 9:34:21
Page 8: PowerPoint Presentation · 2018-05-13 · class Sphere { public: double getRadius(); 4 5 6 sphere.h . Title: PowerPoint Presentation Author: Wade Fagen Created Date: 1/17/2018 9:34:21

CS 126 ECE 220 CS 125

CS 225

CS 173 MATH 213

Page 9: PowerPoint Presentation · 2018-05-13 · class Sphere { public: double getRadius(); 4 5 6 sphere.h . Title: PowerPoint Presentation Author: Wade Fagen Created Date: 1/17/2018 9:34:21

Variables in C++

int myFavoriteInt;

char grade = 'A';

double gamma = 0.653;

Cat fiona, mia;

Cube rubix;

Person wade;

Page 10: PowerPoint Presentation · 2018-05-13 · class Sphere { public: double getRadius(); 4 5 6 sphere.h . Title: PowerPoint Presentation Author: Wade Fagen Created Date: 1/17/2018 9:34:21

Encapsulation

Page 11: PowerPoint Presentation · 2018-05-13 · class Sphere { public: double getRadius(); 4 5 6 sphere.h . Title: PowerPoint Presentation Author: Wade Fagen Created Date: 1/17/2018 9:34:21

Encapsulation

sphere.h sphere.cpp

Page 12: PowerPoint Presentation · 2018-05-13 · class Sphere { public: double getRadius(); 4 5 6 sphere.h . Title: PowerPoint Presentation Author: Wade Fagen Created Date: 1/17/2018 9:34:21

#ifndef SPHERE_H

#define SPHERE_H

class Sphere {

public:

private:

};

#endif

sphere.h 1 2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

Page 13: PowerPoint Presentation · 2018-05-13 · class Sphere { public: double getRadius(); 4 5 6 sphere.h . Title: PowerPoint Presentation Author: Wade Fagen Created Date: 1/17/2018 9:34:21

#include "sphere.h"

double Sphere::getRadius() {

}

sphere.cpp 1 2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

class Sphere {

public:

double getRadius();

4 5 6

sphere.h